| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Problem with SQL Sum across multiple tables
Try this...
If you need only naturalaccountid and sum_of_AAmount, you need not even join
table 1.
SELECT Glfact.naturalaccountID, sum(AAmount)
FROM Glfact, Fact
WHERE Glfact.Glfactid = Fact.Glfactid
GROUP BY Glfact.NaturalaccountId
--
Thanks,
Biju Thomas
For Oracle Scripts, Tips and Links
http://www.geocities.com/SiliconValley/Peaks/4535/oracle_main.htm
Received on Tue Aug 04 1998 - 19:24:07 CDT
![]() |
![]() |