I am wodering is it possible to use a pivot table to make the col as rows without using any mysql functions and GROUP AS.
Here's the table
+----+------+------+------+
| id | col1 | col2 | col3 |
+----+------+------+------+
| 1 | 1 | 2 | 6 |
| 2 | 7 | 4 | 8 |
| 3 | 4 | 1 | 5 |
+----+------+------+------+
Here's the desired output iam looking for. The header is the id
+---+---+---+
| 1 | 2 | 3 |
+---+---+---+
| 1 | 7 | 4 |
| 2 | 4 | 1 |
| 6 | 8 | 2 |
+---+---+---+