> What that means is that neither the HAVING clause nor the targetlist
> can use any ungrouped columns except within aggregate calls; that is,
> 
>       select col from tab having 2>1

Informix:
select tabname from systables having 2 > 1;
   294: The column (tabname) must be in the GROUP BY list.
select tabname from systables group by 1 having 2 > 1;
   all rows returned
select tabname from systables group by 1 having 1 > 2;
   no rows found

Andreas

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to