Permalink
Browse files

Partitioned and unpartitioned versions.

  • Loading branch information...
1 parent 84b5cce commit 246d2f164621d29bc4383414d8bc3287a3c183e1 @cartershanklin committed Dec 17, 2013
Showing with 2 additions and 4 deletions.
  1. +1 −2 sample-queries/query12.sql
  2. +1 −2 sample-queries/query27.sql
View
3 sample-queries/query12.sql
@@ -17,8 +17,7 @@ from (select
join item on (store_sales.ss_item_sk = item.i_item_sk)
join date_dim on (store_sales.ss_sold_date_sk = date_dim.d_date_sk)
where
- i_category in ('Sports', 'Shoes', 'Books') and year(d_date) = 2001 and month(d_date) = 10 and
- ss_sold_date between '2001-01-01' and '2001-12-31'
+ i_category in ('Sports', 'Shoes', 'Books') and year(d_date) = 2001 and month(d_date) = 10
group by
i_item_id
,i_item_desc
View
3 sample-queries/query27.sql
@@ -15,8 +15,7 @@ select i_item_id,
cd_marital_status = 'W' and
cd_education_status = 'Primary' and
d_year = 1998 and
- s_state = 'TN' and
- ss_sold_date between '1998-01-01' and '1998-12-31'
+ s_state = 'TN'
group by i_item_id, s_state
order by i_item_id
,s_state

0 comments on commit 246d2f1

Please sign in to comment.