Skip to content

Instantly share code, notes, and snippets.

@Erez-Reznikov
Created December 12, 2021 22:54
select
s.ss_item_sk,
sum(s.ss_ext_sales_price) as total_sales,
sum(s.ss_ext_discount_amt) as total_discount
from store_sales s
where s.ss_sold_date_sk = 2452641
group by
s.ss_item_sk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment