Skip to content

Instantly share code, notes, and snippets.

@liflovs
Created December 13, 2021 16:50
Show Gist options
  • Save liflovs/a4c6fbe66ba1ce007267aa958539b4f8 to your computer and use it in GitHub Desktop.
Save liflovs/a4c6fbe66ba1ce007267aa958539b4f8 to your computer and use it in GitHub Desktop.
Postgres quick solutions cheatsheet
/* get all absent ('' and NULL) values as 0 */
coalesce(cast(nullif("value",'') as float),0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment