SQL Analyst Test

Updated · 5 min read
mediumPostgreSQL 18sqltestquizassessment

This test checks the Analyst path: querying, functions, grouping, joins, windows, ROLLUP, CTEs and the sales report project. It is 25 multiple-choice questions, marked for you as soon as you submit. Each answer explains why, and links to the lesson that teaches it, so a wrong answer tells you exactly what to reread.

How the Test Works

  • Questions: 25, about one per lesson or topic on the path.
  • Time: about 30 minutes, without notes.
  • Pass mark: 19 out of 25.
  • Hands-on practice: the SQL Problem Lab has business requests to solve with real queries on the shop dataset.

The Test

SQL Analyst Test

25 questions
1Which removes duplicate rows from a result?
2Which shows the newest payments first?
3Top 10 rows in PostgreSQL:
4WHERE title LIKE '%Basics' matches:
5avg(amount_usd) for amounts 100, 200 and NULL:
6Which keeps only months with more than $1,000 collected?
7A report joins orders to customers. An order with no customer would disappear with:
8UNION ALL of two monthly reports:
9count(*) FILTER (WHERE status = 'returned') gives:
10round(123.456, 1) returns:
11upper(trim(' navika ')) returns:
12Days between two DATEs in PostgreSQL:
13EXTRACT(MONTH FROM DATE '2025-12-19') is:
14CAST('450.00' AS NUMERIC) turns text into:
15COALESCE(method, 'unknown') shows:
16A CTE helps analysts by:
17Rank customers by revenue, ties sharing a rank with no gaps:
18Month-over-month change uses:
19Subtotals per region and a grand total in one query:
20Running total:
21Months with no sales disappear from a report because:
22A fact table in a star schema holds:
23A view monthly_revenue is useful because:
24Dividing by a value that can be zero safely:
25Which filter can use an index on ordered_on and catches every December day?

What Your Score Means

ScoreWhat to do
23 to 25Excellent. Try the SQL Query Puzzles and the SQL Mock Interview.
19 to 22A pass. Reread the lessons linked from the questions you missed.
Below 19Not yet. Work through the linked lessons and take the test again.

Was this tutorial helpful?