看板 Database 關於我們 聯絡資訊
假設有以下表格 Date customer amount ----------------------- 2/1 A 3 2/1 A 2 2/1 B 1 2/2 B 2 2/3 A 1 如果我希望針對custome A查詢出來的結果如下 date customer sum(amount) --------------------------- 2/1 A 5 2/2 A 0 2/3 A 1 我應該如何下指令呢? 麻煩高手幫忙一下 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.254.42.166
talenttb:group by customer,date 03/04 12:58