Is there a reason that you don't do this?
You don't need the distinct or the subquery.Code:SELECT acct_no, name FROM TRANSACT GROUP BY acct_no, name HAVING COUNT(*)>1;
|
Results 1 to 5 of 5
Thread: simple queryThreaded View
|
Click Here to Expand Forum to Full Width |