How to retrieve trips from historical data?
I have the following table mytable in Hive: id radar_id car_id datetime 1 A21 123 2017-03-08 17:31:19.0 2 A21 555 2017-03-08 17:32:00.0 3 A21 777 2017-03-08 17:33:00.0 4 B15 123 2017-03-08 17:35:22.0 5 B15 555 2017-03-08 17:34:05.0 5 B15 777 2017-03-08 20:50:12.0 6 A21 123 2017-03-09 11:00:00.0 7 C11 123 2017-03-09 11:10:00.0 8 A21 123 2017-03-09 11:12:00.0 9 A21 555 2017-03-09 11:12:10.0 10 B15 123 2017-03-09 11:14:00.0 11 C11 555 2017-03-09 11:20:00.0 I want to get the routes of cars passing through radars A21 and B15 within the same trip. For example, if the date is different for the same