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
Do not ask me again!
i have xenapp do i need xendesktop
Forefront TMG Malware and NIS inspection updates aren't working.
capture sp_depends into temptable
SBS2k8 E-mail alias already exists
A tiff file that works well with XP but not windows 7 "paint". Can some one give me some ideas?
basic question about graphs and gradients
How do I pass Sonicwall GVC traffic through a TZ170 to terminate on a TZ210?
Exchange 2007 OWA causes 2 audit failures on failed login attempt
VBA LDAP Query to retrieve all members of a group in active directory