You just need to give each row a unique id. Then you can do this:
select t1.studentid,
t1.Qualification as qualification1,
t2.qualification as qualification2,
t1.board as board1,
t2.Board as board2
from TestSQB t1 inner join
TestSQB t2 on t1.studentid = t2.studentid
and t1.uniqueid < t2.uniqueid