← All Datasets
NYC 311 Service Requests
Real 311 service request data from New York City. Every row is a complaint or request — noise, heat, potholes, rodents, parking, and more. Great for learning GROUP BY, date functions, and geographic analysis.
Open in Data LabSchema
11 columns in this dataset
| Column | Type | Description |
|---|---|---|
unique_key | INTEGER | |
created_date | TIMESTAMP | |
agency | VARCHAR | |
complaint_type | VARCHAR | |
descriptor | VARCHAR | |
borough | VARCHAR | |
zip_code | VARCHAR | |
latitude | DOUBLE | |
longitude | DOUBLE | |
status | VARCHAR | |
resolution_days | DOUBLE |
Example Queries
Try these queries to start exploring the data
Top complaint types
Run in Data LabSELECT complaint_type, COUNT(*) as total FROM nyc_311 GROUP BY complaint_type ORDER BY total DESC LIMIT 15 Complaints by borough
Run in Data LabSELECT borough, COUNT(*) as complaints, ROUND(AVG(resolution_days), 1) as avg_resolution FROM nyc_311 GROUP BY borough ORDER BY complaints DESC Monthly trends
Run in Data LabSELECT DATE_TRUNC('month', created_date) as month, COUNT(*) as complaints FROM nyc_311 GROUP BY month ORDER BY month