Ted Roche wrote:
> Select cast(ID, char(5)) as ID, Name, Amount, Tax from mytable
> UNION
> SELECT "Total" as ID, "" as Name, SUM(Amount) as Amount, SUM(Tax) as
> Tax) from mytable group by ID
> ORDER BY ID
>
> ... but it's a very bad idea.
>
>   

I knew it wasn't possible!
Well that's actually two queries rolled into one.

Peter :-)



_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to