I'm trying to update the column of the table1 with table2. Trying to update column with row values.
Below is the scenario.
Table 1:
Student1 Class Student2   Class   Student3 Class   Student4 Class 
 A1      null  A2          null    A3       null    A4       null 
 A1      null  A2          null    A3       null    A4       null
Table 2:
Student_name  Class
   A1           1
   A2           2
   A3           3
   A4           4
   A1           1
   A2           2
   A3           3
   A4           5
how can i try to this data from row to column?? Need a Output like??
Student1 Class Staudent2   Class   Student3 Class   Student4 Class 
A1        1    A2          2       A3       3       A4       4 
A1        1    A2          2       A3       3       A4       5
