SQL Conditional column data return in a select statement

前端 未结 2 1104
一整个雨季
一整个雨季 2020-12-15 15:28

Here is a simplication of the problem: I have a select that looks like this:

Select ID, Assignee, WorkStream from assignees;

And a snap sho

2条回答
  •  时光取名叫无心
    2020-12-15 16:15

    SELECT ID, 
           CASE WorkStream  WHEN 'Internal' THEN 'INTERNAL' ELSE Assignee as Assignee,    WorkStream  from assignees
    

    I hope this help.

提交回复
热议问题