Re: Group by and Sum in same query
- From: "Chris2" <rainofsteel.NOTVALID@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Oct 2006 15:32:01 -0700
"TKM" <TKM@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:908137EA-F91D-4206-8C50-7E78324B77D0@xxxxxxxxxxxxxxxx
Chris,thing as
Thanks for your reply. Your helped me along until I got it but one
I thought would happen. Because I need a total count for each planit would
only work in a report. When you have multiple of anything you willget that
in your results as you already know. Anyway here is what I came upwith that
works almost what I needed but still not exactly..
TKM,
SELECT CMPSOWNER_FUNDDESC.FD_DESC_CD
,Count(CMPSOWNER_UNITS_BUY_SELL.BUY_SELL_UNIT_CT) AS [TOTAL
FUNDS]
FROM CMPSOWNER_FUNDDESC
INNER JOIN
CMPSOWNER_UNITS_BUY_SELL
ON CMPSOWNER_FUNDDESC.FD_DESC_CD =
CMPSOWNER_UNITS_BUY_SELL.FD_DESC_CD
GROUP BY CMPSOWNER_FUNDDESC.FD_DESC_CD;
Ok, I now have your current SQL attempt (as discussed in the post I
made a few minutes ago on another branch of this thread).
I still don't know what is supposed to generate (with certainty),
and what it is generating right now that does not match (and
therefore cannot offer a diagnosis that is anything other than
another "shot in the dark").
A few simple charts of actual data (source, desired results, and
current incorrect results) are worth a thousand words.
Sincerely,
Chris O.
.
- References:
- Re: Group by and Sum in same query
- From: Chris2
- Re: Group by and Sum in same query
- From: TKM
- Re: Group by and Sum in same query
- Prev by Date: Re: Group by and Sum in same query
- Next by Date: Re: Challenging Update Query needed
- Previous by thread: Re: Group by and Sum in same query
- Next by thread: Re: Group by and Sum in same query
- Index(es):
Relevant Pages
|