|
Hello Reader, Here's a scenario that happens more often than anyone admits: You build a report. Your director uses it in a board presentation. A week later, someone notices the customer count includes 58 records with obviously fake email addresses like The report wasn't wrong. The data underneath it was dirty. And now your credibility takes a hit. Bummer. Not because of your SQL skills, but because you didn't check the final product before sending it off. Data quality auditing is one of the most practical skills you can develop. It takes 10 minutes per query, it saves you from embarrassing situations, and the same patterns work in every database you'll ever touch. Build Your Own Data Quality Audit ProcessThe idea here is to build data quality checks for what you need (invalid emails is the example I use here). Then, combine those into a unified audit script to run all checks at once. I ran these against the Summit Adventures database (the fake adventure tourism company I created to help people learn business analytics). This database has intentional data quality issues built in. About 15% of records have some kind of anomaly specifically so students can practice finding them. Check #1: Invalid Email Addresses
These are records where no valid email was provided. In a real company, these customers are unreachable by email — which means any marketing campaign that targets them is wasting resources. Check #2: The Full Audit SummaryHere's the powerful part. One query that summarizes all major data quality issues:
This is your data quality scorecard. In one glance, you know:
Over time, you can update based on new findings or requirements and build your own audit query. How to Build Your Own Audit QueryThe pattern is the same for any database:
Each What to Check in Any DatabaseHere's a checklist you can adapt for your specific needs: Contact information:
Dates and ages:
Financial data:
Duplicates:
When to Run Audits
Common Mistakes to AvoidMistake 1: Fixing data silently Don't just exclude bad records without mentioning it. Document what you found and what you excluded. Transparency builds more trust than a "clean" report that hides problems. Mistake 2: Treating all NULLs as errors Missing dietary restrictions isn't a data quality issue, it's an optional field. Missing email addresses on records that need email outreach IS a quality issue. Context matters. Mistake 3: Auditing once and never again Data quality degrades over time as new records come in. Build your audit as a saved query you can re-run monthly. Try This Monday MorningBefore your next analysis:
It takes less than 15 minutes. And the first time it catches something before your boss does, you'll never skip it again. Until next time, Brian P.S. Data quality thinking is woven throughout SQL for Business Impact. Every module uses real-world data with intentional messiness, because that's what you'll face at work. The course teaches you to handle it confidently. Check it out at sqlforbusinessimpact.com. P.P.S. What's the worst data quality surprise you've found at work? Hit reply. I collect these stories because they're genuinely fascinating. I read every response. |
Learn to build analytics projects with SQL, Tableau, Excel, and Python. For data analysts looking to level up their career and complete beginners looking to get started. No fluff. No theory. Just step-by-step tutorials anyone can follow.
Quick note: Before you read this week's newsletter, can you fill out this 5-minute subscriber survey so I know what you want to know more about? I've got a mix of SQL and AI & Agentic Analytics right now. Thanks in advance! Hello Reader, A manager sends you a database login and says, "Can you pull a few customer insights before Friday." You connect to the database and you pause: Because, as a business analyst, there are two ways to respond: Panic and start feverishly writing the SQL, joining...
Hello Reader, This week's newsletter is different. No SQL code. No database queries. I lead a team of 30 data professionals, and we use tools like Claude and Copilot to get oriented, draft, review, and explain routine analysis. The useful part is moving faster without handing over the judgment your team relies on. We call this "human in the loop". Agentic Analytics means using AI as part of your analytical process: give it context, check its work, and keep responsibility for the decision. I...
Hello Reader, Real quick: if you haven't completed this subscriber survey -- now's your chance. Most people are looking to learn more about Agentic Analytics and AI topics. I want to build something that would be useful to you, based on the work I've been doing for the past year or so. Interested? Take 5 minutes to let me know what's on your mind. Take the 5-Minute Survey Now 👉 Imagine it's your first week at a new job. Someone from IT sends over database credentials and a two-line email:...