Query help

Z

Zwi2000

Hi,

I have a table with Id's and other fields. I want to select all records
where the Id is not unique, meaning there is another record with the same
Id.

Help appreciated.

Z
 
B

Bruce Loving

select * from table
where id in (select id from table group by ID
having count(id) > 1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top