Write your request in the field below and click the "Check it!" button.
Use DuckDB syntax to write your answer. Descriptions of tables are provided at the bottom of the screen.
Write your request in the field below and click the "Check it!" button.
Use DuckDB syntax to write your answer. Descriptions of tables are provided at the bottom of the screen.
DuckDB is an embedded analytical database designed for fast queries over local and application data.
It supports SQL and runs inside an application without a separate server process. Columnar storage and query execution make DuckDB well suited for analyzing large datasets, aggregations, and processing CSV and Parquet files.
In this playground, DuckDB is used to practice SQL with a taxi trip dataset.
yellow_tripdata is a learning dataset containing New York City yellow taxi trips.
The table is useful for practicing filtering, grouping, sorting, date operations, and aggregate calculations in DuckDB.
All fields in this dataset allow NULL values. No primary key or additional constraints are defined.
| Column name | Type | NULL | Key | Default | Extra |
|---|---|---|---|---|---|
| VendorID | INTEGER | YES | [null] | [null] | [null] |
| tpep_pickup_datetime | TIMESTAMP | YES | [null] | [null] | [null] |
| tpep_dropoff_datetime | TIMESTAMP | YES | [null] | [null] | [null] |
| passenger_count | BIGINT | YES | [null] | [null] | [null] |
| trip_distance | DOUBLE | YES | [null] | [null] | [null] |
| RatecodeID | BIGINT | YES | [null] | [null] | [null] |
| store_and_fwd_flag | VARCHAR | YES | [null] | [null] | [null] |
| PULocationID | INTEGER | YES | [null] | [null] | [null] |
| DOLocationID | INTEGER | YES | [null] | [null] | [null] |
| payment_type | BIGINT | YES | [null] | [null] | [null] |
| fare_amount | DOUBLE | YES | [null] | [null] | [null] |
| extra | DOUBLE | YES | [null] | [null] | [null] |
| mta_tax | DOUBLE | YES | [null] | [null] | [null] |
| tip_amount | DOUBLE | YES | [null] | [null] | [null] |
| tolls_amount | DOUBLE | YES | [null] | [null] | [null] |
| improvement_surcharge | DOUBLE | YES | [null] | [null] | [null] |
| total_amount | DOUBLE | YES | [null] | [null] | [null] |
| congestion_surcharge | DOUBLE | YES | [null] | [null] | [null] |
| Airport_fee | DOUBLE | YES | [null] | [null] | [null] |