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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -