-2
我不肯定這可能我沒有這個想法我的表:tbcheckedSQL查詢和group by
[id] [name] [status]
001 john present
001 john present
001 john absent
001 john absent
001 john leave
001 john present
001 john present
002 ace present
002 ace absent
002 ace leave
...
這是可能的嗎?在gridview1中輸出如何查詢? 1-7不在一週我想指望在1到XXX
[id] [name] [1] [2] [3] [4] [5] [6] [7]
001 john present present absent absent leave present present
002 ace present absent leave ...
旋轉和動態查詢。爲什麼你想要7列?他們如何投影。 –
你有一個主鍵嗎?一個表本質上是無序的。 – Mihai
這個問題很難理解!請解釋更多。 – mok