Microsoft
Software
Hardware
Network
Question : SQL Query
i need to make some changes to the structure hope u can help me, "Reporting_Date" format has been changed to varchar "200905" and the amount should be in percentage for eg.
State: Reporting Date: Amount_1: P_amt:
CA 200905 2088 220
CA 200904 1122 255
IA 200905 8520 590
IA 200904 2445 545
Results set should be same as before only the difference is it should be caluclated as below
for example the month of "200905" State "CA" (Amount_1 - Sale_amt) = (2088-220) = 1868 and then (1868*100/1122)(April Amount_1) =166.48
Similarly for 'IA' May month it will be (Amount_1 - Sale_amt) = (8520-590)= 7930 and then (7930*100/2445) (April Amount_1 2445) =324.33
I hope it is clear
Thanks a lot in advance
Answer : SQL Query
also, you shouldn't accept your own answer for 0 points, only accept the post or posts that helped.
Random Solutions
There is no citrix ssl server configured on the specified address.
SVClist 1.1
Widescreen Resolution Issues
exchange 2003 being used as a spam relay
Automatic Login with SBS 2003
Outlook cannot open Archive.pst The file is in use by another person or mail enabled application
Merge field together in mysql
Need help with viewing my .pst file emails - MS Outlook 2003 setup incorrectly and refuses to open normally.
FTP download folders and its contents
500 server error on Win XP SP3/ IIS 5.1