At 2006-12-18 15:32, you wrote:
>I'm trying to do a quick reality check for duplicates:
>
>select id from file1 where id in ;
>(select id, count(*) as count from file1 group by 1 having count(*) > 1)
>
>but the above only gives me "SQL: Subquery is invalid." error.  Grrrr.

select id from file1 where id in (select id, count(*) as cnt from 
file1 group by 1 having cnt > 1)

******************************
* Dan Olsson
* <mailto:[EMAIL PROTECTED]>
* <http://www.dolittle.se>



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to