playground explore freely · no grades
SQL Playground
Explore any Runtime dataset with SQL. Nothing here affects course progress.
A 1-in-87 sample of New York City yellow taxi trips from January–March 2025: pickup and drop-off zones, distances, fares, tips, fees and payment types.
129,001 rows7 tables2025-01 – 2025-03
tables
Open a table to see what one row means, its columns and keys, and a preview. Start from trips: it is the dataset's central table.
boroughs8 rows · 2 columns
One New York City borough, plus labels for unknown and outside-NYC locations.
- borough_id
Borough key
- borough_name
Borough label as published by TLC
zones265 rows · 5 columns
One taxi pickup/dropoff zone in New York City.
- zone_id
Taxi zone ID
- zone_name
Zone name
- borough_id
Borough containing the zone
- service_zone
Yellow Zone, Boro Zone, Airports, EWR or N/A
- is_airport
1 for airport zones (service_zone Airports or EWR)
vendors4 rows · 2 columns
One system that recorded the trip data.
- vendor_id
Vendor ID
- vendor_name
Provider name
payment_types7 rows · 3 columns
One way a trip can be paid (for example card or cash).
- payment_type_id
Payment type code
- description
Meaning of the code
- tip_recorded
1 when tips are captured in tip_amount (card payments only; cash tips are not recorded)
rate_codes7 rows · 2 columns
One taxi fare type (for example standard, JFK, or negotiated).
- rate_code_id
Rate code
- description
Meaning of the code
calendar90 rows · 7 columns
One calendar date in the first quarter of 2025.
- date
Calendar date (YYYY-MM-DD)
- month
Month number
- day_of_week
0 = Sunday … 6 = Saturday
- day_name
Day name
- is_weekend
1 on Saturday and Sunday
- holiday_name
U.S. federal holiday, NULL otherwise
- day_of_month
Day of the month, 1–31
trips128,620 rows · 19 columns
One yellow taxi trip from January–March 2025.
- trip_id
Trip key
- vendor_id
Recording vendor
- pickup_at
Meter engaged, NYC local time
- dropoff_at
Meter disengaged, NYC local time
- passenger_count
Driver-entered passengers; NULL when not reported
- trip_distance_miles
Taximeter distance in miles; can be 0
- rate_code_id
Final rate code; NULL when not reported
- store_and_fwd_flag
Y when the record was held in the vehicle before sending
- pickup_zone_id
Pickup taxi zone
- dropoff_zone_id
Drop-off taxi zone
- payment_type_id
How the passenger paid
- fare_amount
Time-and-distance fare in USD; negative on reversals
- tip_amount
Tip in USD; card tips only (cash tips are not recorded)
- tolls_amount
Tolls in USD
- surcharge_amount
Extra + MTA tax + improvement surcharge, USD
- congestion_surcharge
NYS congestion surcharge, USD
- airport_fee
LaGuardia/JFK pickup fee, USD
- cbd_congestion_fee
MTA Congestion Relief Zone toll (from 2025-01-05), USD
- total_amount
Total charged to the passenger excluding cash tips, USD
relationships
How to join these tables. Left column matches the right column.
- zones.borough_id joins to boroughs.borough_id
- trips.vendor_id joins to vendors.vendor_id
- trips.rate_code_id joins to rate_codes.rate_code_id
- trips.pickup_zone_id joins to zones.zone_id
- trips.dropoff_zone_id joins to zones.zone_id
- trips.payment_type_id joins to payment_types.payment_type_id