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

How best to deduplicate a table in SQL

$
0
0

I have a table in this instance titled industryimport. It is formed by using a merge statement and combining 8 other tables into one. I have failed to find a way to de-duplicate using union of the 8. So once industryimport is formed, is there a way to de-duplicate based on all 22 columns/fields being identical. There is a compound primary key composed of 9 fields and 13 foreign keys, if that is of any relevance. Just Just looking for some basic conceptual to get started. 


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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