I have a table with data as following:
id col1 col2
1 c1
1 c2
2 b1
3 a3
4 e1
4 e2
Now I need to move this data in another table in such a way that the record that has same id goes as a single record in this new table.
so the new table data would look like this:
id col1 col2
1 c1 c2
2 b1
3 a3
4 e1 e2
now how do we do that?