This commit is contained in:
Nikita Taranov 2024-11-17 23:15:52 +01:00
parent ad6393ef71
commit cf22812a04
2 changed files with 27 additions and 35 deletions

View File

@ -251,12 +251,8 @@ sub2 as (select y, z from tab2 where y != 4),
sub3 as (select l.x, l.y, r.y, r.z as z from sub2 r any right join sub1 l on l.y = r.y),
sub4 as (select z, a from tab3 where z != 8),
sub5 as (select x, l.y, y, z, rr.z, a from sub3 ll any left join sub4 rr on ll.z = rr.z)
select * from sub5 order by all;
Expression
Sorting
Union
Expression
Sorting
select * from sub5;
Union
Expression
Join
Expression
@ -690,12 +686,8 @@ sub2 as (select y, z from tab2 where y != 4),
sub3 as (select l.x, l.y, r.y, r.z as z from sub2 r any right join sub1 l on l.y = r.y),
sub4 as (select z, a from tab3 where z != 8),
sub5 as (select x, l.y, y, z, rr.z, a from sub3 ll any left join sub4 rr on ll.z = rr.z)
select * from sub5 order by all;
Expression
Sorting
Union
Expression
Sorting
select * from sub5;
Union
Expression
Join
Expression

View File

@ -98,7 +98,7 @@ sub2 as (select y, z from tab2 where y != 4),
sub3 as (select l.x, l.y, r.y, r.z as z from sub2 r any right join sub1 l on l.y = r.y),
sub4 as (select z, a from tab3 where z != 8),
sub5 as (select x, l.y, y, z, rr.z, a from sub3 ll any left join sub4 rr on ll.z = rr.z)
select * from sub5;
select * from sub5 order by all;
explain description=0
with sub1 as (select x, y from tab1 where x != 2),