Once again thank you. I tried this and it didn't work for me. Here is what I tried. These 2 rows are the duplicates
(1,1,2,3,4,5,6,7,8,9,10)
(5,1,42,3,44,5,46,47,48,49,50)
however it returns all rows.
DECLARE @table TABLE (myKey int primary key, col1 INT, col2 INT, col3 INT, col4 INT,col5 INT, col6 INT, col7 INT, col8 INT, col9 INT, col10 INT)
INSERT INTO @table (myKey, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10) VALUES
(1,1,2,3,4,5,6,7,8,9,10),
(2,1,12,13,14,15,16,17,18,19,20),
(3,1,22,23,24,25,26,27,28,29,30),
(4,1,32,33,34,35,36,37,38,39,40),
(5,1,42,3,44,5,46,47,48,49,50),
(6,1,52,53,54,55,56,57,58,59,60),
(7,2,62,63,64,65,66,67,68,69,70),
(8,1,72,73,74,75,76,77,78,79,80),
(9,1,82,83,84,85,86,87,88,89,90),
(10,1,92,93,94,95,96,97,98,99,100)
SELECT b.*
FROM @table b
CROSS APPLY @table b2
WHERE b.myKey <> b2.myKey
AND (
b.col1 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col2 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col3 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col4 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col5 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col6 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col7 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col8 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col9 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
OR b.col10 IN (b2.col1,b2.col2,b2.col3,b2.col4,b2.col5,b2.col6,b2.col7,b2.col8,b2.col9,b2.col10)
)