I have a table from those I need to get the column field as row
course |orderedid |name |address |phoneNumber
fairy |1473 |john |america | 1234
tales |1473 |john |America | 1234
Admin |1473 |john |america | 1234
I need the result like the below:
course course2 couse3 orderedid name address phoneNumber
fairy tales Admin 1473 john america 1234
How can I write this SQL query?