EduFlow
SQL for Analysts

Final assessment

Twelve questions across the whole course. Score 70% or more to pass and unlock your certificate. You can retake it as often as you like.

Finish every lesson to earn the certificate — you can take the assessment any time.

Question 1 of 12

SELECT COUNT(*) FROM support_tickets WHERE agent_id NOT IN (SELECT manager_id FROM employees) returns 0. Why?

Question 2 of 12

A monthly trend groups by strftime('%m', order_date). January shows about twice the expected orders. What happened?

Question 3 of 12

SELECT c.country, COUNT(*) FROM customers c JOIN orders o ON o.customer_id = c.customer_id GROUP BY c.country is presented as ‘customers per country’. What’s wrong?

Question 4 of 12

A query joins orders, order_items and returns to report per country. Which sum is safe in that join?

Question 5 of 12

A report should show every product with its 2025 refund total, zero for products never refunded. It uses LEFT JOINs from products to order_items to returns, then WHERE r.return_date >= ‘2025-01-01’. What happens?

Question 6 of 12

Revenue per customer is needed in two later steps of an analysis. What’s the best structure?

Question 7 of 12

Huda wants the top 3 products by units in each category, keeping any product tied for third place. Which function fits?

Question 8 of 12

Year-over-year growth uses LAG(revenue, 12) OVER (ORDER BY month), but one month had no orders at all. What’s the risk and the fix?

Question 9 of 12

Over a monthly revenue table with one row per month, which frame gives a 3-month moving average?

Question 10 of 12

WHERE strftime('%Y', order_date) = '2025' is slow on a large orders table with an index on order_date. Which rewrite returns the same rows and can use the index?

Question 11 of 12

A SQLite query finds Dubai customers with WHERE city LIKE 'dubai'. After moving to PostgreSQL it returns no rows. Why?

Question 12 of 12

The final review shows the December 2025 cohort with 0% month-1 retention and Jordan with +627% Q4 growth. How should both be reported?

12 questions unanswered