Created
November 14, 2017 11:22
-
-
Save ORBAT/c03efa560c2ff87354b168883ae2428a to your computer and use it in GitHub Desktop.
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
explain with a (id, num) as (values | |
(1, 10) | |
, (2, 20) | |
, (4, 40) | |
, (5, 50) | |
) | |
, b (id, num) as (values | |
(1, 100) | |
, (2, 200) | |
, (3, 300) | |
, (4, 400) | |
, (5, 500) | |
) | |
, combo as ( | |
select a.num as a, b.num as b | |
from a | |
left outer join b on a.id = b.id | |
) | |
select a from combo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment