Querying Databricks SQL Data
Query data
SELECT concat(pickup_zip, '-', dropoff_zip) as route, AVG(fare_amount) as average_fare FROM `samples`.`nyctaxi`.`trips` GROUP BY 1 ORDER BY 2 DESC LIMIT 1000
Last updated
Was this helpful?
SELECT
concat(pickup_zip, '-', dropoff_zip) as route,
AVG(fare_amount) as average_fare
FROM
`samples`.`nyctaxi`.`trips`
GROUP BY
1
ORDER BY
2 DESC
LIMIT 1000Last updated
Was this helpful?
Was this helpful?