• Rishi,

    You can do the same with 'select case...end'

    SELECT

    CASE

    WHEN total > 250 THEN 'pass'

    ELSE 'fail'

    END as 'status'

    FROM student

    -Vetri