0

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?

halfer
  • 19,824
  • 17
  • 99
  • 186
Sadda-shutu
  • 1,309
  • 2
  • 18
  • 42

0 Answers0