well I know no simple answer.
but if you know the different type of classes you could do a case, or you could build a table then update it.
select user,
class1 = case when class = 'ENGLISH' then class else 'NONE' end,
class2 = case when class = 'MATH' then class else 'NONE' end,
class3 = case when class = 'HISTORY' then class else 'NONE' end,
class4 = case when class = 'COMPUTER' then class else 'NONE' end
from TABLE
That is not that great of a solution, but maybe point you in a direction to get started.