Here is my SQL Server table - I need to find duplicate customer code based on Customer Name, Date of birth, Father Name columns:
Customer code Customer Name Date of birth Father Name
-------------------------------------------------------------
0001 Md. Alam 1991-10-20 Sr. Alam
0002 Alam 1991-10-20 Sr. alam
0004 Hasan 1990-01-01 Sr. Hasan
0005 Karim 1988-01-01 Sr. Karim
0006 Karim 1988-01-01 S Karim
0007 Kalam 1985-01-01 Sr. Kalam
Output looks lik:
0001,0002,0005,0006 customer are duplicates because similarities of Customer Name, Date of birth and Father Name columns.
Customer code Customer Name Date of birth Father Name
------------------------------------------------------------
0001 Md. Alam 1991-10-20 Sr. Alam
0002 Alam 1991-10-20 Sr. alam
0005 Karim 1988-01-01 Sr. Karim
0006 Karim 1988-01-01 S Karim
Please help me to find out an effective way