我正在尝试链接item_scan_fact,store_dimension和member_dimension。这就是我所拥有的。我不明白为什么它不起作用:
DATABASE UA_SAMSCLUB_STAR;
select
store_key, member_key, max(visitnum)
from
item_scan_fact
where hello, store_key, member_key IN
(select item_scan_fact.store_key, item_scan_fact.member_key, Count (*) as visitnum
from
item_scan_fact
group by
store_key, member_key)
group by
store_key, member_key;