Attending COMMON is also a good idea.

Paul Nelson
Cell 708-670-6978
Office 409-267-4027

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Sent: Wednesday, December 09, 2015 7:22 AM
To: Midrange Systems Technical Discussion
Subject: Re: This small query not compiling

You're getting better; you've enclosed the offending message id. Great.
Now, if you read that message further you will see
1. Display message text
-- The statement contains column name &1 and an aggregate function in
SELECT clause and no GROUP BY clause is specified.

But it's the first one. You cannot put a column in a select when you have
an aggregate function like SUM, without doing a control break on that
selected column. In SQL a control break is done with GROUP BY.

Still gotta recommend reading a getting started with sql type book. Like
SQL/400 Developer's Guide (Vol 2)Sep 2000
by Mike Cravitz and Paul Conte
Old but a great start.
Selling for as low as $7.32

Rob Berendt

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 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].