select t.* from test t where t.testId in (select testIdfrom test group by testIdhaving count(testId) > 1);