You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one INNER JOIN two ON one.id = two.id LEFT JOIN three ON two.id = three.id'
42
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one INNER JOIN test407.two ON test407.one.id = test407.two.id LEFT JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one INNER JOIN two ON one.id = two.id RIGHT JOIN three ON two.id = three.id'
53
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one INNER JOIN test407.two ON test407.one.id = test407.two.id RIGHT JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one INNER JOIN two ON one.id = two.id OUTER JOIN three ON two.id = three.id'
66
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one INNER JOIN test407.two ON test407.one.id = test407.two.id OUTER JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one LEFT JOIN two ON one.id = two.id INNER JOIN three ON two.id = three.id'
79
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one LEFT JOIN test407.two ON test407.one.id = test407.two.id INNER JOIN test407.three ON test407.two.id = test407.three.id'
80
80
);
81
81
expect(res).toEqual([['ABC','ABC','ABC']]);
82
82
done();
83
83
});
84
84
85
85
test('2.2. LEFT AND LEFT',done=>{
86
86
varres=alasql(
87
-
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one LEFT JOIN two ON one.id = two.id LEFT JOIN three ON two.id = three.id'
87
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one LEFT JOIN test407.two ON test407.one.id = test407.two.id LEFT JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one LEFT JOIN two ON one.id = two.id RIGHT JOIN three ON two.id = three.id'
100
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one LEFT JOIN test407.two ON test407.one.id = test407.two.id RIGHT JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one LEFT JOIN two ON one.id = two.id OUTER JOIN three ON two.id = three.id'
114
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one LEFT JOIN test407.two ON test407.one.id = test407.two.id OUTER JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one RIGHT JOIN two ON one.id = two.id INNER JOIN three ON two.id = three.id'
131
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one RIGHT JOIN test407.two ON test407.one.id = test407.two.id INNER JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one RIGHT JOIN two ON one.id = two.id LEFT JOIN three ON two.id = three.id'
142
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one RIGHT JOIN test407.two ON test407.one.id = test407.two.id LEFT JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one RIGHT JOIN two ON one.id = two.id RIGHT JOIN three ON two.id = three.id'
155
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one RIGHT JOIN test407.two ON test407.one.id = test407.two.id RIGHT JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one RIGHT JOIN two ON one.id = two.id OUTER JOIN three ON two.id = three.id'
168
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one RIGHT JOIN test407.two ON test407.one.id = test407.two.id OUTER JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one OUTER JOIN two ON one.id = two.id INNER JOIN three ON two.id = three.id'
184
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one OUTER JOIN test407.two ON test407.one.id = test407.two.id INNER JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one OUTER JOIN two ON one.id = two.id LEFT JOIN three ON two.id = three.id'
195
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one OUTER JOIN test407.two ON test407.one.id = test407.two.id LEFT JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one OUTER JOIN two ON one.id = two.id RIGHT JOIN three ON two.id = three.id'
210
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one OUTER JOIN test407.two ON test407.one.id = test407.two.id RIGHT JOIN test407.three ON test407.two.id = test407.three.id'
'SELECT one.id AS a, two.id AS b, three.id AS c FROM one OUTER JOIN two ON one.id = two.id OUTER JOIN three ON two.id = three.id'
223
+
'SELECT test407.one.id AS a, test407.two.id AS b, test407.three.id AS c FROM test407.one OUTER JOIN test407.two ON test407.one.id = test407.two.id OUTER JOIN test407.three ON test407.two.id = test407.three.id'
0 commit comments