Created
July 28, 2023 07:49
-
-
Save anna-geller/4a602ef0acf900b0e5d7c72d98200fce to your computer and use it in GitHub Desktop.
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 month(order_date) as order_month, sum(total) as total | |
FROM read_csv_auto('s3://kestraio/monthly_orders/*.csv') | |
GROUP BY 1 | |
ORDER BY 2 desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment