Skip to content

Commit bb3c6d9

Browse files
committed
DataCamp - Submit "Introduction to Snowflake" - 1 - Monitoring Query and Copy History.
1 parent 9411de2 commit bb3c6d9

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

datacamp/introduction_to_snowflake.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)