select語句我正在尋找生產這兩個select語句的總和:和兩個SQL
select sum(amount) as hr from friday.dbo.FMDR_Friday_CSV where [Account #] like 4010
select sum(amount) as hr from friday.dbo.FMDR_Friday_CSV where [Account #] like 4060
我試圖把它們之間的聯盟,這隻會產生兩種結果在相同的結果窗口。
感謝您的幫助,我是一個絕對的初學者。
SQL Server Management Studio中 – AdMac
感謝墊,我已經添加了標籤。 – AdMac
[如何在同一查詢中添加兩個選擇命令的結果]的可能重複(https://stackoverflow.com/questions/15149775/how-to-add-results-of-two-select-commands-in-same-查詢) –