This is my table returned after my sp executed:
ChildName | DATE | CLASS | SERVING TIME
Andrew 20.11.2019 1 Breakfast,Lunch,Snacks
Andrew 21.11.2019 1 Breakfast,Lunch
David NULL 1 NULL
Ijas 22.11.2019 1 Snacks
Kerry NULL 1 NULL
Paul NULL 1 NULL
Ram 22.11.2019 1 Snacks
Ram 23.11.2019 1 Lunch
And I want the result like this
ChildName | 20.11.2019 | 21.11.2019 | 22.11.2019 | 23.11.2019 |Class
Andrew Breakfast,Lunch,Snacks Breakfast,Lunch NULL NULL 1
David NULL NULL NULL NULL 1
Ijas NULL NULL Snacks NULL 1
Kerry NULL NULL NULL NULL 1
Paul NULL NULL NULL NULL 1
Ram NULL NULL Snacks Lunch 1
How can i build the result?