NIK IN/OUT DATE 10026 1 2015-07-07 14:15:09.000 10026 0 2015-07-06 14:16:28.000 10026 1 2015-07-06 14:16:37.000 10026 0 2015-07-08 05:26:17.000
我想要的結果如下圖所示:如何在sql server中使用sql的相同行?
NIK DATE IN DATE OUT 10026 2015-07-07 14:15:09.000 null 10026 2015-07-06 14:16:28.000 2015-07-06 14:16:37.000 10026 null 2015-07-08 05:26:17.000
如何將在SQL Server中使用SQL基於實地同一行(IN-OUT)?
爲什麼'2015-07-06 14:16:37.000'有1並記錄爲Date OUT,但'2015-07-07 14:15:09.000'也有1並記錄爲Date IN?你爲什麼把它標記爲MySQL? – cha
同意@cha –