I have two statements:
and
These both return the same data. Is either of these more to be recommended than the other, or are there circumstances to use one and other circumstances to use the other? Or are they pretty much the same in terms of performance?
TIA
Code:
select * from m2010 where icd9code in (
select distinct icd9code from m2010 group by icd9code having count(icd9code) > 1)
Code:
select * from m2010 m
join (select distinct icd9code from m2010 group by icd9code having count(icd9code) > 1) d on
m.icd9code = d.icd9code
TIA