Skip to content

Instantly share code, notes, and snippets.

@maartenl
Last active December 12, 2015 06:39
Show Gist options
  • Save maartenl/4730883 to your computer and use it in GitHub Desktop.
Save maartenl/4730883 to your computer and use it in GitHub Desktop.
Transformation of Oracle outer join to Standard SQL OUTER JOIN statement
-- 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