Answers for "postgres if 1 and 0 instead of true and false"

SQL
1

postgresql if 0 then 1

-- returns the greatest value, in case 1
select greatest( 0, 1 )
-> 1
-- it also works with null values
select greatest( null, 1 )
-> 1
Posted by: Guest on February-19-2021

Code answers related to "postgres if 1 and 0 instead of true and false"

Code answers related to "SQL"

Browse Popular Code Answers by Language