Lesson 1: Why databases matter: tables, rows, columns, keys and tidy design · 9 min
Before you begin · An invented story · Anatomy of a table
Learners sign in, so every finish and score is recorded. 8 fields to fill in with your details.



Minutes are an estimate.
Before you begin · An invented story · Anatomy of a table
The three building blocks · Predict the rows · Match the clause and its job
What a join does · Count the rows · Grouping
Scenario · Scenario · Scenario
A good data request · Who to ask
Practice
Taken from the course itself.
Which column in an orders table is best for identifying one order?
Answer: order_id. The order number is the key: it identifies one row. An amount can repeat.
Lesson 1: Why databases matter: tables, rows, columns, keys and tidy design
In WHERE status = 'Open', why is Open inside single quote marks?
Answer: It is a text value. Text values go inside single quote marks so they are not mistaken for column names.
Lesson 2: SELECT, WHERE and ORDER BY: predict the result
A left join from customers to orders returns how many rows?
Answer: 4. Hearth Cafe has two orders, Birch Studio has one and Quay Stores has none, so it appears once with blanks. Total: 4.
Lesson 3: Joining tables, grouping and adding up
A joined query returns an order total larger than finance expects.
Best response: Check whether the join repeated rows, compare with a figure you trust, ask the data owner.
Weaker responses: Report it as the new total; Divide by two; Change the date range until it matches.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.