Answers for "select query with if condition in postgresql"

SQL
1

select if then postgresql

SELECT field1, field2,
  CASE
    WHEN field1>0 THEN field2/field1
    ELSE 0
  END 
  AS field3
FROM test
Posted by: Guest on March-09-2021

Code answers related to "select query with if condition in postgresql"

Code answers related to "SQL"

Browse Popular Code Answers by Language