sql - AND clause not working in hive -


i have table idsfortime:

epochtime       id 1392951600  0 1392952500  15 1392953400  30 1392954300  45 1392955200  60 

there table following columns :

15916b  5.1815954385269 1392977820 15965a  7.16797368783744    1392977880 16272b  10.6633890639568    1392977865 16707a  37.6028010736386    1392977785 16730a  9.42097617868767    1392977866 

the last column in above table denotes epoch time.

i trying find out speeds (column 2 in above table) lie between epochtime of table idsfortime , below table .

i using below query :

select t.speed idsfortime t1 join staging t t1.epochtime >= t.time , t1.epochtime <= t.time; 

but, doesnt work. please suggest

check out post.

merging 2 columns in hive , use between operator

i hope resolve issue. keep in mind while trying use between operator on date, format should match dd-mm-yyyy , time should match hh:mm:ss.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -