Answers for "create column name using case statement sql"

SQL
1

give a column name to values generated from case statement in sql

SELECT *, CASE WHEN a = 'test' THEN 'yes' END as value FROM (
   SELECT col1 as a FROM table
)
Posted by: Guest on May-26-2021

Code answers related to "create column name using case statement sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language