Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Join 2 select statements

$
0
0

How would I combine the following 2 select statements, so the results end up in one row ?

SELECT 
(SUM (CAST(Amount AS FLOAT))) AS 'Total Amoun',
(COUNT(BranchCode))AS 'TOTAL COUNT'
FROM [Transaction Table]WHERE AccountType='Savings' AND Status='Successful' AND BranchCode='51001'

SELECT Status,
AccountType,
BranchCode
FROM [Transaction Table]WHERE AccountType='Savings' AND Status='Successful' AND BranchCode='51001'


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>