Re: Aggregate function, Grouping
- From: Kim S <ks@xxxxxxxxxxxxxxx>
- Date: Fri, 19 May 2006 14:29:06 +0200
Thanks Vitali, your example works exactly as I would like.
Cheers!
Vitali Kalinin wrote:
How about this:.
SELECT
bl.GR_KEY, bl.GroupOrder, bl.UseOverhead,
SUM (Amount * price) as "SubTotal",
SUM(IIF (bl.UseClientAmount = True,
bl.Amount + bl.ClientAmount,
bl.Amount)) as "RealAmount"
FROM
Budget_Lines bl
WHERE
bl.BU_KEY = :BU_KEY
GROUP BY
bl.BU_KEY, bl.GroupOrder, bl.UseOverhead, bl.GR_KEY
- References:
- Aggregate function, Grouping
- From: Kim S
- Re: Aggregate function, Grouping
- From: Vitali Kalinin
- Aggregate function, Grouping
- Prev by Date: Re: Aggregate function, Grouping
- Next by Date: Re: Cannot open Access table with ADO or BDE/ODBC
- Previous by thread: Re: Aggregate function, Grouping
- Index(es):