获得不满足以下任何条件的行
我有一个具有ID和不同值的表。我想让我的输出某些东西,
id value
----------
1 t
1 f
2 t
3 f
4 f
4 f
返回
id value
---------
3 f
4 f
如果我们查看输出,我的条件在这里检查我的id
是否将所有f
作为值,然后 f
,如果它具有全部t
,则不要不要在输出中包括行。
如何实现这一目标?
I have a table with id and different values. I want to have my output something which would looks like this
id value
----------
1 t
1 f
2 t
3 f
4 f
4 f
Expected output
id value
---------
3 f
4 f
If we look at the output, my condition here to check if my id
has all f
as value then return f
, if it has all t
then don't, and if any one of the id
has t
also don't include row in output.
How to achieve this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建子查询并相应地排除值。我认为HiveQL支持子句的位置。
create subquery and exclude the values accordingly. i think hiveql supports where clause subqueries.