Skip to content

Instantly share code, notes, and snippets.

@jonesnc
Created August 16, 2017 17:15
Show Gist options
  • Save jonesnc/cc2f56742a011685d2c2bc3cff264c25 to your computer and use it in GitHub Desktop.
Save jonesnc/cc2f56742a011685d2c2bc3cff264c25 to your computer and use it in GitHub Desktop.
Oracle SQL question
SELECT CASE
WHEN column_a IS NULL
THEN 'column a missing'
WHEN column_b IS NULL
THEN 'column b missing'
END
FROM (SELECT
1234,
NULL AS column_a,
NULL AS column_b
FROM dual)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment