mysql - SQL Optimization, Nested Query -


what better way implement such view query doesn't take long.

select * table id in ( select id table group id having count(id) > 1 ) 

our server need run every 10 mins. thought of indexing id wasn't sure if right way go.

select t.* table t join ( select id table group id having count(id) > 1 ) on a.id=t.id 

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -