blob: 50ef1bae40102d930999c7699349a3269aa9b320 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
USE plato;
pragma yt.JoinEnableStarJoin="true";
insert into @x
select Just('xxx') as id
order by id;
insert into @y
select Just('yyy') as id
order by id;
insert into @a
select Just('aaa') as id
order by id;
commit;
$xy_leftonly = (
SELECT
x.id AS id
FROM
@x AS x
LEFT ONLY JOIN @y AS y
ON x.id == y.id
);
SELECT
*
FROM
@a AS a
LEFT ONLY JOIN $xy_leftonly AS b
ON a.id == b.id;
|