Re: How to write this query without using subquery in the FROM clause?



<simonl@xxxxxxxxxxxxxx> wrote in message
news:1182738601.128789.15250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I reported a similiar bug back in 2004 on 2.5. It was decreed that a
patch was unnecessary at the time. But the bug should still have been
fixed, unless this is a different problem.

An alternate way of writing it would be:
select count(al_ccode)
from airline
group by al_ccode
having count(*) > 1

Actually that just returns the set of duplicate counts for airlines with
duplicates, not the *size* of the set, which is what the OP wants.

Roy


.



Relevant Pages