作者joedenkidd (優質的藍色射手)
看板Database
標題[SQL ] 同一表格同一欄位資料統計
時間Wed Nov 20 17:32:36 2013
Dear 版友
select sum(*) from table1 where finish =1; //找出完成的資料
select sum(*) from table1 where finsih =0; //找出未完成的資料
想請問一下,要如何將上面兩個查尋合併成一個
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.169.174.68