通过catagory1 catagory2从单个表组中删除时间重叠

时间:2017-04-05 18:56:43

标签: mysql sql-server date datetime hive

hive首选 要么 SQL 删除时间重叠

catagory1 catagory2 timestart time_end  
1         A        4:00     5:00
1         A        2:30     4:30
1         A        3:30     5:00
1         A        5:00     7:00
1         A        8:00     9:00
2         A        4:00     5:00
1         B        4:00     5:00

通过catagory1 catagory2

删除单个表组的时间重叠

结果看起来像

catagory1 catagory2 timestart time_end  
1         A        4:00        5:00
1         A        5:00        7:00
1         A        8:00        9:00
2         A        4:00        5:00
1         B        4:00        5:00

0 个答案:

没有答案