Hi Guys
Im pretty new to sql and was wondering if one of you could help me out. I have a dataset which looks a bit like this:
Year crs_code school sub %
2011 KT101 ML French 30%
2011 KT101 Law Law 50%
2011 KT101 ML German 20%
and I need it to look like this
Year Crs_Code School1 School% School2 School2% Sub1 Sub1%
2011 KT101 ML 50% Law 50% French 30%
--Continued
Sub2 Sub2% Sub3 Sub3%
Law 50% German 20%
So effectively i need to pivot the data so its all on one row, however
Thanks
Dave
Im pretty new to sql and was wondering if one of you could help me out. I have a dataset which looks a bit like this:
Year crs_code school sub %
2011 KT101 ML French 30%
2011 KT101 Law Law 50%
2011 KT101 ML German 20%
and I need it to look like this
Year Crs_Code School1 School% School2 School2% Sub1 Sub1%
2011 KT101 ML 50% Law 50% French 30%
--Continued
Sub2 Sub2% Sub3 Sub3%
Law 50% German 20%
So effectively i need to pivot the data so its all on one row, however
Thanks
Dave