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
XP 10 inbound connection limit question
Host or domain name not found - Name service error
Porting IP Range when changing ISP
Make list of all changes in the next 5 days
Getting violation of primary key during bulk insert.
BGINFO via GPO server 2008, error loading bgi file even though its all loaded correctly
How come when I do a copy run start, my config is always gone after a reload???
How can I rotate a video?
In Microsoft Office Communicator 2007 R2, the "View Conversation History" is grayed out. How do I enable this so that I can view previous chats?
How to run app on local machine and display results in web page