๐Ÿ“Š We use cookies & analytics to improve your experience. Learn more
Latest

Data Analytics with SQL & Excel Module 5 ยท Lesson 14 of 15

0% Exit to course

Module 5 ยท From query to a defensible answer Lesson 14 of 15

Data quality checks you run every time

Learning objective

Before any number goes out, run the same four checks: duplicate keys, values outside their allowed set, dates in the future, and totals that do not match the source.

Worked example

SELECT email, COUNT(*) c FROM users GROUP BY email HAVING c > 1 finds duplicate accounts; a salary < 0 filter finds impossible values.

Your practice task

Write four check queries for one table and note how many rows each one flags.

Do this before moving on. Reading a solution teaches the shape of it; typing it teaches you.

Key takeaway

Before any number goes out, run the same four checks: duplicate keys, values outside their allowed set, dates in the future, and totals that do not match the source.

Create free account or sign in

Almost there

15 lessons left of 15

Finish every lesson to unlock the certificate. Each one ends in a practice task โ€” do them and the final project brief writes itself.

Next recommended course Interview DSA Crash Course