Answers for "if in sql select"

SQL
0

how to write if case in select query in select statement

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
Posted by: Guest on August-27-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language