📜  如何在select语句中的select查询中写if case - SQL代码示例

📅  最后修改于: 2022-03-11 15:04:55.152000             🧑  作者: Mango

代码示例1
SELECT player_name,
       CASE WHEN year = 'FR' AND position = 'WR' THEN 'frosh_wr'
            ELSE NULL END AS sample_case_statement
  FROM benn.college_football_players