Answers for "how to give column values using case statement in 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 "how to give column values using case statement in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language