I have a table having a column event. It has data like IN and OUT.
Now I need to create two columns having the time of the first IN for a particular ID and the last OUT for the same ID.
I need to use partition by window function with lead and lag.
How can I do this?
Any help would be great!
I have to do this in HIVE!