• Subject: Re: SQL question
  • From: DAsmussen@xxxxxxx
  • Date: Thu, 4 Nov 1999 00:13:20 EST

Matthias,

In a message dated 11/3/99 7:21:22 AM Eastern Standard Time, 
oertlim@s054.aone.net.au writes:

> This is probably off topic but I have to ask anyway:
>  Using sql is it possible to display a few records AND total them up at
>  the bottom in one hit, e.g.:
>  
>  ITEM1    $10
>  ITEM2   $50
>  TOTAL   $60
>  
>  If yes, how?

Check out the SUM(X) commands in conjunction with the "GROUP BY" directive.  
Total, I don't know about...

HTH,

Dean Asmussen
Enterprise Systems Consulting, Inc.
Fuquay-Varina, NC  USA
E-mail:  DAsmussen@aol.cm

"Quitting smoking is the easiest thing in the world to do.  I've done it 
thousands of times." -- Mark Twain
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].