Query Quest

AI writes SQL in seconds. Can you tell which query answers the question? Each round asks 6 questions about one small workshop database, from a set of 15. Get 5 right to earn the Query Ace badge.

New to SQL? Read SQL basics and Design your database first. A self-check saved on this device, not a certificate.

The database

Three tables: members (id, name, city); workshops (id, title, seats); signups (id, member_id, workshop_id, status). Each question shows the ones it needs. Every answer was checked by running it on this data.

Paste it into a scratch database, never your live app, to run the queries yourself.

Question 1 of 6

Which cities do members live in? List each city once, A to Z.

members
id  name  city
1   Ana   Norfolk
2   Ben   Hampton
3   Cara  Norfolk
4   Dev   Richmond
5   Eli   null