Microsoft
Software
Hardware
Network
Question : Query Help
SELECT BALANCEAMOUNT FROM MONTHLYBILL
WHERE TRANSMONTH='MAY-2010'
AND MEMBERACCNO='B-100'
SELECT RECEIPTAMOUNT FROM MONTHLYBILL
WHERE TRANSMONTH='JUNE-2010'
AND MEMBERACCNO='B-100'
SELECT RECEIPTAMOUNT FROM MONTHLYBILL
WHERE TRANSMONTH='JULY-2010'
AND MEMBERACCNO='B-100'
Hi Need help to rewrite the above query to return result as follows
The ouput should be balanceamount (which is from monthy of may 2010)
-
sum(receiptamount) (which is from month of june july)
Answer : Query Help
SELECT
SUM(CASE WHEN TRANSMONTH='MAY-2010' THEN BALANCEAMOUNT END)
-SUM(CASE WHEN TRANSMONTH<>'MAY-2010' THEN RECEIPTAMOUNT END)
FROM MONTHLYBILL A
WHERE TRANSMONTH IN ('MAY-2010','JUNE-2010','J
ULY-2010')
AND MEMBERACCNO='B-100'
Random Solutions
VB.Net - Database connection.
List of Procedures & Functions in Class
How to append DateTime to a Filename in DOS
where in windows 7 pro enabing remote desktop connection to this computer?
Folder on SBS2008 Server states I have no access even when logged in as Administrator
Newby needs question answered around VMWare Networking
Call a stored procedure containing a CURSOR from a stored procedure
Add custom disclaimer to new IMs
I need a motherboard or video card with two analog capable outputs? Hard to find since DVI-I has been replaced by DVI-D on most. Any suggestions?
Can I have code created in VBA to allow Outlook Email messages to save to sharepoint folders?