Last active
August 29, 2015 13:56
-
-
Save greenlion/8831099 to your computer and use it in GitHub Desktop.
Shard-Query demo queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select count(*) | |
from ontime_fact | |
join dim_date on ontime_fact.date_id = dim_date.date_id | |
where `Year` between 1990 and 1994 and `Quarter` = 1; | |
select FlightDate, count(*) | |
from ontime_fact | |
join dim_date on ontime_fact.date_id = dim_date.date_id | |
join dim_flight on ontime_fact.flight_id = dim_flight.flight_id | |
where `Year` = 1998 and `Quarter` = 1 | |
and Carrier = 'AA'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment