Last active
November 3, 2020 08:21
-
-
Save YiLi225/cb30674a67a25a3108bbee76c445456f to your computer and use it in GitHub Desktop.
SQL tricks
This file contains 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
---- 1) COALESCE() to recode the NULL value to the character string MISSING | |
SELECT | |
ID_VAR, | |
NULL_VAR, | |
COALESCE(NULL_VAR, 'MISSING') AS RECODE_NULL_VAR | |
FROM | |
CURRENT_TABLE | |
ORDER BY ID_VAR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment