Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summarization

Status
Not open for further replies.

goterps1

Technical User
Sep 21, 2006
13
US
I have 4000+ records in DBO_MASTER table for Fund 49. I'm trying to get a total value of the Fund with the following SQL. Can you help with what I'm missing.

SELECT DBO_MASTER.FUND, Format((sum(DBO_MASTER.TOTSHRSISS)+sum(DBO_MASTER.TOTSHRSUISS))*DBO_PRICE.PRICE,"$#,###.00") as BALANCE
FROM DBO_MASTER INNER JOIN DBO_PRICE ON DBO_MASTER.FUND = DBO_PRICE.FUND
where DBO_MASTER.FUND = 49
group by DBO_MASTER.FUND;
 


Hi,

Try this...
Code:
SELECT DBO_MASTER.FUND
, Format((sum(DBO_MASTER.TOTSHRSISS)+sum(DBO_MASTER.TOTSHRSUISS))*DBO_PRICE.PRICE,"$#,###.00") as BALANCE

FROM       DBO_MASTER 
INNER JOIN DBO_PRICE
   ON DBO_MASTER.FUND = DBO_PRICE.FUND

where DBO_MASTER.FUND = 49

group by DBO_MASTER.FUND[b], DBO_PRICE.PRICE[/b];

Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top