Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

duplicate value in table

$
0
0

Hi ALL

I need to Found duplicate value in Sort column .

I used below Query

WITH CTE (dd,SortOrder)AS(SELECT Row_number()over(Partition by SortOrder orderby SortOrder),SortOrderFROM ss.Dimtt)SELECT*from CTEwhere dd>1

but how can i found duplicate value in all tables that is started from Dim.

Please help.

Thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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