mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
14 lines
651 B
XML
14 lines
651 B
XML
<test>
|
|
|
|
|
|
|
|
<preconditions>
|
|
<table_exists>default.trips_mergetree</table_exists>
|
|
</preconditions>
|
|
|
|
<query>SELECT cab_type, count(*) FROM trips_mergetree GROUP BY cab_type</query>
|
|
<query>SELECT passenger_count, avg(total_amount) FROM trips_mergetree GROUP BY passenger_count</query>
|
|
<query>SELECT passenger_count, toYear(pickup_date) AS year, count(*) FROM trips_mergetree GROUP BY passenger_count, year</query>
|
|
<query>SELECT passenger_count, toYear(pickup_date) AS year, round(trip_distance) AS distance, count(*) FROM trips_mergetree GROUP BY passenger_count, year, distance ORDER BY year, count(*) DESC</query>
|
|
</test>
|