Last active
December 12, 2015 06:39
-
-
Save maartenl/4730883 to your computer and use it in GitHub Desktop.
Transformation of Oracle outer join to Standard SQL OUTER JOIN statement
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
-- provides all employee that are not higher management | |
-- includes employees without a job title | |
SELECT * FROM employees | |
WHERE jobtitle (+) not in ('manager', 'department head', 'president') | |
-- changed to | |
select * from employees | |
where jobtitle not in ('manager', 'department head', 'president') | |
or jobtitle is null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment