File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -502,14 +502,22 @@ limit 5;
502502-- => 15326.00
503503```
504504
505- ## Investigating product categories
506- ```
507-
508- ```
509-
510505## Monitoring Query and Copy History
511506```
512-
507+ 1. Create SQL worksheet "Exploratory Analysis" in [Snowflakes > Worksheets]
508+ 2. Create SQL worksheet "Product Category Analysis" in [Snowflakes > Worksheets]
509+ 3. Calculate the total sales by PRODUCT_CATEGORY.
510+ select
511+ t.PRODUCT_CATEGORY,
512+ SUM(t.AMOUNT)
513+ from COURSE_39090_DB_65386DDFBC424F698A2B798C914A8446.STUDENT_STORE.SALES_TRANSACTIONS t
514+ GROUP BY t.PRODUCT_CATEGORY;
515+ -- Result:
516+ PRODUCT_CATEGORY SUM(T.AMOUNT)
517+ Books 8670.00
518+ Paper 318.00
519+ Electronics 5208.00
520+ Utilities 1130.00
513521```
514522
515523## Viewing query Details
You can’t perform that action at this time.
0 commit comments