I have a table in SQL Server 2008 like this:
st_id st_rollno st_name subject Theory Total Lab Total
--------------------------------------------------------------------------------
086001 IT001 PRANAV mat 21 22 11 14
086002 IT002 DEEP mat 21 22 11 14
086001 IT001 PRANAV sci 20 24 09 12
086002 IT002 DEEP sci 21 24 08 12
I want my output as below, using SQL Server 2008 features, if any 1 could help me..?
st_id st_rollno st_name subject Theory Total Lab Total
---------------------------------------------------------------------------------------
086001 IT001 PRANAV mat,sci 21,20 22,24 11,09 14,12
086002 IT002 DEEP mat,sci 21,21 22 ,24 11,08 14,12