How many ways to say 'drive type'?
BeginnerDISTINCTVehicle fuel economy (FuelEconomy.gov, model years 2010–2027)
List the distinct values of drive.
Solution
SELECT DISTINCT drive FROM vehicles;Expected output:
Hint
Notice how many separate labels mean roughly 'four wheels get power'.
Same question in Excel / Google Sheets
=UNIQUE(F2:F22112)
Download the CSV from the datasets page. Column letters assume the CSV opens with its header in row 1.
Tip: Ctrl+Enter (⌘+Enter on Mac) checks your answer. Everything runs in your browser; nothing you type is sent anywhere.