As a novice to SQL I have been trying to write a query to organize the data correctly from a table in the format I can use.
The table looks like this:
opendate servicename servicequantity
-----------------------------------------------------
2021-01-08 Major Service 15
2021-01-08 Minor Service 19
2021-01-08 Tyre Service 36
2021-01-08 Oil Change 24
2021-01-09 Major Service 15
2021-01-09 Minor Service 19
2021-01-09 Tyre Service 36
2021-01-09 Oil Change 24
2021-01-11 Major Service 15
2021-01-11 Minor Service 19
2021-01-11 Tyre Service 36
2021-01-11 Oil Change 24
What I need to to have rows as a single date and the name and quantity next to it, as long as it is dynamic
ie 2021-01-11 Major Service 15 Minor Service 19 Tyre Service 36 Oil Change 24 -- and more depending if there are extra servicenames
Is this possible?
Thank you
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…