Skip to content

Commit 0e17900

Browse files
author
Qianxi Zhang
committed
add one presto sql
1 parent 364b934 commit 0e17900

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
select gender, brand,count(*) as purchase_count
2+
from record_orc join user_dimension_orc on record_orc.uid=user_dimension_orc.uid
3+
join brand_dimension_orc on record_orc.bid=brand_dimension_orc.bid
4+
group by gender, brand
5+
order by gender, purchase_count DESC
6+

0 commit comments

Comments
 (0)