Microsoft
Software
Hardware
Network
Question : Calculating a value based on sums of data
Good Afternoon. I have an application where I am trying to get the sum of data within two seperate Oracel database tables and then divide those two summed numbers. I've used the below code snippet before, and I thought it worked, but I keep getting the "[Macromedia][Oracle JDBC Driver][Oracle]ORA-00933: SQL command not properly ended" error message. Can anyone look at this and tell me what I'm doing wrong?? THANKS!!!
SELECT M.Commit, F.Fund, (F.Fund / M.Commit) AS TotalBalance
FROM
(SELECT SUM(BUDGET.AMOUNT_COMMITED
) AS Commit
FROM BUDGET) AS M,
(SELECT SUM(JONOS.FUNDING) AS Fund
FROM JONOS) AS F
Answer : Calculating a value based on sums of data
May be this could work... Try this (removed as key word on subq)
SELECT M.Commit, F.Fund, (F.Fund / M.Commit) AS TotalBalance
FROM
(SELECT SUM(BUDGET.AMOUNT_COMMITED
) AS Commit
FROM BUDGET) M,
(SELECT SUM(JONOS.FUNDING) AS Fund
FROM JONOS) F
Random Solutions
WCF Nested complex types
Power Point files won't open from samba share
Show All Records In Query if Nothing Selected in Listbox
Team Foundation Server 2010, deleted web site problem
Need to find USB External Enclosure for 2.5" 15mm SATA drive
Trying to reset Konica Minolta Bizhub C220 to factory defaults. How?
How to connect treeview & listview or grid through Access database
VMWare ESX 4 Update Manager and failing Remediation for certain patches
2 ways in ASP.NET to open a different page?
delphi Run once