Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: Duplicate rows indentified while creating an unique non-clustered index

$
0
0

To find the sets of keys with duplicates,

 

 

select <keys>, count(*) 

from <tablename>
group by <keys>
having count(*) > 1

 

You will then want to look at the full rows that have duplicate keys to decide how to handle them (perhaps by deleting some of the rows).


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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