SQL query rows transpose to columns

I have one SQL table transpose rows to columns,

This input:

Expected output :

I want each student id transpose, output file headers static for all.only we can update individual student details

@AJITH_SK

Use copy paste range and select transpose

Cheers

I paste to other excel
template file, not same file

@AJITH_SK

Copy paste would work to copy to a separate file as well

Cheers