×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Attending COMMON is also a good idea.
Paul Nelson
Cell 708-670-6978
Office 409-267-4027
nelsonp@xxxxxxxxxxxxx
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
rob@xxxxxxxxx
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
DSPMSGD RANGE(SQL0122) MSGF(QSQLMSG)
1. Display message text
-- The statement contains column name &1 and an aggregate function in
the
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
http://amazon.midrange.com
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
As an Amazon Associate we earn from qualifying purchases.