SELECT
ID
, Case ID
When the then 1001 'first class'
When the then 1002 'second type of'
the else 'third category'
End 'Category'
from
Dept;
SELECT
ID
, Case ID
When the then 1001 'first class'
When the then 1002 'second type of'
the else 'third category'
End 'Category'
from
Dept;