Skip to content

Commit

Permalink
Update 2-DataGovernor_DataUser.sql (Snowflake-Labs#92)
Browse files Browse the repository at this point in the history
Added USE lines to set database and schema.

Updated an aggregation policy query so that it returned results. Used WHERE clause to become "WHERE oh.order_amount > 3"
  • Loading branch information
sfc-gh-bweiss authored Jun 4, 2024
1 parent 4108a9e commit 0b8be17
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Apr 17, 2024 Ravi Kumar Initial Lab
/*************************************************/
USE ROLE HRZN_DATA_USER;
USE WAREHOUSE HRZN_WH;
=======
USE DATABASE HRZN_DB;
USE SCHEMA HRZN_SCH;



Expand Down Expand Up @@ -581,7 +582,7 @@ SELECT
FROM HRZN_DB.HRZN_SCH.CUSTOMER_ORDERS oh
JOIN HRZN_DB.HRZN_SCH.CUSTOMER cl
ON oh.customer_id = cl.id
WHERE oh.order_amount > 65
WHERE oh.order_amount > 3
GROUP BY ALL
ORDER BY order_total DESC;

Expand Down

0 comments on commit 0b8be17

Please sign in to comment.