hive sql find the latest record
问题 the table is: create table test ( id string, name string, age string, modified string) data like this: id name age modifed 1 a 10 2011-11-11 11:11:11 1 a 11 2012-11-11 12:00:00 2 b 20 2012-12-10 10:11:12 2 b 20 2012-12-10 10:11:12 2 b 20 2012-12-12 10:11:12 2 b 20 2012-12-15 10:11:12 I want to get the latest record(include every colums id,name,age,modifed) group by id,as the data above,the correct result is: 1 a 11 2012-11-11 12:00:00 2 b 20 2012-12-15 10:11:12 I do like this: insert