我的SQL查询:
select * from cds2 where tw=(select max(tw) from cds2) limit 10;
我是Hive的新手,我写了这个Hive查询:
Select * from cds2 join (select max(tw) twmax from cds2) V on (1 = 1)
group by id,filename,tw;
以上查询不起作用。我将不胜感激任何帮助。谢谢
答案 0 :(得分:0)
select * from(从t_ext_1_bkdoubledelete选择max(f1)为maxf1)t1左外连接(select * from t_ext_1_bkdoubledelete)t2 on t1.maxf1 = t2.f1; 你做什么我