SQL Quest › SQL Interview Questions › Querying Basics
Distinct ACRIS Property Types
ACRIS property_type codes describe what kind of property a deed/mortgage covers (PS=parking space, CC=condo commercial unit, RE=real property, etc). List distinct property_type values in sales_legals. Order alphabetically.
Solve it in the browser editor →
Runs on SQLite in your browser, graded against the expected result, no signup. A wrong answer gets a diagnosis, not just "incorrect".
Schema
sales_legals
| document_id | bbl | property_type | street_number | street_name | unit |
|---|---|---|---|---|---|
| 2026030200174005 | 2059330225 | CR | 5921 | PALISADE AVENUE | NULL |
| 2026031100344013 | 3024141401 | OT | 280 | KENT AVENUE | NRU |
| 2026030200423005 | 3043930001 | AP | 180 | WORTMAN AVENUE | NULL |
Expected output: Each ACRIS type once
Hint
SELECT DISTINCT property_type.
Concepts
SELECT DISTINCT ORDER BY
Practise the topic: SQL practice questions
Related questions
Your First QueryEasy · FreePick Your ColumnsEasy · FreeFilter with WHEREEasy · FreeComparison OperatorsEasy · FreeMultiple Conditions (AND / OR)Easy · FreeThe IN OperatorEasy · Free
Where would this cost you points in an interview?
Ten questions, no signup: a Skillmap across nine SQL skills and the one to fix first.
Take the readiness test