I have a login details table in hive with columns
(DATE, TIME, USER)
I am trying to write a query which can select users who have logged in
SELECT * FROM test_table WHERE date BETWEEN "11-12-2012" AND "27-12-2012" OR (date = '10-12-2012' and time >= '02:30:00') OR (date = '28-12-2012' and time <= '16:20:00');