[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

select within select


hi,

i was wondering if the above is possible in mysql. i was working on a query
but it keep throwing me syntax error.

example:
sql>  select * from table1 where id in (select id from table1 group by id
having count(id) > 1)

the above statement works perfectly in mssql...

thanks & regards,
lance


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <mysql-thread67744@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-treed=ultraviolet.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



This mailing list archive is a service of Copilot Consulting.