I've thousands of duplicate (ids) rows in SQL table but the other columns are different. I want to merge duplicate rows with respect to ids. Here is the sample.
Here is my table with duplicated rows.
id2 Name
50300 NAJMA BAIGUM
50300 MUHAMMAD IQBAL
50301 WAHABUDDIN
50301 ABDUL SALAM
What I want after merging into 1 row of corresponding duplicated id2 using sql query?
id2 Name Name
50300 NAJMA BAIGUM MUHAMMAD IQBAL
50301 WAHABUDDIN ABDUL SALAM
Anyone can help me out?