Merging two columns in hive and use between operator

后端 未结 1 573
-上瘾入骨i
-上瘾入骨i 2021-01-16 08:34

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

1条回答
  •  余生分开走
    2021-01-16 09:25

    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');
    

    0 讨论(0)
提交回复
热议问题