我是SQL Server的新手,併爲此苦苦掙扎。SQL總和查詢問題
我有兩個選擇語句
SELECT
SUM(Amount) AS "MONDAY"
FROM
Transaction
WHERE
Transaction_Date = '2015-12-21 00:00:00.000'
SELECT
SUM(Amount) AS "TUESDAY"
FROM
Transaction
WHERE
Transaction_Date = '2015-12-22 00:00:00.000'
他們的結果是2,00,000和3,00,000分別
我想要的輸出被示爲兩列
(柱1 +週一)和(列2 =星期二)在SQL Server屏幕上
正是醫生的命令.... :)真棒 – Arav