Home Forums SQL Server 2008 SQL Server 2008 - General SQL Query RE: SQL Query
Dird
SSCertifiable
Points: 5081
More actions
July 28, 2013 at 6:00 am
#1636448
select name,
case
when maths > science and maths > comp then 'maths'
when comp > science and comp > maths then 'comp'
else 'science'
end
from student