On 12/18/06, Garry Bettle <[EMAIL PROTECTED]> wrote:
>
> 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.
>

Pull the subquery out and verify that it will run as a standalone
query. I see two questionable items: "count" is a keyword, use
RecordCount or something, and the HAVING clause uses the original
count(*) which you've aliased -- try using RecordCount there as well.

-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


_______________________________________________
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