本人初学SQL语言,但是有道题不会,还有SQL如何进行表的转换,思想是什磨????
11、 有表test
Personcode ttime Iotype
001 8:00 1
001 8:05 1
001 12:00 2
请写SQL语句将两行IOTYPE相同,时间间隔不足10分钟的第二条记录提取出来。
请大家帮帮忙谢拉1
11、 有表test
Personcode ttime Iotype
001 8:00 1
001 8:05 1
001 12:00 2
请写SQL语句将两行IOTYPE相同,时间间隔不足10分钟的第二条记录提取出来。
请大家帮帮忙谢拉1
Personcode ttime Iotype
001 8:00 1
001 8:05 1
001 8:20 1
001 12:00 2
001 12:00 3
where datediff(minute,a.ttime,b.ttime) < 10