Tried HAVING, is this getting closer? (Doesn't HAVING only work with GROUP BY??)

create table qtemp/sqltemp1 as (
(select rrn(a) as XCM_RRN
from client a having count(*) < 100) with data)
Token DATA was not valid. Valid tokens: ALL CS CHG NONE RR RS UR NC. <---------------------- SQL error

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: Tuesday, July 31, 2012 2:22 PM
To: Midrange Systems Technical Discussion
Subject: Re: SQL: how to limit rows

Joel,

Instead of WHERE, use HAVING.

HTH,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.