Filtering out column values that don't repeat

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to filter out all the values in a column that only appear
once, leaving just items that appear 2+ times? I know there's a way to get
rid of duplicates, but I haven't been able to find a feature that would do
the opposite. Thank you for your insight!
 
Using SubQueries try something like

SELECT T1.*
FROM TableName As T1
WHERE T1.FieldName In (SELECT T2.FieldName
FROM TableName As T2
GROUP BY T2.FieldName
HAVING Count(T2.FieldName)>=2)
 

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

Back
Top