postgresql if 0 then 1

Solutions on MaxInterview for postgresql if 0 then 1 by the best coders in the world