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
Post a Comment