Hi All - I have the following Table:Serial_Num123456123456123456123457123458123459
I am trying to identify which of these are duplicates, by having the output as follows:Serial_Num | DUPLICATE123456 Y123456 Y123456 Y123457 N123458 N123459 N
I've used the over by/partition by function, but I need to replace it with a Y/N as described above. SELECT * FROM (SELECT Serial_Num, ROW_NUMBER() OVER (PARTITION BY Serial_Num ORDER BY Serial_Num) AS Rn FROM MyTable) T1
Any ideas? Thanks!