Hive 没有 not in 解决方案
来源:互联网 发布:汽车修理学习软件 编辑:程序博客网 时间:2024/06/06 00:32
hive 里面没有 not in ,where 查询时候可以 使用LEFT OUTER JOIN
dpods_wfa_processhistory 表结构
需要查询 param不为 ‘协议被驳回&’ 的ProcessId max(AddTime),
因为where不能使用not in,下面sql将bb表新增a字段,值为1(param值为 协议被驳回&)然后左外连接时,空值为取出的值。
SELECT ProcessId,
max(AddTime) AS AddTime
FROM dpods_wfa_processhistory cc
LEFT OUTER JOIN
(SELECT DISTINCT ProcessId AS procId,
1 AS a
FROM dpods_wfa_processhistory
WHERE param = ‘协议被驳回&’) bb ON cc.ProcessId = bb.procId
WHERE bb.a IS NULL
GROUP BY processId
0 0
- Hive 没有 not in 解决方案
- hive not in
- Hive报错"Expression not in GROUP BY key"的解决方案
- Hive group by,in,not in
- hadoop-hive-关于IN与NOT IN
- Hive 实现 IN 和 NOT IN 子句
- Hive中实现in和not in
- Not in the soders解决方案
- hive中使用not in的方法
- hive实例讲解实现in和not in子句
- hive的in not in left outer join
- hive实例讲解实现in和not in子句
- hive实例讲解实现in和not in子句
- hive实例讲解实现in和not in子句
- hive实例讲解实现in和not in子句
- hive实例讲解实现in和not in子句
- hive实例讲解实现in和not in子句
- Hive 实现多字段的IN 和 NOT IN
- Effective C++--条款07:为多态基类声明virtual析构函数
- jacascript字符串的操作方法
- cpp的json的用法举例
- Android应用开发SharedPreferences存储数据的使用方法
- Codeforces Round #356 (Div. 1)D. Bear and Tower of Cubes【pair使用】
- Hive 没有 not in 解决方案
- POJ 2524 Ubiquitous Religions (并查集)
- BZOJ1711 [Usaco2007 Open]Dining吃饭 题解&代码
- 关于TCS230颜色传感器的使用
- java和python互相调用
- Java用数组实现顺序队列
- redis系列 ---简单介绍
- 第15周程序阅读6
- HDU 3465 线段树