Lesson 1: A report that disagreed with finance · 9 min
Before you begin · The totals · What went wrong
Learners sign in, so every finish and score is recorded. 7 fields to fill in with your details.



Minutes are an estimate.
Before you begin · The totals · What went wrong
Anatomy · Predict the rows · Check
Join types · Spot the duplicate · Check
Group and summarise · Window function
Checklist · Raise it early
Select only what you need · Practice
Taken from the course itself.
What was the best check to catch this?
Answer: Compare the total with a trusted source. A trusted total shows a mismatch straight away.
Lesson 1: A report that disagreed with finance
Orders have 3 lines each. Summing the order total after the join gives…
Answer: Three times the right total. Each order row appears once per line, so its total is added three times.
Lesson 3: Joins without duplicate rows
Why does SELECT region, customer, SUM(amount) with GROUP BY region fail?
Answer: customer is neither grouped nor aggregated. In most databases every selected column must be grouped or aggregated. Some products allow it but return an arbitrary value, which is worse.
Lesson 4: Grouping and window functions
Joining orders to order lines and summing the order total repeats the total for each line.
Best response: Sum from the right level or aggregate before joining.
Weaker responses: Use DISTINCT on the total; Divide by 2; Ignore.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.