How to split column values to raw values e.g:
Col1 col2
1 james
1 gold
1 james@gmail.com
2 john
2 def
2 def@gmail.com
col1 values keep on changing to thousands.
results:
col1 col2 col3 col4
1 james gold james@gmail.com
2 john def ef@gmail.com
try this:
This will not guarantee the order of the values among the columns, as the table doesnt have a column to show the order of the columns..If you have a column, like that, you could change select 0 with that column
SQL fiddle demo