Created
December 13, 2021 16:50
-
-
Save liflovs/a4c6fbe66ba1ce007267aa958539b4f8 to your computer and use it in GitHub Desktop.
Postgres quick solutions cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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