Courses
SQL for Beginners: Ask Your Data Straight Questions
Check Yourself: Before You Write a Query
Five scenario questions on tables, keys, what SQL is and how psql behaves. If you miss more than one, reread the first two lessons.
Course content
Join this Course
Sign in to save your progress.
-
Before You Write a Query
-
What a Relational Database Is and Why SQL Exists
-
Set Up PostgreSQL and Run Your First Query
-
-
-
Asking for Rows
-
SELECT, WHERE, ORDER BY and LIMIT
-
NULL Is Not a Value
-
-
-
Building and Changing Data
-
CREATE TABLE: Types and Constraints That Matter
-
INSERT, UPDATE and DELETE Without Regret
-
-
-
Summaries
-
COUNT, SUM and AVG
-
GROUP BY and HAVING
-
-
-
Combining Tables
-
Primary Keys, Foreign Keys and Why Tables Are Split
-
INNER JOIN and LEFT JOIN
-
When a Join Gives Too Many Rows or Too Few
-
-
- Final Check: SQL for Beginners
1.
A shop keeps each customer's city on every order row. A customer moves, and someone updates only one of her three orders. What is the real problem?
2.
Which sentence best describes how SQL works?
3.
You type SELECT name FROM customers and press Enter in psql. The prompt changes to postgres-# and nothing else happens. What is the most likely reason?
4.
Why does the course run PostgreSQL in a throwaway Docker container instead of on a database you already use for real work?
5.
Which of these lines is a psql command and not an SQL statement?
About
Five scenario questions on tables, keys, what SQL is and how psql behaves. If you miss more than one, reread the first two lessons.
- Duration
- 5 min
- Last update
- 10/02/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.