I want to select all rows for which the timestamp column has the maximum value. The data looks like this:
A B timestamp
john smith 2018
bob dylan 2018
adam levine 2017
bob dylan 2017
The result should be:
A B timestamp
john smith 2018
bob dylan 2018
With Impala, the following SQL Query works: SELECT * FROM table WHERE timestamp=(SELECT Max(timestamp) from table)
But with Hive, the SQL Query doesn't.