0
我试图弄清楚事实,HIVE不支持相关的子查询。最后,我一直在计算上个月每周在数据中存在多少项目,现在我想知道本周退出的项目数量,返回的项目或全新的项目。如果我可以使用where子查询,那么不会太难,但是如果没有它,我会很难想到一个解决方法。解决不受支持的相关问题Hive中的子查询
Select
count(distinct item)
From data
where item in (Select item from data where date <= ("2016-05-10"))
And date between "2016-05-01" and getdate()
任何帮助将是伟大的。谢谢。
这帮助了一吨,谢谢! –