Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Only show duplicates

$
0
0

I am trying to run a report where there are duplicates in one of the columns, but I want to keep those duplicates and get rid of any non duplicates (if that makes sense). 

So I have an ID number, Open date, Close Date and Company number.

The company number has duplicates in, which are the rows I need to keep (for future comparisons). I have been looking for something like 'Not Distinct' but this isn't a thing as far as I am aware. 

Any help would be greatly appreciated!


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>