select
(select majorcode from view_major where view_major.majorName = stu_Change.Maojrafter) as MajorAfterCode,
(select classcode from view_class where view_class .classname = stu_Change.Classafter) as ClassAfterCode
from stu_Change
where stu_Change.ID='123456789011'