我有以下查询:
select 'junior' as type, value
from mytable
union
select 'intermediate' as type, value
from mytable
union
select 'senior' as type, value
from mytable
它返回以下数据:
type value
Intermediate 10
Junior 5
Senior 1
我只需要重新排序它看起来像这样
Junior 5
Intermediate 10
Senior 1
我无法弄清楚使用哪个 order by 子句来实现按自定义特定值排序,我将如何实现这一点?