1 set testdir [file dirname $argv0]
4 # The author disclaims copyright to this source code. In place of
5 # a legal notice, here is a blessing:
7 # May you do good and not evil.
8 # May you find forgiveness for yourself and forgive others.
9 # May you share freely, never taking more than you give.
11 #***********************************************************************
13 # This file implements tests for JOINs.
15 # The test case output is all generated by PostgreSQL 14. This test module
16 # was created as follows:
18 # 1. Run a TCL script (included at the bottom of this file) that
19 # generates an input script for "psql" that will run man
20 # diverse tests on joins.
22 # 2. Run the script from step (1) through psql and collect the
25 # 3. Make a few minor global search-and-replace operations to convert
26 # the psql output into a form suitable for this test module.
28 # 4. Add this header, and the script content at the footer.
30 source $testdir/tester.tcl
33 DROP TABLE IF EXISTS t1;
34 DROP TABLE IF EXISTS t2;
35 DROP TABLE IF EXISTS t3;
36 DROP TABLE IF EXISTS t4;
37 DROP TABLE IF EXISTS t5;
38 CREATE TABLE t1(a INT, b INT, c INT);
39 CREATE TABLE t2(a INT, b INT, d INT);
40 CREATE TABLE t3(a INT, b INT, e INT);
41 CREATE TABLE t4(a INT, b INT, f INT);
42 CREATE TABLE t5(a INT, b INT, g INT);
43 INSERT INTO t1 VALUES(11,21,31),(12,22,32),(15,25,35),(17,27,37);
44 INSERT INTO t2 VALUES(12,22,32),(13,23,33),(15,25,35),(18,28,38),
46 INSERT INTO t4 VALUES(11,21,31),(13,23,33),(15,25,35),(19,29,39);
47 INSERT INTO t3 SELECT * FROM t1 UNION SELECT * FROM t2 UNION SELECT * FROM t4;
48 INSERT INTO t5 SELECT * FROM t3 WHERE a>=15;
50 do_execsql_test joinB-1 {
51 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
53 INNER JOIN t2 USING(a)
54 INNER JOIN t3 USING(a)
55 INNER JOIN t4 USING(a)
56 INNER JOIN t5 USING(a)
57 ORDER BY 1 NULLS FIRST;
61 do_execsql_test joinB-2 {
62 SELECT a, c, d, e, f, g
64 INNER JOIN t2 USING(a,b)
65 INNER JOIN t3 USING(a,b)
66 INNER JOIN t4 USING(a,b)
67 INNER JOIN t5 USING(a,b)
69 ORDER BY 1 NULLS FIRST;
73 do_execsql_test joinB-3 {
74 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
76 INNER JOIN t2 USING(a)
77 INNER JOIN t3 USING(a)
78 INNER JOIN t4 USING(a)
80 ORDER BY 1 NULLS FIRST;
84 do_execsql_test joinB-4 {
85 SELECT a, c, d, e, f, g
87 INNER JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
88 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
90 ORDER BY 1 NULLS FIRST;
94 do_execsql_test joinB-5 {
95 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
97 INNER JOIN t2 USING(a)
98 INNER JOIN t3 USING(a)
99 INNER JOIN t4 USING(a)
100 RIGHT JOIN t5 USING(a)
101 ORDER BY 1 NULLS FIRST;
108 do_execsql_test joinB-6 {
109 SELECT a, b, c, d, e, f, g
111 INNER JOIN t2 USING(a,b)
112 INNER JOIN t3 USING(a,b)
113 INNER JOIN t4 USING(a,b)
114 RIGHT JOIN t5 USING(a,b)
115 WHERE d<>33 OR d IS NULL
116 ORDER BY 1 NULLS FIRST;
123 do_execsql_test joinB-7 {
124 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
126 INNER JOIN t2 USING(a)
127 INNER JOIN t3 USING(a)
128 INNER JOIN t4 USING(a)
129 FULL JOIN t5 USING(a)
130 ORDER BY 1 NULLS FIRST;
137 do_execsql_test joinB-8 {
138 SELECT b, c, d, e, f, g
140 NATURAL INNER JOIN t2
141 NATURAL INNER JOIN t3
142 NATURAL INNER JOIN t4
144 WHERE b BETWEEN 12 AND 17
145 ORDER BY 1 NULLS FIRST;
148 do_execsql_test joinB-9 {
149 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
151 INNER JOIN t2 USING(a)
152 INNER JOIN t3 USING(a)
153 LEFT JOIN t4 USING(a)
154 INNER JOIN t5 USING(a)
155 ORDER BY 1 NULLS FIRST;
159 do_execsql_test joinB-10 {
160 SELECT a, c, d, e, f, g
162 INNER JOIN t2 USING(a,b)
163 INNER JOIN t3 USING(a,b)
164 LEFT JOIN t4 USING(a,b)
165 INNER JOIN t5 USING(a,b)
167 ORDER BY 1 NULLS FIRST;
171 do_execsql_test joinB-11 {
172 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
174 INNER JOIN t2 USING(a)
175 INNER JOIN t3 USING(a)
176 LEFT JOIN t4 USING(a)
177 LEFT JOIN t5 USING(a)
178 ORDER BY 1 NULLS FIRST;
183 do_execsql_test joinB-12 {
184 SELECT a, c, d, e, f, g
186 INNER JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
187 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
189 ORDER BY 1 NULLS FIRST;
194 do_execsql_test joinB-13 {
195 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
197 INNER JOIN t2 USING(a)
198 INNER JOIN t3 USING(a)
199 LEFT JOIN t4 USING(a)
200 RIGHT JOIN t5 USING(a)
201 ORDER BY 1 NULLS FIRST;
208 do_execsql_test joinB-14 {
209 SELECT a, b, c, d, e, f, g
211 INNER JOIN t2 USING(a,b)
212 INNER JOIN t3 USING(a,b)
213 LEFT JOIN t4 USING(a,b)
214 RIGHT JOIN t5 USING(a,b)
215 WHERE d<>33 OR d IS NULL
216 ORDER BY 1 NULLS FIRST;
223 do_execsql_test joinB-15 {
224 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
226 INNER JOIN t2 USING(a)
227 INNER JOIN t3 USING(a)
228 LEFT JOIN t4 USING(a)
229 FULL JOIN t5 USING(a)
230 ORDER BY 1 NULLS FIRST;
238 do_execsql_test joinB-16 {
239 SELECT b, c, d, e, f, g
241 NATURAL INNER JOIN t2
242 NATURAL INNER JOIN t3
245 WHERE b BETWEEN 12 AND 17
246 ORDER BY 1 NULLS FIRST;
249 do_execsql_test joinB-17 {
250 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
252 INNER JOIN t2 USING(a)
253 INNER JOIN t3 USING(a)
254 RIGHT JOIN t4 USING(a)
255 INNER JOIN t5 USING(a)
256 ORDER BY 1 NULLS FIRST;
261 do_execsql_test joinB-18 {
262 SELECT a, c, d, e, f, g
264 INNER JOIN t2 USING(a,b)
265 INNER JOIN t3 USING(a,b)
266 RIGHT JOIN t4 USING(a,b)
267 INNER JOIN t5 USING(a,b)
269 ORDER BY 1 NULLS FIRST;
274 do_execsql_test joinB-19 {
275 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
277 INNER JOIN t2 USING(a)
278 INNER JOIN t3 USING(a)
279 RIGHT JOIN t4 USING(a)
280 LEFT JOIN t5 USING(a)
281 ORDER BY 1 NULLS FIRST;
288 do_execsql_test joinB-20 {
289 SELECT a, c, d, e, f, g
291 INNER JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
292 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
294 ORDER BY 1 NULLS FIRST;
300 do_execsql_test joinB-21 {
301 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
303 INNER JOIN t2 USING(a)
304 INNER JOIN t3 USING(a)
305 RIGHT JOIN t4 USING(a)
306 RIGHT JOIN t5 USING(a)
307 ORDER BY 1 NULLS FIRST;
314 do_execsql_test joinB-22 {
315 SELECT a, b, c, d, e, f, g
317 INNER JOIN t2 USING(a,b)
318 INNER JOIN t3 USING(a,b)
319 RIGHT JOIN t4 USING(a,b)
320 RIGHT JOIN t5 USING(a,b)
321 WHERE d<>33 OR d IS NULL
322 ORDER BY 1 NULLS FIRST;
329 do_execsql_test joinB-23 {
330 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
332 INNER JOIN t2 USING(a)
333 INNER JOIN t3 USING(a)
334 RIGHT JOIN t4 USING(a)
335 FULL JOIN t5 USING(a)
336 ORDER BY 1 NULLS FIRST;
345 do_execsql_test joinB-24 {
346 SELECT b, c, d, e, f, g
348 NATURAL INNER JOIN t2
349 NATURAL INNER JOIN t3
350 NATURAL RIGHT JOIN t4
352 WHERE b BETWEEN 12 AND 17
353 ORDER BY 1 NULLS FIRST;
356 do_execsql_test joinB-25 {
357 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
359 INNER JOIN t2 USING(a)
360 INNER JOIN t3 USING(a)
361 FULL JOIN t4 USING(a)
362 INNER JOIN t5 USING(a)
363 ORDER BY 1 NULLS FIRST;
368 do_execsql_test joinB-26 {
369 SELECT a, c, d, e, f, g
371 INNER JOIN t2 USING(a,b)
372 INNER JOIN t3 USING(a,b)
373 FULL JOIN t4 USING(a,b)
374 INNER JOIN t5 USING(a,b)
376 ORDER BY 1 NULLS FIRST;
381 do_execsql_test joinB-27 {
382 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
384 INNER JOIN t2 USING(a)
385 INNER JOIN t3 USING(a)
386 FULL JOIN t4 USING(a)
387 LEFT JOIN t5 USING(a)
388 ORDER BY 1 NULLS FIRST;
396 do_execsql_test joinB-28 {
397 SELECT a, c, d, e, f, g
399 INNER JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
400 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
402 ORDER BY 1 NULLS FIRST;
409 do_execsql_test joinB-29 {
410 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
412 INNER JOIN t2 USING(a)
413 INNER JOIN t3 USING(a)
414 FULL JOIN t4 USING(a)
415 RIGHT JOIN t5 USING(a)
416 ORDER BY 1 NULLS FIRST;
423 do_execsql_test joinB-30 {
424 SELECT a, b, c, d, e, f, g
426 INNER JOIN t2 USING(a,b)
427 INNER JOIN t3 USING(a,b)
428 FULL JOIN t4 USING(a,b)
429 RIGHT JOIN t5 USING(a,b)
430 WHERE d<>33 OR d IS NULL
431 ORDER BY 1 NULLS FIRST;
438 do_execsql_test joinB-31 {
439 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
441 INNER JOIN t2 USING(a)
442 INNER JOIN t3 USING(a)
443 FULL JOIN t4 USING(a)
444 FULL JOIN t5 USING(a)
445 ORDER BY 1 NULLS FIRST;
455 do_execsql_test joinB-32 {
456 SELECT b, c, d, e, f, g
458 NATURAL INNER JOIN t2
459 NATURAL INNER JOIN t3
462 WHERE b BETWEEN 12 AND 17
463 ORDER BY 1 NULLS FIRST;
466 do_execsql_test joinB-33 {
467 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
469 INNER JOIN t2 USING(a)
470 LEFT JOIN t3 USING(a)
471 INNER JOIN t4 USING(a)
472 INNER JOIN t5 USING(a)
473 ORDER BY 1 NULLS FIRST;
477 do_execsql_test joinB-34 {
478 SELECT a, c, d, e, f, g
480 INNER JOIN t2 USING(a,b)
481 LEFT JOIN t3 USING(a,b)
482 INNER JOIN t4 USING(a,b)
483 INNER JOIN t5 USING(a,b)
485 ORDER BY 1 NULLS FIRST;
489 do_execsql_test joinB-35 {
490 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
492 INNER JOIN t2 USING(a)
493 LEFT JOIN t3 USING(a)
494 INNER JOIN t4 USING(a)
495 LEFT JOIN t5 USING(a)
496 ORDER BY 1 NULLS FIRST;
500 do_execsql_test joinB-36 {
501 SELECT a, c, d, e, f, g
503 INNER JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
504 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
506 ORDER BY 1 NULLS FIRST;
510 do_execsql_test joinB-37 {
511 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
513 INNER JOIN t2 USING(a)
514 LEFT JOIN t3 USING(a)
515 INNER JOIN t4 USING(a)
516 RIGHT JOIN t5 USING(a)
517 ORDER BY 1 NULLS FIRST;
524 do_execsql_test joinB-38 {
525 SELECT a, b, c, d, e, f, g
527 INNER JOIN t2 USING(a,b)
528 LEFT JOIN t3 USING(a,b)
529 INNER JOIN t4 USING(a,b)
530 RIGHT JOIN t5 USING(a,b)
531 WHERE d<>33 OR d IS NULL
532 ORDER BY 1 NULLS FIRST;
539 do_execsql_test joinB-39 {
540 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
542 INNER JOIN t2 USING(a)
543 LEFT JOIN t3 USING(a)
544 INNER JOIN t4 USING(a)
545 FULL JOIN t5 USING(a)
546 ORDER BY 1 NULLS FIRST;
553 do_execsql_test joinB-40 {
554 SELECT b, c, d, e, f, g
556 NATURAL INNER JOIN t2
558 NATURAL INNER JOIN t4
560 WHERE b BETWEEN 12 AND 17
561 ORDER BY 1 NULLS FIRST;
564 do_execsql_test joinB-41 {
565 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
567 INNER JOIN t2 USING(a)
568 LEFT JOIN t3 USING(a)
569 LEFT JOIN t4 USING(a)
570 INNER JOIN t5 USING(a)
571 ORDER BY 1 NULLS FIRST;
575 do_execsql_test joinB-42 {
576 SELECT a, c, d, e, f, g
578 INNER JOIN t2 USING(a,b)
579 LEFT JOIN t3 USING(a,b)
580 LEFT JOIN t4 USING(a,b)
581 INNER JOIN t5 USING(a,b)
583 ORDER BY 1 NULLS FIRST;
587 do_execsql_test joinB-43 {
588 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
590 INNER JOIN t2 USING(a)
591 LEFT JOIN t3 USING(a)
592 LEFT JOIN t4 USING(a)
593 LEFT JOIN t5 USING(a)
594 ORDER BY 1 NULLS FIRST;
599 do_execsql_test joinB-44 {
600 SELECT a, c, d, e, f, g
602 INNER JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
603 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
605 ORDER BY 1 NULLS FIRST;
610 do_execsql_test joinB-45 {
611 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
613 INNER JOIN t2 USING(a)
614 LEFT JOIN t3 USING(a)
615 LEFT JOIN t4 USING(a)
616 RIGHT JOIN t5 USING(a)
617 ORDER BY 1 NULLS FIRST;
624 do_execsql_test joinB-46 {
625 SELECT a, b, c, d, e, f, g
627 INNER JOIN t2 USING(a,b)
628 LEFT JOIN t3 USING(a,b)
629 LEFT JOIN t4 USING(a,b)
630 RIGHT JOIN t5 USING(a,b)
631 WHERE d<>33 OR d IS NULL
632 ORDER BY 1 NULLS FIRST;
639 do_execsql_test joinB-47 {
640 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
642 INNER JOIN t2 USING(a)
643 LEFT JOIN t3 USING(a)
644 LEFT JOIN t4 USING(a)
645 FULL JOIN t5 USING(a)
646 ORDER BY 1 NULLS FIRST;
654 do_execsql_test joinB-48 {
655 SELECT b, c, d, e, f, g
657 NATURAL INNER JOIN t2
661 WHERE b BETWEEN 12 AND 17
662 ORDER BY 1 NULLS FIRST;
665 do_execsql_test joinB-49 {
666 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
668 INNER JOIN t2 USING(a)
669 LEFT JOIN t3 USING(a)
670 RIGHT JOIN t4 USING(a)
671 INNER JOIN t5 USING(a)
672 ORDER BY 1 NULLS FIRST;
677 do_execsql_test joinB-50 {
678 SELECT a, c, d, e, f, g
680 INNER JOIN t2 USING(a,b)
681 LEFT JOIN t3 USING(a,b)
682 RIGHT JOIN t4 USING(a,b)
683 INNER JOIN t5 USING(a,b)
685 ORDER BY 1 NULLS FIRST;
690 do_execsql_test joinB-51 {
691 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
693 INNER JOIN t2 USING(a)
694 LEFT JOIN t3 USING(a)
695 RIGHT JOIN t4 USING(a)
696 LEFT JOIN t5 USING(a)
697 ORDER BY 1 NULLS FIRST;
704 do_execsql_test joinB-52 {
705 SELECT a, c, d, e, f, g
707 INNER JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
708 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
710 ORDER BY 1 NULLS FIRST;
716 do_execsql_test joinB-53 {
717 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
719 INNER JOIN t2 USING(a)
720 LEFT JOIN t3 USING(a)
721 RIGHT JOIN t4 USING(a)
722 RIGHT JOIN t5 USING(a)
723 ORDER BY 1 NULLS FIRST;
730 do_execsql_test joinB-54 {
731 SELECT a, b, c, d, e, f, g
733 INNER JOIN t2 USING(a,b)
734 LEFT JOIN t3 USING(a,b)
735 RIGHT JOIN t4 USING(a,b)
736 RIGHT JOIN t5 USING(a,b)
737 WHERE d<>33 OR d IS NULL
738 ORDER BY 1 NULLS FIRST;
745 do_execsql_test joinB-55 {
746 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
748 INNER JOIN t2 USING(a)
749 LEFT JOIN t3 USING(a)
750 RIGHT JOIN t4 USING(a)
751 FULL JOIN t5 USING(a)
752 ORDER BY 1 NULLS FIRST;
761 do_execsql_test joinB-56 {
762 SELECT b, c, d, e, f, g
764 NATURAL INNER JOIN t2
766 NATURAL RIGHT JOIN t4
768 WHERE b BETWEEN 12 AND 17
769 ORDER BY 1 NULLS FIRST;
772 do_execsql_test joinB-57 {
773 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
775 INNER JOIN t2 USING(a)
776 LEFT JOIN t3 USING(a)
777 FULL JOIN t4 USING(a)
778 INNER JOIN t5 USING(a)
779 ORDER BY 1 NULLS FIRST;
784 do_execsql_test joinB-58 {
785 SELECT a, c, d, e, f, g
787 INNER JOIN t2 USING(a,b)
788 LEFT JOIN t3 USING(a,b)
789 FULL JOIN t4 USING(a,b)
790 INNER JOIN t5 USING(a,b)
792 ORDER BY 1 NULLS FIRST;
797 do_execsql_test joinB-59 {
798 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
800 INNER JOIN t2 USING(a)
801 LEFT JOIN t3 USING(a)
802 FULL JOIN t4 USING(a)
803 LEFT JOIN t5 USING(a)
804 ORDER BY 1 NULLS FIRST;
812 do_execsql_test joinB-60 {
813 SELECT a, c, d, e, f, g
815 INNER JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
816 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
818 ORDER BY 1 NULLS FIRST;
825 do_execsql_test joinB-61 {
826 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
828 INNER JOIN t2 USING(a)
829 LEFT JOIN t3 USING(a)
830 FULL JOIN t4 USING(a)
831 RIGHT JOIN t5 USING(a)
832 ORDER BY 1 NULLS FIRST;
839 do_execsql_test joinB-62 {
840 SELECT a, b, c, d, e, f, g
842 INNER JOIN t2 USING(a,b)
843 LEFT JOIN t3 USING(a,b)
844 FULL JOIN t4 USING(a,b)
845 RIGHT JOIN t5 USING(a,b)
846 WHERE d<>33 OR d IS NULL
847 ORDER BY 1 NULLS FIRST;
854 do_execsql_test joinB-63 {
855 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
857 INNER JOIN t2 USING(a)
858 LEFT JOIN t3 USING(a)
859 FULL JOIN t4 USING(a)
860 FULL JOIN t5 USING(a)
861 ORDER BY 1 NULLS FIRST;
871 do_execsql_test joinB-64 {
872 SELECT b, c, d, e, f, g
874 NATURAL INNER JOIN t2
878 WHERE b BETWEEN 12 AND 17
879 ORDER BY 1 NULLS FIRST;
882 do_execsql_test joinB-65 {
883 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
885 INNER JOIN t2 USING(a)
886 RIGHT JOIN t3 USING(a)
887 INNER JOIN t4 USING(a)
888 INNER JOIN t5 USING(a)
889 ORDER BY 1 NULLS FIRST;
894 do_execsql_test joinB-66 {
895 SELECT a, c, d, e, f, g
897 INNER JOIN t2 USING(a,b)
898 RIGHT JOIN t3 USING(a,b)
899 INNER JOIN t4 USING(a,b)
900 INNER JOIN t5 USING(a,b)
902 ORDER BY 1 NULLS FIRST;
907 do_execsql_test joinB-67 {
908 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
910 INNER JOIN t2 USING(a)
911 RIGHT JOIN t3 USING(a)
912 INNER JOIN t4 USING(a)
913 LEFT JOIN t5 USING(a)
914 ORDER BY 1 NULLS FIRST;
921 do_execsql_test joinB-68 {
922 SELECT a, c, d, e, f, g
924 INNER JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
925 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
927 ORDER BY 1 NULLS FIRST;
932 do_execsql_test joinB-69 {
933 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
935 INNER JOIN t2 USING(a)
936 RIGHT JOIN t3 USING(a)
937 INNER JOIN t4 USING(a)
938 RIGHT JOIN t5 USING(a)
939 ORDER BY 1 NULLS FIRST;
946 do_execsql_test joinB-70 {
947 SELECT a, b, c, d, e, f, g
949 INNER JOIN t2 USING(a,b)
950 RIGHT JOIN t3 USING(a,b)
951 INNER JOIN t4 USING(a,b)
952 RIGHT JOIN t5 USING(a,b)
953 WHERE d<>33 OR d IS NULL
954 ORDER BY 1 NULLS FIRST;
961 do_execsql_test joinB-71 {
962 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
964 INNER JOIN t2 USING(a)
965 RIGHT JOIN t3 USING(a)
966 INNER JOIN t4 USING(a)
967 FULL JOIN t5 USING(a)
968 ORDER BY 1 NULLS FIRST;
977 do_execsql_test joinB-72 {
978 SELECT b, c, d, e, f, g
980 NATURAL INNER JOIN t2
981 NATURAL RIGHT JOIN t3
982 NATURAL INNER JOIN t4
984 WHERE b BETWEEN 12 AND 17
985 ORDER BY 1 NULLS FIRST;
988 do_execsql_test joinB-73 {
989 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
991 INNER JOIN t2 USING(a)
992 RIGHT JOIN t3 USING(a)
993 LEFT JOIN t4 USING(a)
994 INNER JOIN t5 USING(a)
995 ORDER BY 1 NULLS FIRST;
1002 do_execsql_test joinB-74 {
1003 SELECT a, c, d, e, f, g
1005 INNER JOIN t2 USING(a,b)
1006 RIGHT JOIN t3 USING(a,b)
1007 LEFT JOIN t4 USING(a,b)
1008 INNER JOIN t5 USING(a,b)
1010 ORDER BY 1 NULLS FIRST;
1017 do_execsql_test joinB-75 {
1018 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1020 INNER JOIN t2 USING(a)
1021 RIGHT JOIN t3 USING(a)
1022 LEFT JOIN t4 USING(a)
1023 LEFT JOIN t5 USING(a)
1024 ORDER BY 1 NULLS FIRST;
1035 do_execsql_test joinB-76 {
1036 SELECT a, c, d, e, f, g
1038 INNER JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
1039 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1041 ORDER BY 1 NULLS FIRST;
1048 do_execsql_test joinB-77 {
1049 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1051 INNER JOIN t2 USING(a)
1052 RIGHT JOIN t3 USING(a)
1053 LEFT JOIN t4 USING(a)
1054 RIGHT JOIN t5 USING(a)
1055 ORDER BY 1 NULLS FIRST;
1062 do_execsql_test joinB-78 {
1063 SELECT a, b, c, d, e, f, g
1065 INNER JOIN t2 USING(a,b)
1066 RIGHT JOIN t3 USING(a,b)
1067 LEFT JOIN t4 USING(a,b)
1068 RIGHT JOIN t5 USING(a,b)
1069 WHERE d<>33 OR d IS NULL
1070 ORDER BY 1 NULLS FIRST;
1072 15 25 35 35 35 35 35
1077 do_execsql_test joinB-79 {
1078 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1080 INNER JOIN t2 USING(a)
1081 RIGHT JOIN t3 USING(a)
1082 LEFT JOIN t4 USING(a)
1083 FULL JOIN t5 USING(a)
1084 ORDER BY 1 NULLS FIRST;
1095 do_execsql_test joinB-80 {
1096 SELECT b, c, d, e, f, g
1098 NATURAL INNER JOIN t2
1099 NATURAL RIGHT JOIN t3
1100 NATURAL LEFT JOIN t4
1101 NATURAL FULL JOIN t5
1102 WHERE b BETWEEN 12 AND 17
1103 ORDER BY 1 NULLS FIRST;
1106 do_execsql_test joinB-81 {
1107 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1109 INNER JOIN t2 USING(a)
1110 RIGHT JOIN t3 USING(a)
1111 RIGHT JOIN t4 USING(a)
1112 INNER JOIN t5 USING(a)
1113 ORDER BY 1 NULLS FIRST;
1118 do_execsql_test joinB-82 {
1119 SELECT a, c, d, e, f, g
1121 INNER JOIN t2 USING(a,b)
1122 RIGHT JOIN t3 USING(a,b)
1123 RIGHT JOIN t4 USING(a,b)
1124 INNER JOIN t5 USING(a,b)
1126 ORDER BY 1 NULLS FIRST;
1131 do_execsql_test joinB-83 {
1132 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1134 INNER JOIN t2 USING(a)
1135 RIGHT JOIN t3 USING(a)
1136 RIGHT JOIN t4 USING(a)
1137 LEFT JOIN t5 USING(a)
1138 ORDER BY 1 NULLS FIRST;
1145 do_execsql_test joinB-84 {
1146 SELECT a, c, d, e, f, g
1148 INNER JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
1149 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1151 ORDER BY 1 NULLS FIRST;
1157 do_execsql_test joinB-85 {
1158 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1160 INNER JOIN t2 USING(a)
1161 RIGHT JOIN t3 USING(a)
1162 RIGHT JOIN t4 USING(a)
1163 RIGHT JOIN t5 USING(a)
1164 ORDER BY 1 NULLS FIRST;
1171 do_execsql_test joinB-86 {
1172 SELECT a, b, c, d, e, f, g
1174 INNER JOIN t2 USING(a,b)
1175 RIGHT JOIN t3 USING(a,b)
1176 RIGHT JOIN t4 USING(a,b)
1177 RIGHT JOIN t5 USING(a,b)
1178 WHERE d<>33 OR d IS NULL
1179 ORDER BY 1 NULLS FIRST;
1181 15 25 35 35 35 35 35
1186 do_execsql_test joinB-87 {
1187 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1189 INNER JOIN t2 USING(a)
1190 RIGHT JOIN t3 USING(a)
1191 RIGHT JOIN t4 USING(a)
1192 FULL JOIN t5 USING(a)
1193 ORDER BY 1 NULLS FIRST;
1202 do_execsql_test joinB-88 {
1203 SELECT b, c, d, e, f, g
1205 NATURAL INNER JOIN t2
1206 NATURAL RIGHT JOIN t3
1207 NATURAL RIGHT JOIN t4
1208 NATURAL FULL JOIN t5
1209 WHERE b BETWEEN 12 AND 17
1210 ORDER BY 1 NULLS FIRST;
1213 do_execsql_test joinB-89 {
1214 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1216 INNER JOIN t2 USING(a)
1217 RIGHT JOIN t3 USING(a)
1218 FULL JOIN t4 USING(a)
1219 INNER JOIN t5 USING(a)
1220 ORDER BY 1 NULLS FIRST;
1227 do_execsql_test joinB-90 {
1228 SELECT a, c, d, e, f, g
1230 INNER JOIN t2 USING(a,b)
1231 RIGHT JOIN t3 USING(a,b)
1232 FULL JOIN t4 USING(a,b)
1233 INNER JOIN t5 USING(a,b)
1235 ORDER BY 1 NULLS FIRST;
1242 do_execsql_test joinB-91 {
1243 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1245 INNER JOIN t2 USING(a)
1246 RIGHT JOIN t3 USING(a)
1247 FULL JOIN t4 USING(a)
1248 LEFT JOIN t5 USING(a)
1249 ORDER BY 1 NULLS FIRST;
1260 do_execsql_test joinB-92 {
1261 SELECT a, c, d, e, f, g
1263 INNER JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
1264 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1266 ORDER BY 1 NULLS FIRST;
1274 do_execsql_test joinB-93 {
1275 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1277 INNER JOIN t2 USING(a)
1278 RIGHT JOIN t3 USING(a)
1279 FULL JOIN t4 USING(a)
1280 RIGHT JOIN t5 USING(a)
1281 ORDER BY 1 NULLS FIRST;
1288 do_execsql_test joinB-94 {
1289 SELECT a, b, c, d, e, f, g
1291 INNER JOIN t2 USING(a,b)
1292 RIGHT JOIN t3 USING(a,b)
1293 FULL JOIN t4 USING(a,b)
1294 RIGHT JOIN t5 USING(a,b)
1295 WHERE d<>33 OR d IS NULL
1296 ORDER BY 1 NULLS FIRST;
1298 15 25 35 35 35 35 35
1303 do_execsql_test joinB-95 {
1304 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1306 INNER JOIN t2 USING(a)
1307 RIGHT JOIN t3 USING(a)
1308 FULL JOIN t4 USING(a)
1309 FULL JOIN t5 USING(a)
1310 ORDER BY 1 NULLS FIRST;
1321 do_execsql_test joinB-96 {
1322 SELECT b, c, d, e, f, g
1324 NATURAL INNER JOIN t2
1325 NATURAL RIGHT JOIN t3
1326 NATURAL FULL JOIN t4
1327 NATURAL FULL JOIN t5
1328 WHERE b BETWEEN 12 AND 17
1329 ORDER BY 1 NULLS FIRST;
1332 do_execsql_test joinB-97 {
1333 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1335 INNER JOIN t2 USING(a)
1336 FULL JOIN t3 USING(a)
1337 INNER JOIN t4 USING(a)
1338 INNER JOIN t5 USING(a)
1339 ORDER BY 1 NULLS FIRST;
1344 do_execsql_test joinB-98 {
1345 SELECT a, c, d, e, f, g
1347 INNER JOIN t2 USING(a,b)
1348 FULL JOIN t3 USING(a,b)
1349 INNER JOIN t4 USING(a,b)
1350 INNER JOIN t5 USING(a,b)
1352 ORDER BY 1 NULLS FIRST;
1357 do_execsql_test joinB-99 {
1358 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1360 INNER JOIN t2 USING(a)
1361 FULL JOIN t3 USING(a)
1362 INNER JOIN t4 USING(a)
1363 LEFT JOIN t5 USING(a)
1364 ORDER BY 1 NULLS FIRST;
1371 do_execsql_test joinB-100 {
1372 SELECT a, c, d, e, f, g
1374 INNER JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
1375 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1377 ORDER BY 1 NULLS FIRST;
1382 do_execsql_test joinB-101 {
1383 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1385 INNER JOIN t2 USING(a)
1386 FULL JOIN t3 USING(a)
1387 INNER JOIN t4 USING(a)
1388 RIGHT JOIN t5 USING(a)
1389 ORDER BY 1 NULLS FIRST;
1396 do_execsql_test joinB-102 {
1397 SELECT a, b, c, d, e, f, g
1399 INNER JOIN t2 USING(a,b)
1400 FULL JOIN t3 USING(a,b)
1401 INNER JOIN t4 USING(a,b)
1402 RIGHT JOIN t5 USING(a,b)
1403 WHERE d<>33 OR d IS NULL
1404 ORDER BY 1 NULLS FIRST;
1406 15 25 35 35 35 35 35
1411 do_execsql_test joinB-103 {
1412 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1414 INNER JOIN t2 USING(a)
1415 FULL JOIN t3 USING(a)
1416 INNER JOIN t4 USING(a)
1417 FULL JOIN t5 USING(a)
1418 ORDER BY 1 NULLS FIRST;
1427 do_execsql_test joinB-104 {
1428 SELECT b, c, d, e, f, g
1430 NATURAL INNER JOIN t2
1431 NATURAL FULL JOIN t3
1432 NATURAL INNER JOIN t4
1433 NATURAL FULL JOIN t5
1434 WHERE b BETWEEN 12 AND 17
1435 ORDER BY 1 NULLS FIRST;
1438 do_execsql_test joinB-105 {
1439 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1441 INNER JOIN t2 USING(a)
1442 FULL JOIN t3 USING(a)
1443 LEFT JOIN t4 USING(a)
1444 INNER JOIN t5 USING(a)
1445 ORDER BY 1 NULLS FIRST;
1452 do_execsql_test joinB-106 {
1453 SELECT a, c, d, e, f, g
1455 INNER JOIN t2 USING(a,b)
1456 FULL JOIN t3 USING(a,b)
1457 LEFT JOIN t4 USING(a,b)
1458 INNER JOIN t5 USING(a,b)
1460 ORDER BY 1 NULLS FIRST;
1467 do_execsql_test joinB-107 {
1468 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1470 INNER JOIN t2 USING(a)
1471 FULL JOIN t3 USING(a)
1472 LEFT JOIN t4 USING(a)
1473 LEFT JOIN t5 USING(a)
1474 ORDER BY 1 NULLS FIRST;
1485 do_execsql_test joinB-108 {
1486 SELECT a, c, d, e, f, g
1488 INNER JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
1489 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1491 ORDER BY 1 NULLS FIRST;
1498 do_execsql_test joinB-109 {
1499 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1501 INNER JOIN t2 USING(a)
1502 FULL JOIN t3 USING(a)
1503 LEFT JOIN t4 USING(a)
1504 RIGHT JOIN t5 USING(a)
1505 ORDER BY 1 NULLS FIRST;
1512 do_execsql_test joinB-110 {
1513 SELECT a, b, c, d, e, f, g
1515 INNER JOIN t2 USING(a,b)
1516 FULL JOIN t3 USING(a,b)
1517 LEFT JOIN t4 USING(a,b)
1518 RIGHT JOIN t5 USING(a,b)
1519 WHERE d<>33 OR d IS NULL
1520 ORDER BY 1 NULLS FIRST;
1522 15 25 35 35 35 35 35
1527 do_execsql_test joinB-111 {
1528 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1530 INNER JOIN t2 USING(a)
1531 FULL JOIN t3 USING(a)
1532 LEFT JOIN t4 USING(a)
1533 FULL JOIN t5 USING(a)
1534 ORDER BY 1 NULLS FIRST;
1545 do_execsql_test joinB-112 {
1546 SELECT b, c, d, e, f, g
1548 NATURAL INNER JOIN t2
1549 NATURAL FULL JOIN t3
1550 NATURAL LEFT JOIN t4
1551 NATURAL FULL JOIN t5
1552 WHERE b BETWEEN 12 AND 17
1553 ORDER BY 1 NULLS FIRST;
1556 do_execsql_test joinB-113 {
1557 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1559 INNER JOIN t2 USING(a)
1560 FULL JOIN t3 USING(a)
1561 RIGHT JOIN t4 USING(a)
1562 INNER JOIN t5 USING(a)
1563 ORDER BY 1 NULLS FIRST;
1568 do_execsql_test joinB-114 {
1569 SELECT a, c, d, e, f, g
1571 INNER JOIN t2 USING(a,b)
1572 FULL JOIN t3 USING(a,b)
1573 RIGHT JOIN t4 USING(a,b)
1574 INNER JOIN t5 USING(a,b)
1576 ORDER BY 1 NULLS FIRST;
1581 do_execsql_test joinB-115 {
1582 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1584 INNER JOIN t2 USING(a)
1585 FULL JOIN t3 USING(a)
1586 RIGHT JOIN t4 USING(a)
1587 LEFT JOIN t5 USING(a)
1588 ORDER BY 1 NULLS FIRST;
1595 do_execsql_test joinB-116 {
1596 SELECT a, c, d, e, f, g
1598 INNER JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
1599 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1601 ORDER BY 1 NULLS FIRST;
1607 do_execsql_test joinB-117 {
1608 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1610 INNER JOIN t2 USING(a)
1611 FULL JOIN t3 USING(a)
1612 RIGHT JOIN t4 USING(a)
1613 RIGHT JOIN t5 USING(a)
1614 ORDER BY 1 NULLS FIRST;
1621 do_execsql_test joinB-118 {
1622 SELECT a, b, c, d, e, f, g
1624 INNER JOIN t2 USING(a,b)
1625 FULL JOIN t3 USING(a,b)
1626 RIGHT JOIN t4 USING(a,b)
1627 RIGHT JOIN t5 USING(a,b)
1628 WHERE d<>33 OR d IS NULL
1629 ORDER BY 1 NULLS FIRST;
1631 15 25 35 35 35 35 35
1636 do_execsql_test joinB-119 {
1637 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1639 INNER JOIN t2 USING(a)
1640 FULL JOIN t3 USING(a)
1641 RIGHT JOIN t4 USING(a)
1642 FULL JOIN t5 USING(a)
1643 ORDER BY 1 NULLS FIRST;
1652 do_execsql_test joinB-120 {
1653 SELECT b, c, d, e, f, g
1655 NATURAL INNER JOIN t2
1656 NATURAL FULL JOIN t3
1657 NATURAL RIGHT JOIN t4
1658 NATURAL FULL JOIN t5
1659 WHERE b BETWEEN 12 AND 17
1660 ORDER BY 1 NULLS FIRST;
1663 do_execsql_test joinB-121 {
1664 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1666 INNER JOIN t2 USING(a)
1667 FULL JOIN t3 USING(a)
1668 FULL JOIN t4 USING(a)
1669 INNER JOIN t5 USING(a)
1670 ORDER BY 1 NULLS FIRST;
1677 do_execsql_test joinB-122 {
1678 SELECT a, c, d, e, f, g
1680 INNER JOIN t2 USING(a,b)
1681 FULL JOIN t3 USING(a,b)
1682 FULL JOIN t4 USING(a,b)
1683 INNER JOIN t5 USING(a,b)
1685 ORDER BY 1 NULLS FIRST;
1692 do_execsql_test joinB-123 {
1693 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1695 INNER JOIN t2 USING(a)
1696 FULL JOIN t3 USING(a)
1697 FULL JOIN t4 USING(a)
1698 LEFT JOIN t5 USING(a)
1699 ORDER BY 1 NULLS FIRST;
1710 do_execsql_test joinB-124 {
1711 SELECT a, c, d, e, f, g
1713 INNER JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
1714 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1716 ORDER BY 1 NULLS FIRST;
1724 do_execsql_test joinB-125 {
1725 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1727 INNER JOIN t2 USING(a)
1728 FULL JOIN t3 USING(a)
1729 FULL JOIN t4 USING(a)
1730 RIGHT JOIN t5 USING(a)
1731 ORDER BY 1 NULLS FIRST;
1738 do_execsql_test joinB-126 {
1739 SELECT a, b, c, d, e, f, g
1741 INNER JOIN t2 USING(a,b)
1742 FULL JOIN t3 USING(a,b)
1743 FULL JOIN t4 USING(a,b)
1744 RIGHT JOIN t5 USING(a,b)
1745 WHERE d<>33 OR d IS NULL
1746 ORDER BY 1 NULLS FIRST;
1748 15 25 35 35 35 35 35
1753 do_execsql_test joinB-127 {
1754 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1756 INNER JOIN t2 USING(a)
1757 FULL JOIN t3 USING(a)
1758 FULL JOIN t4 USING(a)
1759 FULL JOIN t5 USING(a)
1760 ORDER BY 1 NULLS FIRST;
1771 do_execsql_test joinB-128 {
1772 SELECT b, c, d, e, f, g
1774 NATURAL INNER JOIN t2
1775 NATURAL FULL JOIN t3
1776 NATURAL FULL JOIN t4
1777 NATURAL FULL JOIN t5
1778 WHERE b BETWEEN 12 AND 17
1779 ORDER BY 1 NULLS FIRST;
1782 do_execsql_test joinB-129 {
1783 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1785 LEFT JOIN t2 USING(a)
1786 INNER JOIN t3 USING(a)
1787 INNER JOIN t4 USING(a)
1788 INNER JOIN t5 USING(a)
1789 ORDER BY 1 NULLS FIRST;
1793 do_execsql_test joinB-130 {
1794 SELECT a, c, d, e, f, g
1796 LEFT JOIN t2 USING(a,b)
1797 INNER JOIN t3 USING(a,b)
1798 INNER JOIN t4 USING(a,b)
1799 INNER JOIN t5 USING(a,b)
1801 ORDER BY 1 NULLS FIRST;
1805 do_execsql_test joinB-131 {
1806 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1808 LEFT JOIN t2 USING(a)
1809 INNER JOIN t3 USING(a)
1810 INNER JOIN t4 USING(a)
1811 LEFT JOIN t5 USING(a)
1812 ORDER BY 1 NULLS FIRST;
1817 do_execsql_test joinB-132 {
1818 SELECT a, c, d, e, f, g
1820 LEFT JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
1821 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1823 ORDER BY 1 NULLS FIRST;
1828 do_execsql_test joinB-133 {
1829 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1831 LEFT JOIN t2 USING(a)
1832 INNER JOIN t3 USING(a)
1833 INNER JOIN t4 USING(a)
1834 RIGHT JOIN t5 USING(a)
1835 ORDER BY 1 NULLS FIRST;
1842 do_execsql_test joinB-134 {
1843 SELECT a, b, c, d, e, f, g
1845 LEFT JOIN t2 USING(a,b)
1846 INNER JOIN t3 USING(a,b)
1847 INNER JOIN t4 USING(a,b)
1848 RIGHT JOIN t5 USING(a,b)
1849 WHERE d<>33 OR d IS NULL
1850 ORDER BY 1 NULLS FIRST;
1852 15 25 35 35 35 35 35
1857 do_execsql_test joinB-135 {
1858 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1860 LEFT JOIN t2 USING(a)
1861 INNER JOIN t3 USING(a)
1862 INNER JOIN t4 USING(a)
1863 FULL JOIN t5 USING(a)
1864 ORDER BY 1 NULLS FIRST;
1872 do_execsql_test joinB-136 {
1873 SELECT b, c, d, e, f, g
1875 NATURAL LEFT JOIN t2
1876 NATURAL INNER JOIN t3
1877 NATURAL INNER JOIN t4
1878 NATURAL FULL JOIN t5
1879 WHERE b BETWEEN 12 AND 17
1880 ORDER BY 1 NULLS FIRST;
1883 do_execsql_test joinB-137 {
1884 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1886 LEFT JOIN t2 USING(a)
1887 INNER JOIN t3 USING(a)
1888 LEFT JOIN t4 USING(a)
1889 INNER JOIN t5 USING(a)
1890 ORDER BY 1 NULLS FIRST;
1895 do_execsql_test joinB-138 {
1896 SELECT a, c, d, e, f, g
1898 LEFT JOIN t2 USING(a,b)
1899 INNER JOIN t3 USING(a,b)
1900 LEFT JOIN t4 USING(a,b)
1901 INNER JOIN t5 USING(a,b)
1903 ORDER BY 1 NULLS FIRST;
1908 do_execsql_test joinB-139 {
1909 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1911 LEFT JOIN t2 USING(a)
1912 INNER JOIN t3 USING(a)
1913 LEFT JOIN t4 USING(a)
1914 LEFT JOIN t5 USING(a)
1915 ORDER BY 1 NULLS FIRST;
1922 do_execsql_test joinB-140 {
1923 SELECT a, c, d, e, f, g
1925 LEFT JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
1926 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
1928 ORDER BY 1 NULLS FIRST;
1935 do_execsql_test joinB-141 {
1936 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1938 LEFT JOIN t2 USING(a)
1939 INNER JOIN t3 USING(a)
1940 LEFT JOIN t4 USING(a)
1941 RIGHT JOIN t5 USING(a)
1942 ORDER BY 1 NULLS FIRST;
1949 do_execsql_test joinB-142 {
1950 SELECT a, b, c, d, e, f, g
1952 LEFT JOIN t2 USING(a,b)
1953 INNER JOIN t3 USING(a,b)
1954 LEFT JOIN t4 USING(a,b)
1955 RIGHT JOIN t5 USING(a,b)
1956 WHERE d<>33 OR d IS NULL
1957 ORDER BY 1 NULLS FIRST;
1959 15 25 35 35 35 35 35
1964 do_execsql_test joinB-143 {
1965 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1967 LEFT JOIN t2 USING(a)
1968 INNER JOIN t3 USING(a)
1969 LEFT JOIN t4 USING(a)
1970 FULL JOIN t5 USING(a)
1971 ORDER BY 1 NULLS FIRST;
1980 do_execsql_test joinB-144 {
1981 SELECT b, c, d, e, f, g
1983 NATURAL LEFT JOIN t2
1984 NATURAL INNER JOIN t3
1985 NATURAL LEFT JOIN t4
1986 NATURAL FULL JOIN t5
1987 WHERE b BETWEEN 12 AND 17
1988 ORDER BY 1 NULLS FIRST;
1991 do_execsql_test joinB-145 {
1992 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
1994 LEFT JOIN t2 USING(a)
1995 INNER JOIN t3 USING(a)
1996 RIGHT JOIN t4 USING(a)
1997 INNER JOIN t5 USING(a)
1998 ORDER BY 1 NULLS FIRST;
2003 do_execsql_test joinB-146 {
2004 SELECT a, c, d, e, f, g
2006 LEFT JOIN t2 USING(a,b)
2007 INNER JOIN t3 USING(a,b)
2008 RIGHT JOIN t4 USING(a,b)
2009 INNER JOIN t5 USING(a,b)
2011 ORDER BY 1 NULLS FIRST;
2016 do_execsql_test joinB-147 {
2017 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2019 LEFT JOIN t2 USING(a)
2020 INNER JOIN t3 USING(a)
2021 RIGHT JOIN t4 USING(a)
2022 LEFT JOIN t5 USING(a)
2023 ORDER BY 1 NULLS FIRST;
2030 do_execsql_test joinB-148 {
2031 SELECT a, c, d, e, f, g
2033 LEFT JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
2034 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2036 ORDER BY 1 NULLS FIRST;
2042 do_execsql_test joinB-149 {
2043 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2045 LEFT JOIN t2 USING(a)
2046 INNER JOIN t3 USING(a)
2047 RIGHT JOIN t4 USING(a)
2048 RIGHT JOIN t5 USING(a)
2049 ORDER BY 1 NULLS FIRST;
2056 do_execsql_test joinB-150 {
2057 SELECT a, b, c, d, e, f, g
2059 LEFT JOIN t2 USING(a,b)
2060 INNER JOIN t3 USING(a,b)
2061 RIGHT JOIN t4 USING(a,b)
2062 RIGHT JOIN t5 USING(a,b)
2063 WHERE d<>33 OR d IS NULL
2064 ORDER BY 1 NULLS FIRST;
2066 15 25 35 35 35 35 35
2071 do_execsql_test joinB-151 {
2072 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2074 LEFT JOIN t2 USING(a)
2075 INNER JOIN t3 USING(a)
2076 RIGHT JOIN t4 USING(a)
2077 FULL JOIN t5 USING(a)
2078 ORDER BY 1 NULLS FIRST;
2087 do_execsql_test joinB-152 {
2088 SELECT b, c, d, e, f, g
2090 NATURAL LEFT JOIN t2
2091 NATURAL INNER JOIN t3
2092 NATURAL RIGHT JOIN t4
2093 NATURAL FULL JOIN t5
2094 WHERE b BETWEEN 12 AND 17
2095 ORDER BY 1 NULLS FIRST;
2098 do_execsql_test joinB-153 {
2099 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2101 LEFT JOIN t2 USING(a)
2102 INNER JOIN t3 USING(a)
2103 FULL JOIN t4 USING(a)
2104 INNER JOIN t5 USING(a)
2105 ORDER BY 1 NULLS FIRST;
2111 do_execsql_test joinB-154 {
2112 SELECT a, c, d, e, f, g
2114 LEFT JOIN t2 USING(a,b)
2115 INNER JOIN t3 USING(a,b)
2116 FULL JOIN t4 USING(a,b)
2117 INNER JOIN t5 USING(a,b)
2119 ORDER BY 1 NULLS FIRST;
2125 do_execsql_test joinB-155 {
2126 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2128 LEFT JOIN t2 USING(a)
2129 INNER JOIN t3 USING(a)
2130 FULL JOIN t4 USING(a)
2131 LEFT JOIN t5 USING(a)
2132 ORDER BY 1 NULLS FIRST;
2141 do_execsql_test joinB-156 {
2142 SELECT a, c, d, e, f, g
2144 LEFT JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
2145 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2147 ORDER BY 1 NULLS FIRST;
2155 do_execsql_test joinB-157 {
2156 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2158 LEFT JOIN t2 USING(a)
2159 INNER JOIN t3 USING(a)
2160 FULL JOIN t4 USING(a)
2161 RIGHT JOIN t5 USING(a)
2162 ORDER BY 1 NULLS FIRST;
2169 do_execsql_test joinB-158 {
2170 SELECT a, b, c, d, e, f, g
2172 LEFT JOIN t2 USING(a,b)
2173 INNER JOIN t3 USING(a,b)
2174 FULL JOIN t4 USING(a,b)
2175 RIGHT JOIN t5 USING(a,b)
2176 WHERE d<>33 OR d IS NULL
2177 ORDER BY 1 NULLS FIRST;
2179 15 25 35 35 35 35 35
2184 do_execsql_test joinB-159 {
2185 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2187 LEFT JOIN t2 USING(a)
2188 INNER JOIN t3 USING(a)
2189 FULL JOIN t4 USING(a)
2190 FULL JOIN t5 USING(a)
2191 ORDER BY 1 NULLS FIRST;
2201 do_execsql_test joinB-160 {
2202 SELECT b, c, d, e, f, g
2204 NATURAL LEFT JOIN t2
2205 NATURAL INNER JOIN t3
2206 NATURAL FULL JOIN t4
2207 NATURAL FULL JOIN t5
2208 WHERE b BETWEEN 12 AND 17
2209 ORDER BY 1 NULLS FIRST;
2212 do_execsql_test joinB-161 {
2213 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2215 LEFT JOIN t2 USING(a)
2216 LEFT JOIN t3 USING(a)
2217 INNER JOIN t4 USING(a)
2218 INNER JOIN t5 USING(a)
2219 ORDER BY 1 NULLS FIRST;
2223 do_execsql_test joinB-162 {
2224 SELECT a, c, d, e, f, g
2226 LEFT JOIN t2 USING(a,b)
2227 LEFT JOIN t3 USING(a,b)
2228 INNER JOIN t4 USING(a,b)
2229 INNER JOIN t5 USING(a,b)
2231 ORDER BY 1 NULLS FIRST;
2235 do_execsql_test joinB-163 {
2236 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2238 LEFT JOIN t2 USING(a)
2239 LEFT JOIN t3 USING(a)
2240 INNER JOIN t4 USING(a)
2241 LEFT JOIN t5 USING(a)
2242 ORDER BY 1 NULLS FIRST;
2247 do_execsql_test joinB-164 {
2248 SELECT a, c, d, e, f, g
2250 LEFT JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
2251 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2253 ORDER BY 1 NULLS FIRST;
2258 do_execsql_test joinB-165 {
2259 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2261 LEFT JOIN t2 USING(a)
2262 LEFT JOIN t3 USING(a)
2263 INNER JOIN t4 USING(a)
2264 RIGHT JOIN t5 USING(a)
2265 ORDER BY 1 NULLS FIRST;
2272 do_execsql_test joinB-166 {
2273 SELECT a, b, c, d, e, f, g
2275 LEFT JOIN t2 USING(a,b)
2276 LEFT JOIN t3 USING(a,b)
2277 INNER JOIN t4 USING(a,b)
2278 RIGHT JOIN t5 USING(a,b)
2279 WHERE d<>33 OR d IS NULL
2280 ORDER BY 1 NULLS FIRST;
2282 15 25 35 35 35 35 35
2287 do_execsql_test joinB-167 {
2288 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2290 LEFT JOIN t2 USING(a)
2291 LEFT JOIN t3 USING(a)
2292 INNER JOIN t4 USING(a)
2293 FULL JOIN t5 USING(a)
2294 ORDER BY 1 NULLS FIRST;
2302 do_execsql_test joinB-168 {
2303 SELECT b, c, d, e, f, g
2305 NATURAL LEFT JOIN t2
2306 NATURAL LEFT JOIN t3
2307 NATURAL INNER JOIN t4
2308 NATURAL FULL JOIN t5
2309 WHERE b BETWEEN 12 AND 17
2310 ORDER BY 1 NULLS FIRST;
2313 do_execsql_test joinB-169 {
2314 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2316 LEFT JOIN t2 USING(a)
2317 LEFT JOIN t3 USING(a)
2318 LEFT JOIN t4 USING(a)
2319 INNER JOIN t5 USING(a)
2320 ORDER BY 1 NULLS FIRST;
2325 do_execsql_test joinB-170 {
2326 SELECT a, c, d, e, f, g
2328 LEFT JOIN t2 USING(a,b)
2329 LEFT JOIN t3 USING(a,b)
2330 LEFT JOIN t4 USING(a,b)
2331 INNER JOIN t5 USING(a,b)
2333 ORDER BY 1 NULLS FIRST;
2338 do_execsql_test joinB-171 {
2339 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2341 LEFT JOIN t2 USING(a)
2342 LEFT JOIN t3 USING(a)
2343 LEFT JOIN t4 USING(a)
2344 LEFT JOIN t5 USING(a)
2345 ORDER BY 1 NULLS FIRST;
2352 do_execsql_test joinB-172 {
2353 SELECT a, c, d, e, f, g
2355 LEFT JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
2356 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2358 ORDER BY 1 NULLS FIRST;
2365 do_execsql_test joinB-173 {
2366 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2368 LEFT JOIN t2 USING(a)
2369 LEFT JOIN t3 USING(a)
2370 LEFT JOIN t4 USING(a)
2371 RIGHT JOIN t5 USING(a)
2372 ORDER BY 1 NULLS FIRST;
2379 do_execsql_test joinB-174 {
2380 SELECT a, b, c, d, e, f, g
2382 LEFT JOIN t2 USING(a,b)
2383 LEFT JOIN t3 USING(a,b)
2384 LEFT JOIN t4 USING(a,b)
2385 RIGHT JOIN t5 USING(a,b)
2386 WHERE d<>33 OR d IS NULL
2387 ORDER BY 1 NULLS FIRST;
2389 15 25 35 35 35 35 35
2394 do_execsql_test joinB-175 {
2395 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2397 LEFT JOIN t2 USING(a)
2398 LEFT JOIN t3 USING(a)
2399 LEFT JOIN t4 USING(a)
2400 FULL JOIN t5 USING(a)
2401 ORDER BY 1 NULLS FIRST;
2410 do_execsql_test joinB-176 {
2411 SELECT b, c, d, e, f, g
2413 NATURAL LEFT JOIN t2
2414 NATURAL LEFT JOIN t3
2415 NATURAL LEFT JOIN t4
2416 NATURAL FULL JOIN t5
2417 WHERE b BETWEEN 12 AND 17
2418 ORDER BY 1 NULLS FIRST;
2421 do_execsql_test joinB-177 {
2422 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2424 LEFT JOIN t2 USING(a)
2425 LEFT JOIN t3 USING(a)
2426 RIGHT JOIN t4 USING(a)
2427 INNER JOIN t5 USING(a)
2428 ORDER BY 1 NULLS FIRST;
2433 do_execsql_test joinB-178 {
2434 SELECT a, c, d, e, f, g
2436 LEFT JOIN t2 USING(a,b)
2437 LEFT JOIN t3 USING(a,b)
2438 RIGHT JOIN t4 USING(a,b)
2439 INNER JOIN t5 USING(a,b)
2441 ORDER BY 1 NULLS FIRST;
2446 do_execsql_test joinB-179 {
2447 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2449 LEFT JOIN t2 USING(a)
2450 LEFT JOIN t3 USING(a)
2451 RIGHT JOIN t4 USING(a)
2452 LEFT JOIN t5 USING(a)
2453 ORDER BY 1 NULLS FIRST;
2460 do_execsql_test joinB-180 {
2461 SELECT a, c, d, e, f, g
2463 LEFT JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
2464 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2466 ORDER BY 1 NULLS FIRST;
2472 do_execsql_test joinB-181 {
2473 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2475 LEFT JOIN t2 USING(a)
2476 LEFT JOIN t3 USING(a)
2477 RIGHT JOIN t4 USING(a)
2478 RIGHT JOIN t5 USING(a)
2479 ORDER BY 1 NULLS FIRST;
2486 do_execsql_test joinB-182 {
2487 SELECT a, b, c, d, e, f, g
2489 LEFT JOIN t2 USING(a,b)
2490 LEFT JOIN t3 USING(a,b)
2491 RIGHT JOIN t4 USING(a,b)
2492 RIGHT JOIN t5 USING(a,b)
2493 WHERE d<>33 OR d IS NULL
2494 ORDER BY 1 NULLS FIRST;
2496 15 25 35 35 35 35 35
2501 do_execsql_test joinB-183 {
2502 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2504 LEFT JOIN t2 USING(a)
2505 LEFT JOIN t3 USING(a)
2506 RIGHT JOIN t4 USING(a)
2507 FULL JOIN t5 USING(a)
2508 ORDER BY 1 NULLS FIRST;
2517 do_execsql_test joinB-184 {
2518 SELECT b, c, d, e, f, g
2520 NATURAL LEFT JOIN t2
2521 NATURAL LEFT JOIN t3
2522 NATURAL RIGHT JOIN t4
2523 NATURAL FULL JOIN t5
2524 WHERE b BETWEEN 12 AND 17
2525 ORDER BY 1 NULLS FIRST;
2528 do_execsql_test joinB-185 {
2529 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2531 LEFT JOIN t2 USING(a)
2532 LEFT JOIN t3 USING(a)
2533 FULL JOIN t4 USING(a)
2534 INNER JOIN t5 USING(a)
2535 ORDER BY 1 NULLS FIRST;
2541 do_execsql_test joinB-186 {
2542 SELECT a, c, d, e, f, g
2544 LEFT JOIN t2 USING(a,b)
2545 LEFT JOIN t3 USING(a,b)
2546 FULL JOIN t4 USING(a,b)
2547 INNER JOIN t5 USING(a,b)
2549 ORDER BY 1 NULLS FIRST;
2555 do_execsql_test joinB-187 {
2556 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2558 LEFT JOIN t2 USING(a)
2559 LEFT JOIN t3 USING(a)
2560 FULL JOIN t4 USING(a)
2561 LEFT JOIN t5 USING(a)
2562 ORDER BY 1 NULLS FIRST;
2571 do_execsql_test joinB-188 {
2572 SELECT a, c, d, e, f, g
2574 LEFT JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
2575 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2577 ORDER BY 1 NULLS FIRST;
2585 do_execsql_test joinB-189 {
2586 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2588 LEFT JOIN t2 USING(a)
2589 LEFT JOIN t3 USING(a)
2590 FULL JOIN t4 USING(a)
2591 RIGHT JOIN t5 USING(a)
2592 ORDER BY 1 NULLS FIRST;
2599 do_execsql_test joinB-190 {
2600 SELECT a, b, c, d, e, f, g
2602 LEFT JOIN t2 USING(a,b)
2603 LEFT JOIN t3 USING(a,b)
2604 FULL JOIN t4 USING(a,b)
2605 RIGHT JOIN t5 USING(a,b)
2606 WHERE d<>33 OR d IS NULL
2607 ORDER BY 1 NULLS FIRST;
2609 15 25 35 35 35 35 35
2614 do_execsql_test joinB-191 {
2615 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2617 LEFT JOIN t2 USING(a)
2618 LEFT JOIN t3 USING(a)
2619 FULL JOIN t4 USING(a)
2620 FULL JOIN t5 USING(a)
2621 ORDER BY 1 NULLS FIRST;
2631 do_execsql_test joinB-192 {
2632 SELECT b, c, d, e, f, g
2634 NATURAL LEFT JOIN t2
2635 NATURAL LEFT JOIN t3
2636 NATURAL FULL JOIN t4
2637 NATURAL FULL JOIN t5
2638 WHERE b BETWEEN 12 AND 17
2639 ORDER BY 1 NULLS FIRST;
2642 do_execsql_test joinB-193 {
2643 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2645 LEFT JOIN t2 USING(a)
2646 RIGHT JOIN t3 USING(a)
2647 INNER JOIN t4 USING(a)
2648 INNER JOIN t5 USING(a)
2649 ORDER BY 1 NULLS FIRST;
2654 do_execsql_test joinB-194 {
2655 SELECT a, c, d, e, f, g
2657 LEFT JOIN t2 USING(a,b)
2658 RIGHT JOIN t3 USING(a,b)
2659 INNER JOIN t4 USING(a,b)
2660 INNER JOIN t5 USING(a,b)
2662 ORDER BY 1 NULLS FIRST;
2667 do_execsql_test joinB-195 {
2668 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2670 LEFT JOIN t2 USING(a)
2671 RIGHT JOIN t3 USING(a)
2672 INNER JOIN t4 USING(a)
2673 LEFT JOIN t5 USING(a)
2674 ORDER BY 1 NULLS FIRST;
2681 do_execsql_test joinB-196 {
2682 SELECT a, c, d, e, f, g
2684 LEFT JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
2685 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2687 ORDER BY 1 NULLS FIRST;
2692 do_execsql_test joinB-197 {
2693 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2695 LEFT JOIN t2 USING(a)
2696 RIGHT JOIN t3 USING(a)
2697 INNER JOIN t4 USING(a)
2698 RIGHT JOIN t5 USING(a)
2699 ORDER BY 1 NULLS FIRST;
2706 do_execsql_test joinB-198 {
2707 SELECT a, b, c, d, e, f, g
2709 LEFT JOIN t2 USING(a,b)
2710 RIGHT JOIN t3 USING(a,b)
2711 INNER JOIN t4 USING(a,b)
2712 RIGHT JOIN t5 USING(a,b)
2713 WHERE d<>33 OR d IS NULL
2714 ORDER BY 1 NULLS FIRST;
2716 15 25 35 35 35 35 35
2721 do_execsql_test joinB-199 {
2722 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2724 LEFT JOIN t2 USING(a)
2725 RIGHT JOIN t3 USING(a)
2726 INNER JOIN t4 USING(a)
2727 FULL JOIN t5 USING(a)
2728 ORDER BY 1 NULLS FIRST;
2737 do_execsql_test joinB-200 {
2738 SELECT b, c, d, e, f, g
2740 NATURAL LEFT JOIN t2
2741 NATURAL RIGHT JOIN t3
2742 NATURAL INNER JOIN t4
2743 NATURAL FULL JOIN t5
2744 WHERE b BETWEEN 12 AND 17
2745 ORDER BY 1 NULLS FIRST;
2748 do_execsql_test joinB-201 {
2749 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2751 LEFT JOIN t2 USING(a)
2752 RIGHT JOIN t3 USING(a)
2753 LEFT JOIN t4 USING(a)
2754 INNER JOIN t5 USING(a)
2755 ORDER BY 1 NULLS FIRST;
2762 do_execsql_test joinB-202 {
2763 SELECT a, c, d, e, f, g
2765 LEFT JOIN t2 USING(a,b)
2766 RIGHT JOIN t3 USING(a,b)
2767 LEFT JOIN t4 USING(a,b)
2768 INNER JOIN t5 USING(a,b)
2770 ORDER BY 1 NULLS FIRST;
2777 do_execsql_test joinB-203 {
2778 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2780 LEFT JOIN t2 USING(a)
2781 RIGHT JOIN t3 USING(a)
2782 LEFT JOIN t4 USING(a)
2783 LEFT JOIN t5 USING(a)
2784 ORDER BY 1 NULLS FIRST;
2795 do_execsql_test joinB-204 {
2796 SELECT a, c, d, e, f, g
2798 LEFT JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
2799 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2801 ORDER BY 1 NULLS FIRST;
2808 do_execsql_test joinB-205 {
2809 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2811 LEFT JOIN t2 USING(a)
2812 RIGHT JOIN t3 USING(a)
2813 LEFT JOIN t4 USING(a)
2814 RIGHT JOIN t5 USING(a)
2815 ORDER BY 1 NULLS FIRST;
2822 do_execsql_test joinB-206 {
2823 SELECT a, b, c, d, e, f, g
2825 LEFT JOIN t2 USING(a,b)
2826 RIGHT JOIN t3 USING(a,b)
2827 LEFT JOIN t4 USING(a,b)
2828 RIGHT JOIN t5 USING(a,b)
2829 WHERE d<>33 OR d IS NULL
2830 ORDER BY 1 NULLS FIRST;
2832 15 25 35 35 35 35 35
2837 do_execsql_test joinB-207 {
2838 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2840 LEFT JOIN t2 USING(a)
2841 RIGHT JOIN t3 USING(a)
2842 LEFT JOIN t4 USING(a)
2843 FULL JOIN t5 USING(a)
2844 ORDER BY 1 NULLS FIRST;
2855 do_execsql_test joinB-208 {
2856 SELECT b, c, d, e, f, g
2858 NATURAL LEFT JOIN t2
2859 NATURAL RIGHT JOIN t3
2860 NATURAL LEFT JOIN t4
2861 NATURAL FULL JOIN t5
2862 WHERE b BETWEEN 12 AND 17
2863 ORDER BY 1 NULLS FIRST;
2866 do_execsql_test joinB-209 {
2867 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2869 LEFT JOIN t2 USING(a)
2870 RIGHT JOIN t3 USING(a)
2871 RIGHT JOIN t4 USING(a)
2872 INNER JOIN t5 USING(a)
2873 ORDER BY 1 NULLS FIRST;
2878 do_execsql_test joinB-210 {
2879 SELECT a, c, d, e, f, g
2881 LEFT JOIN t2 USING(a,b)
2882 RIGHT JOIN t3 USING(a,b)
2883 RIGHT JOIN t4 USING(a,b)
2884 INNER JOIN t5 USING(a,b)
2886 ORDER BY 1 NULLS FIRST;
2891 do_execsql_test joinB-211 {
2892 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2894 LEFT JOIN t2 USING(a)
2895 RIGHT JOIN t3 USING(a)
2896 RIGHT JOIN t4 USING(a)
2897 LEFT JOIN t5 USING(a)
2898 ORDER BY 1 NULLS FIRST;
2905 do_execsql_test joinB-212 {
2906 SELECT a, c, d, e, f, g
2908 LEFT JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
2909 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
2911 ORDER BY 1 NULLS FIRST;
2917 do_execsql_test joinB-213 {
2918 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2920 LEFT JOIN t2 USING(a)
2921 RIGHT JOIN t3 USING(a)
2922 RIGHT JOIN t4 USING(a)
2923 RIGHT JOIN t5 USING(a)
2924 ORDER BY 1 NULLS FIRST;
2931 do_execsql_test joinB-214 {
2932 SELECT a, b, c, d, e, f, g
2934 LEFT JOIN t2 USING(a,b)
2935 RIGHT JOIN t3 USING(a,b)
2936 RIGHT JOIN t4 USING(a,b)
2937 RIGHT JOIN t5 USING(a,b)
2938 WHERE d<>33 OR d IS NULL
2939 ORDER BY 1 NULLS FIRST;
2941 15 25 35 35 35 35 35
2946 do_execsql_test joinB-215 {
2947 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2949 LEFT JOIN t2 USING(a)
2950 RIGHT JOIN t3 USING(a)
2951 RIGHT JOIN t4 USING(a)
2952 FULL JOIN t5 USING(a)
2953 ORDER BY 1 NULLS FIRST;
2962 do_execsql_test joinB-216 {
2963 SELECT b, c, d, e, f, g
2965 NATURAL LEFT JOIN t2
2966 NATURAL RIGHT JOIN t3
2967 NATURAL RIGHT JOIN t4
2968 NATURAL FULL JOIN t5
2969 WHERE b BETWEEN 12 AND 17
2970 ORDER BY 1 NULLS FIRST;
2973 do_execsql_test joinB-217 {
2974 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
2976 LEFT JOIN t2 USING(a)
2977 RIGHT JOIN t3 USING(a)
2978 FULL JOIN t4 USING(a)
2979 INNER JOIN t5 USING(a)
2980 ORDER BY 1 NULLS FIRST;
2987 do_execsql_test joinB-218 {
2988 SELECT a, c, d, e, f, g
2990 LEFT JOIN t2 USING(a,b)
2991 RIGHT JOIN t3 USING(a,b)
2992 FULL JOIN t4 USING(a,b)
2993 INNER JOIN t5 USING(a,b)
2995 ORDER BY 1 NULLS FIRST;
3002 do_execsql_test joinB-219 {
3003 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3005 LEFT JOIN t2 USING(a)
3006 RIGHT JOIN t3 USING(a)
3007 FULL JOIN t4 USING(a)
3008 LEFT JOIN t5 USING(a)
3009 ORDER BY 1 NULLS FIRST;
3020 do_execsql_test joinB-220 {
3021 SELECT a, c, d, e, f, g
3023 LEFT JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
3024 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3026 ORDER BY 1 NULLS FIRST;
3034 do_execsql_test joinB-221 {
3035 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3037 LEFT JOIN t2 USING(a)
3038 RIGHT JOIN t3 USING(a)
3039 FULL JOIN t4 USING(a)
3040 RIGHT JOIN t5 USING(a)
3041 ORDER BY 1 NULLS FIRST;
3048 do_execsql_test joinB-222 {
3049 SELECT a, b, c, d, e, f, g
3051 LEFT JOIN t2 USING(a,b)
3052 RIGHT JOIN t3 USING(a,b)
3053 FULL JOIN t4 USING(a,b)
3054 RIGHT JOIN t5 USING(a,b)
3055 WHERE d<>33 OR d IS NULL
3056 ORDER BY 1 NULLS FIRST;
3058 15 25 35 35 35 35 35
3063 do_execsql_test joinB-223 {
3064 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3066 LEFT JOIN t2 USING(a)
3067 RIGHT JOIN t3 USING(a)
3068 FULL JOIN t4 USING(a)
3069 FULL JOIN t5 USING(a)
3070 ORDER BY 1 NULLS FIRST;
3081 do_execsql_test joinB-224 {
3082 SELECT b, c, d, e, f, g
3084 NATURAL LEFT JOIN t2
3085 NATURAL RIGHT JOIN t3
3086 NATURAL FULL JOIN t4
3087 NATURAL FULL JOIN t5
3088 WHERE b BETWEEN 12 AND 17
3089 ORDER BY 1 NULLS FIRST;
3092 do_execsql_test joinB-225 {
3093 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3095 LEFT JOIN t2 USING(a)
3096 FULL JOIN t3 USING(a)
3097 INNER JOIN t4 USING(a)
3098 INNER JOIN t5 USING(a)
3099 ORDER BY 1 NULLS FIRST;
3104 do_execsql_test joinB-226 {
3105 SELECT a, c, d, e, f, g
3107 LEFT JOIN t2 USING(a,b)
3108 FULL JOIN t3 USING(a,b)
3109 INNER JOIN t4 USING(a,b)
3110 INNER JOIN t5 USING(a,b)
3112 ORDER BY 1 NULLS FIRST;
3117 do_execsql_test joinB-227 {
3118 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3120 LEFT JOIN t2 USING(a)
3121 FULL JOIN t3 USING(a)
3122 INNER JOIN t4 USING(a)
3123 LEFT JOIN t5 USING(a)
3124 ORDER BY 1 NULLS FIRST;
3131 do_execsql_test joinB-228 {
3132 SELECT a, c, d, e, f, g
3134 LEFT JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
3135 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3137 ORDER BY 1 NULLS FIRST;
3142 do_execsql_test joinB-229 {
3143 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3145 LEFT JOIN t2 USING(a)
3146 FULL JOIN t3 USING(a)
3147 INNER JOIN t4 USING(a)
3148 RIGHT JOIN t5 USING(a)
3149 ORDER BY 1 NULLS FIRST;
3156 do_execsql_test joinB-230 {
3157 SELECT a, b, c, d, e, f, g
3159 LEFT JOIN t2 USING(a,b)
3160 FULL JOIN t3 USING(a,b)
3161 INNER JOIN t4 USING(a,b)
3162 RIGHT JOIN t5 USING(a,b)
3163 WHERE d<>33 OR d IS NULL
3164 ORDER BY 1 NULLS FIRST;
3166 15 25 35 35 35 35 35
3171 do_execsql_test joinB-231 {
3172 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3174 LEFT JOIN t2 USING(a)
3175 FULL JOIN t3 USING(a)
3176 INNER JOIN t4 USING(a)
3177 FULL JOIN t5 USING(a)
3178 ORDER BY 1 NULLS FIRST;
3187 do_execsql_test joinB-232 {
3188 SELECT b, c, d, e, f, g
3190 NATURAL LEFT JOIN t2
3191 NATURAL FULL JOIN t3
3192 NATURAL INNER JOIN t4
3193 NATURAL FULL JOIN t5
3194 WHERE b BETWEEN 12 AND 17
3195 ORDER BY 1 NULLS FIRST;
3198 do_execsql_test joinB-233 {
3199 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3201 LEFT JOIN t2 USING(a)
3202 FULL JOIN t3 USING(a)
3203 LEFT JOIN t4 USING(a)
3204 INNER JOIN t5 USING(a)
3205 ORDER BY 1 NULLS FIRST;
3212 do_execsql_test joinB-234 {
3213 SELECT a, c, d, e, f, g
3215 LEFT JOIN t2 USING(a,b)
3216 FULL JOIN t3 USING(a,b)
3217 LEFT JOIN t4 USING(a,b)
3218 INNER JOIN t5 USING(a,b)
3220 ORDER BY 1 NULLS FIRST;
3227 do_execsql_test joinB-235 {
3228 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3230 LEFT JOIN t2 USING(a)
3231 FULL JOIN t3 USING(a)
3232 LEFT JOIN t4 USING(a)
3233 LEFT JOIN t5 USING(a)
3234 ORDER BY 1 NULLS FIRST;
3245 do_execsql_test joinB-236 {
3246 SELECT a, c, d, e, f, g
3248 LEFT JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
3249 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3251 ORDER BY 1 NULLS FIRST;
3258 do_execsql_test joinB-237 {
3259 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3261 LEFT JOIN t2 USING(a)
3262 FULL JOIN t3 USING(a)
3263 LEFT JOIN t4 USING(a)
3264 RIGHT JOIN t5 USING(a)
3265 ORDER BY 1 NULLS FIRST;
3272 do_execsql_test joinB-238 {
3273 SELECT a, b, c, d, e, f, g
3275 LEFT JOIN t2 USING(a,b)
3276 FULL JOIN t3 USING(a,b)
3277 LEFT JOIN t4 USING(a,b)
3278 RIGHT JOIN t5 USING(a,b)
3279 WHERE d<>33 OR d IS NULL
3280 ORDER BY 1 NULLS FIRST;
3282 15 25 35 35 35 35 35
3287 do_execsql_test joinB-239 {
3288 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3290 LEFT JOIN t2 USING(a)
3291 FULL JOIN t3 USING(a)
3292 LEFT JOIN t4 USING(a)
3293 FULL JOIN t5 USING(a)
3294 ORDER BY 1 NULLS FIRST;
3305 do_execsql_test joinB-240 {
3306 SELECT b, c, d, e, f, g
3308 NATURAL LEFT JOIN t2
3309 NATURAL FULL JOIN t3
3310 NATURAL LEFT JOIN t4
3311 NATURAL FULL JOIN t5
3312 WHERE b BETWEEN 12 AND 17
3313 ORDER BY 1 NULLS FIRST;
3316 do_execsql_test joinB-241 {
3317 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3319 LEFT JOIN t2 USING(a)
3320 FULL JOIN t3 USING(a)
3321 RIGHT JOIN t4 USING(a)
3322 INNER JOIN t5 USING(a)
3323 ORDER BY 1 NULLS FIRST;
3328 do_execsql_test joinB-242 {
3329 SELECT a, c, d, e, f, g
3331 LEFT JOIN t2 USING(a,b)
3332 FULL JOIN t3 USING(a,b)
3333 RIGHT JOIN t4 USING(a,b)
3334 INNER JOIN t5 USING(a,b)
3336 ORDER BY 1 NULLS FIRST;
3341 do_execsql_test joinB-243 {
3342 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3344 LEFT JOIN t2 USING(a)
3345 FULL JOIN t3 USING(a)
3346 RIGHT JOIN t4 USING(a)
3347 LEFT JOIN t5 USING(a)
3348 ORDER BY 1 NULLS FIRST;
3355 do_execsql_test joinB-244 {
3356 SELECT a, c, d, e, f, g
3358 LEFT JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
3359 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3361 ORDER BY 1 NULLS FIRST;
3367 do_execsql_test joinB-245 {
3368 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3370 LEFT JOIN t2 USING(a)
3371 FULL JOIN t3 USING(a)
3372 RIGHT JOIN t4 USING(a)
3373 RIGHT JOIN t5 USING(a)
3374 ORDER BY 1 NULLS FIRST;
3381 do_execsql_test joinB-246 {
3382 SELECT a, b, c, d, e, f, g
3384 LEFT JOIN t2 USING(a,b)
3385 FULL JOIN t3 USING(a,b)
3386 RIGHT JOIN t4 USING(a,b)
3387 RIGHT JOIN t5 USING(a,b)
3388 WHERE d<>33 OR d IS NULL
3389 ORDER BY 1 NULLS FIRST;
3391 15 25 35 35 35 35 35
3396 do_execsql_test joinB-247 {
3397 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3399 LEFT JOIN t2 USING(a)
3400 FULL JOIN t3 USING(a)
3401 RIGHT JOIN t4 USING(a)
3402 FULL JOIN t5 USING(a)
3403 ORDER BY 1 NULLS FIRST;
3412 do_execsql_test joinB-248 {
3413 SELECT b, c, d, e, f, g
3415 NATURAL LEFT JOIN t2
3416 NATURAL FULL JOIN t3
3417 NATURAL RIGHT JOIN t4
3418 NATURAL FULL JOIN t5
3419 WHERE b BETWEEN 12 AND 17
3420 ORDER BY 1 NULLS FIRST;
3423 do_execsql_test joinB-249 {
3424 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3426 LEFT JOIN t2 USING(a)
3427 FULL JOIN t3 USING(a)
3428 FULL JOIN t4 USING(a)
3429 INNER JOIN t5 USING(a)
3430 ORDER BY 1 NULLS FIRST;
3437 do_execsql_test joinB-250 {
3438 SELECT a, c, d, e, f, g
3440 LEFT JOIN t2 USING(a,b)
3441 FULL JOIN t3 USING(a,b)
3442 FULL JOIN t4 USING(a,b)
3443 INNER JOIN t5 USING(a,b)
3445 ORDER BY 1 NULLS FIRST;
3452 do_execsql_test joinB-251 {
3453 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3455 LEFT JOIN t2 USING(a)
3456 FULL JOIN t3 USING(a)
3457 FULL JOIN t4 USING(a)
3458 LEFT JOIN t5 USING(a)
3459 ORDER BY 1 NULLS FIRST;
3470 do_execsql_test joinB-252 {
3471 SELECT a, c, d, e, f, g
3473 LEFT JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
3474 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3476 ORDER BY 1 NULLS FIRST;
3484 do_execsql_test joinB-253 {
3485 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3487 LEFT JOIN t2 USING(a)
3488 FULL JOIN t3 USING(a)
3489 FULL JOIN t4 USING(a)
3490 RIGHT JOIN t5 USING(a)
3491 ORDER BY 1 NULLS FIRST;
3498 do_execsql_test joinB-254 {
3499 SELECT a, b, c, d, e, f, g
3501 LEFT JOIN t2 USING(a,b)
3502 FULL JOIN t3 USING(a,b)
3503 FULL JOIN t4 USING(a,b)
3504 RIGHT JOIN t5 USING(a,b)
3505 WHERE d<>33 OR d IS NULL
3506 ORDER BY 1 NULLS FIRST;
3508 15 25 35 35 35 35 35
3513 do_execsql_test joinB-255 {
3514 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3516 LEFT JOIN t2 USING(a)
3517 FULL JOIN t3 USING(a)
3518 FULL JOIN t4 USING(a)
3519 FULL JOIN t5 USING(a)
3520 ORDER BY 1 NULLS FIRST;
3531 do_execsql_test joinB-256 {
3532 SELECT b, c, d, e, f, g
3534 NATURAL LEFT JOIN t2
3535 NATURAL FULL JOIN t3
3536 NATURAL FULL JOIN t4
3537 NATURAL FULL JOIN t5
3538 WHERE b BETWEEN 12 AND 17
3539 ORDER BY 1 NULLS FIRST;
3542 do_execsql_test joinB-257 {
3543 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3545 RIGHT JOIN t2 USING(a)
3546 INNER JOIN t3 USING(a)
3547 INNER JOIN t4 USING(a)
3548 INNER JOIN t5 USING(a)
3549 ORDER BY 1 NULLS FIRST;
3553 do_execsql_test joinB-258 {
3554 SELECT a, c, d, e, f, g
3556 RIGHT JOIN t2 USING(a,b)
3557 INNER JOIN t3 USING(a,b)
3558 INNER JOIN t4 USING(a,b)
3559 INNER JOIN t5 USING(a,b)
3561 ORDER BY 1 NULLS FIRST;
3565 do_execsql_test joinB-259 {
3566 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3568 RIGHT JOIN t2 USING(a)
3569 INNER JOIN t3 USING(a)
3570 INNER JOIN t4 USING(a)
3571 LEFT JOIN t5 USING(a)
3572 ORDER BY 1 NULLS FIRST;
3577 do_execsql_test joinB-260 {
3578 SELECT a, c, d, e, f, g
3580 RIGHT JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
3581 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3583 ORDER BY 1 NULLS FIRST;
3588 do_execsql_test joinB-261 {
3589 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3591 RIGHT JOIN t2 USING(a)
3592 INNER JOIN t3 USING(a)
3593 INNER JOIN t4 USING(a)
3594 RIGHT JOIN t5 USING(a)
3595 ORDER BY 1 NULLS FIRST;
3602 do_execsql_test joinB-262 {
3603 SELECT a, b, c, d, e, f, g
3605 RIGHT JOIN t2 USING(a,b)
3606 INNER JOIN t3 USING(a,b)
3607 INNER JOIN t4 USING(a,b)
3608 RIGHT JOIN t5 USING(a,b)
3609 WHERE d<>33 OR d IS NULL
3610 ORDER BY 1 NULLS FIRST;
3612 15 25 35 35 35 35 35
3617 do_execsql_test joinB-263 {
3618 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3620 RIGHT JOIN t2 USING(a)
3621 INNER JOIN t3 USING(a)
3622 INNER JOIN t4 USING(a)
3623 FULL JOIN t5 USING(a)
3624 ORDER BY 1 NULLS FIRST;
3632 do_execsql_test joinB-264 {
3633 SELECT b, c, d, e, f, g
3635 NATURAL RIGHT JOIN t2
3636 NATURAL INNER JOIN t3
3637 NATURAL INNER JOIN t4
3638 NATURAL FULL JOIN t5
3639 WHERE b BETWEEN 12 AND 17
3640 ORDER BY 1 NULLS FIRST;
3643 do_execsql_test joinB-265 {
3644 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3646 RIGHT JOIN t2 USING(a)
3647 INNER JOIN t3 USING(a)
3648 LEFT JOIN t4 USING(a)
3649 INNER JOIN t5 USING(a)
3650 ORDER BY 1 NULLS FIRST;
3655 do_execsql_test joinB-266 {
3656 SELECT a, c, d, e, f, g
3658 RIGHT JOIN t2 USING(a,b)
3659 INNER JOIN t3 USING(a,b)
3660 LEFT JOIN t4 USING(a,b)
3661 INNER JOIN t5 USING(a,b)
3663 ORDER BY 1 NULLS FIRST;
3668 do_execsql_test joinB-267 {
3669 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3671 RIGHT JOIN t2 USING(a)
3672 INNER JOIN t3 USING(a)
3673 LEFT JOIN t4 USING(a)
3674 LEFT JOIN t5 USING(a)
3675 ORDER BY 1 NULLS FIRST;
3682 do_execsql_test joinB-268 {
3683 SELECT a, c, d, e, f, g
3685 RIGHT JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
3686 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3688 ORDER BY 1 NULLS FIRST;
3695 do_execsql_test joinB-269 {
3696 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3698 RIGHT JOIN t2 USING(a)
3699 INNER JOIN t3 USING(a)
3700 LEFT JOIN t4 USING(a)
3701 RIGHT JOIN t5 USING(a)
3702 ORDER BY 1 NULLS FIRST;
3709 do_execsql_test joinB-270 {
3710 SELECT a, b, c, d, e, f, g
3712 RIGHT JOIN t2 USING(a,b)
3713 INNER JOIN t3 USING(a,b)
3714 LEFT JOIN t4 USING(a,b)
3715 RIGHT JOIN t5 USING(a,b)
3716 WHERE d<>33 OR d IS NULL
3717 ORDER BY 1 NULLS FIRST;
3719 15 25 35 35 35 35 35
3724 do_execsql_test joinB-271 {
3725 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3727 RIGHT JOIN t2 USING(a)
3728 INNER JOIN t3 USING(a)
3729 LEFT JOIN t4 USING(a)
3730 FULL JOIN t5 USING(a)
3731 ORDER BY 1 NULLS FIRST;
3740 do_execsql_test joinB-272 {
3741 SELECT b, c, d, e, f, g
3743 NATURAL RIGHT JOIN t2
3744 NATURAL INNER JOIN t3
3745 NATURAL LEFT JOIN t4
3746 NATURAL FULL JOIN t5
3747 WHERE b BETWEEN 12 AND 17
3748 ORDER BY 1 NULLS FIRST;
3751 do_execsql_test joinB-273 {
3752 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3754 RIGHT JOIN t2 USING(a)
3755 INNER JOIN t3 USING(a)
3756 RIGHT JOIN t4 USING(a)
3757 INNER JOIN t5 USING(a)
3758 ORDER BY 1 NULLS FIRST;
3763 do_execsql_test joinB-274 {
3764 SELECT a, c, d, e, f, g
3766 RIGHT JOIN t2 USING(a,b)
3767 INNER JOIN t3 USING(a,b)
3768 RIGHT JOIN t4 USING(a,b)
3769 INNER JOIN t5 USING(a,b)
3771 ORDER BY 1 NULLS FIRST;
3776 do_execsql_test joinB-275 {
3777 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3779 RIGHT JOIN t2 USING(a)
3780 INNER JOIN t3 USING(a)
3781 RIGHT JOIN t4 USING(a)
3782 LEFT JOIN t5 USING(a)
3783 ORDER BY 1 NULLS FIRST;
3790 do_execsql_test joinB-276 {
3791 SELECT a, c, d, e, f, g
3793 RIGHT JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
3794 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3796 ORDER BY 1 NULLS FIRST;
3802 do_execsql_test joinB-277 {
3803 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3805 RIGHT JOIN t2 USING(a)
3806 INNER JOIN t3 USING(a)
3807 RIGHT JOIN t4 USING(a)
3808 RIGHT JOIN t5 USING(a)
3809 ORDER BY 1 NULLS FIRST;
3816 do_execsql_test joinB-278 {
3817 SELECT a, b, c, d, e, f, g
3819 RIGHT JOIN t2 USING(a,b)
3820 INNER JOIN t3 USING(a,b)
3821 RIGHT JOIN t4 USING(a,b)
3822 RIGHT JOIN t5 USING(a,b)
3823 WHERE d<>33 OR d IS NULL
3824 ORDER BY 1 NULLS FIRST;
3826 15 25 35 35 35 35 35
3831 do_execsql_test joinB-279 {
3832 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3834 RIGHT JOIN t2 USING(a)
3835 INNER JOIN t3 USING(a)
3836 RIGHT JOIN t4 USING(a)
3837 FULL JOIN t5 USING(a)
3838 ORDER BY 1 NULLS FIRST;
3847 do_execsql_test joinB-280 {
3848 SELECT b, c, d, e, f, g
3850 NATURAL RIGHT JOIN t2
3851 NATURAL INNER JOIN t3
3852 NATURAL RIGHT JOIN t4
3853 NATURAL FULL JOIN t5
3854 WHERE b BETWEEN 12 AND 17
3855 ORDER BY 1 NULLS FIRST;
3858 do_execsql_test joinB-281 {
3859 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3861 RIGHT JOIN t2 USING(a)
3862 INNER JOIN t3 USING(a)
3863 FULL JOIN t4 USING(a)
3864 INNER JOIN t5 USING(a)
3865 ORDER BY 1 NULLS FIRST;
3871 do_execsql_test joinB-282 {
3872 SELECT a, c, d, e, f, g
3874 RIGHT JOIN t2 USING(a,b)
3875 INNER JOIN t3 USING(a,b)
3876 FULL JOIN t4 USING(a,b)
3877 INNER JOIN t5 USING(a,b)
3879 ORDER BY 1 NULLS FIRST;
3885 do_execsql_test joinB-283 {
3886 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3888 RIGHT JOIN t2 USING(a)
3889 INNER JOIN t3 USING(a)
3890 FULL JOIN t4 USING(a)
3891 LEFT JOIN t5 USING(a)
3892 ORDER BY 1 NULLS FIRST;
3901 do_execsql_test joinB-284 {
3902 SELECT a, c, d, e, f, g
3904 RIGHT JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
3905 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
3907 ORDER BY 1 NULLS FIRST;
3915 do_execsql_test joinB-285 {
3916 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3918 RIGHT JOIN t2 USING(a)
3919 INNER JOIN t3 USING(a)
3920 FULL JOIN t4 USING(a)
3921 RIGHT JOIN t5 USING(a)
3922 ORDER BY 1 NULLS FIRST;
3929 do_execsql_test joinB-286 {
3930 SELECT a, b, c, d, e, f, g
3932 RIGHT JOIN t2 USING(a,b)
3933 INNER JOIN t3 USING(a,b)
3934 FULL JOIN t4 USING(a,b)
3935 RIGHT JOIN t5 USING(a,b)
3936 WHERE d<>33 OR d IS NULL
3937 ORDER BY 1 NULLS FIRST;
3939 15 25 35 35 35 35 35
3944 do_execsql_test joinB-287 {
3945 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3947 RIGHT JOIN t2 USING(a)
3948 INNER JOIN t3 USING(a)
3949 FULL JOIN t4 USING(a)
3950 FULL JOIN t5 USING(a)
3951 ORDER BY 1 NULLS FIRST;
3961 do_execsql_test joinB-288 {
3962 SELECT b, c, d, e, f, g
3964 NATURAL RIGHT JOIN t2
3965 NATURAL INNER JOIN t3
3966 NATURAL FULL JOIN t4
3967 NATURAL FULL JOIN t5
3968 WHERE b BETWEEN 12 AND 17
3969 ORDER BY 1 NULLS FIRST;
3972 do_execsql_test joinB-289 {
3973 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3975 RIGHT JOIN t2 USING(a)
3976 LEFT JOIN t3 USING(a)
3977 INNER JOIN t4 USING(a)
3978 INNER JOIN t5 USING(a)
3979 ORDER BY 1 NULLS FIRST;
3983 do_execsql_test joinB-290 {
3984 SELECT a, c, d, e, f, g
3986 RIGHT JOIN t2 USING(a,b)
3987 LEFT JOIN t3 USING(a,b)
3988 INNER JOIN t4 USING(a,b)
3989 INNER JOIN t5 USING(a,b)
3991 ORDER BY 1 NULLS FIRST;
3995 do_execsql_test joinB-291 {
3996 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
3998 RIGHT JOIN t2 USING(a)
3999 LEFT JOIN t3 USING(a)
4000 INNER JOIN t4 USING(a)
4001 LEFT JOIN t5 USING(a)
4002 ORDER BY 1 NULLS FIRST;
4007 do_execsql_test joinB-292 {
4008 SELECT a, c, d, e, f, g
4010 RIGHT JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
4011 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4013 ORDER BY 1 NULLS FIRST;
4018 do_execsql_test joinB-293 {
4019 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4021 RIGHT JOIN t2 USING(a)
4022 LEFT JOIN t3 USING(a)
4023 INNER JOIN t4 USING(a)
4024 RIGHT JOIN t5 USING(a)
4025 ORDER BY 1 NULLS FIRST;
4032 do_execsql_test joinB-294 {
4033 SELECT a, b, c, d, e, f, g
4035 RIGHT JOIN t2 USING(a,b)
4036 LEFT JOIN t3 USING(a,b)
4037 INNER JOIN t4 USING(a,b)
4038 RIGHT JOIN t5 USING(a,b)
4039 WHERE d<>33 OR d IS NULL
4040 ORDER BY 1 NULLS FIRST;
4042 15 25 35 35 35 35 35
4047 do_execsql_test joinB-295 {
4048 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4050 RIGHT JOIN t2 USING(a)
4051 LEFT JOIN t3 USING(a)
4052 INNER JOIN t4 USING(a)
4053 FULL JOIN t5 USING(a)
4054 ORDER BY 1 NULLS FIRST;
4062 do_execsql_test joinB-296 {
4063 SELECT b, c, d, e, f, g
4065 NATURAL RIGHT JOIN t2
4066 NATURAL LEFT JOIN t3
4067 NATURAL INNER JOIN t4
4068 NATURAL FULL JOIN t5
4069 WHERE b BETWEEN 12 AND 17
4070 ORDER BY 1 NULLS FIRST;
4073 do_execsql_test joinB-297 {
4074 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4076 RIGHT JOIN t2 USING(a)
4077 LEFT JOIN t3 USING(a)
4078 LEFT JOIN t4 USING(a)
4079 INNER JOIN t5 USING(a)
4080 ORDER BY 1 NULLS FIRST;
4085 do_execsql_test joinB-298 {
4086 SELECT a, c, d, e, f, g
4088 RIGHT JOIN t2 USING(a,b)
4089 LEFT JOIN t3 USING(a,b)
4090 LEFT JOIN t4 USING(a,b)
4091 INNER JOIN t5 USING(a,b)
4093 ORDER BY 1 NULLS FIRST;
4098 do_execsql_test joinB-299 {
4099 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4101 RIGHT JOIN t2 USING(a)
4102 LEFT JOIN t3 USING(a)
4103 LEFT JOIN t4 USING(a)
4104 LEFT JOIN t5 USING(a)
4105 ORDER BY 1 NULLS FIRST;
4113 do_execsql_test joinB-300 {
4114 SELECT a, c, d, e, f, g
4116 RIGHT JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
4117 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4119 ORDER BY 1 NULLS FIRST;
4126 do_execsql_test joinB-301 {
4127 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4129 RIGHT JOIN t2 USING(a)
4130 LEFT JOIN t3 USING(a)
4131 LEFT JOIN t4 USING(a)
4132 RIGHT JOIN t5 USING(a)
4133 ORDER BY 1 NULLS FIRST;
4140 do_execsql_test joinB-302 {
4141 SELECT a, b, c, d, e, f, g
4143 RIGHT JOIN t2 USING(a,b)
4144 LEFT JOIN t3 USING(a,b)
4145 LEFT JOIN t4 USING(a,b)
4146 RIGHT JOIN t5 USING(a,b)
4147 WHERE d<>33 OR d IS NULL
4148 ORDER BY 1 NULLS FIRST;
4150 15 25 35 35 35 35 35
4155 do_execsql_test joinB-303 {
4156 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4158 RIGHT JOIN t2 USING(a)
4159 LEFT JOIN t3 USING(a)
4160 LEFT JOIN t4 USING(a)
4161 FULL JOIN t5 USING(a)
4162 ORDER BY 1 NULLS FIRST;
4172 do_execsql_test joinB-304 {
4173 SELECT b, c, d, e, f, g
4175 NATURAL RIGHT JOIN t2
4176 NATURAL LEFT JOIN t3
4177 NATURAL LEFT JOIN t4
4178 NATURAL FULL JOIN t5
4179 WHERE b BETWEEN 12 AND 17
4180 ORDER BY 1 NULLS FIRST;
4183 do_execsql_test joinB-305 {
4184 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4186 RIGHT JOIN t2 USING(a)
4187 LEFT JOIN t3 USING(a)
4188 RIGHT JOIN t4 USING(a)
4189 INNER JOIN t5 USING(a)
4190 ORDER BY 1 NULLS FIRST;
4195 do_execsql_test joinB-306 {
4196 SELECT a, c, d, e, f, g
4198 RIGHT JOIN t2 USING(a,b)
4199 LEFT JOIN t3 USING(a,b)
4200 RIGHT JOIN t4 USING(a,b)
4201 INNER JOIN t5 USING(a,b)
4203 ORDER BY 1 NULLS FIRST;
4208 do_execsql_test joinB-307 {
4209 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4211 RIGHT JOIN t2 USING(a)
4212 LEFT JOIN t3 USING(a)
4213 RIGHT JOIN t4 USING(a)
4214 LEFT JOIN t5 USING(a)
4215 ORDER BY 1 NULLS FIRST;
4222 do_execsql_test joinB-308 {
4223 SELECT a, c, d, e, f, g
4225 RIGHT JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
4226 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4228 ORDER BY 1 NULLS FIRST;
4234 do_execsql_test joinB-309 {
4235 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4237 RIGHT JOIN t2 USING(a)
4238 LEFT JOIN t3 USING(a)
4239 RIGHT JOIN t4 USING(a)
4240 RIGHT JOIN t5 USING(a)
4241 ORDER BY 1 NULLS FIRST;
4248 do_execsql_test joinB-310 {
4249 SELECT a, b, c, d, e, f, g
4251 RIGHT JOIN t2 USING(a,b)
4252 LEFT JOIN t3 USING(a,b)
4253 RIGHT JOIN t4 USING(a,b)
4254 RIGHT JOIN t5 USING(a,b)
4255 WHERE d<>33 OR d IS NULL
4256 ORDER BY 1 NULLS FIRST;
4258 15 25 35 35 35 35 35
4263 do_execsql_test joinB-311 {
4264 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4266 RIGHT JOIN t2 USING(a)
4267 LEFT JOIN t3 USING(a)
4268 RIGHT JOIN t4 USING(a)
4269 FULL JOIN t5 USING(a)
4270 ORDER BY 1 NULLS FIRST;
4279 do_execsql_test joinB-312 {
4280 SELECT b, c, d, e, f, g
4282 NATURAL RIGHT JOIN t2
4283 NATURAL LEFT JOIN t3
4284 NATURAL RIGHT JOIN t4
4285 NATURAL FULL JOIN t5
4286 WHERE b BETWEEN 12 AND 17
4287 ORDER BY 1 NULLS FIRST;
4290 do_execsql_test joinB-313 {
4291 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4293 RIGHT JOIN t2 USING(a)
4294 LEFT JOIN t3 USING(a)
4295 FULL JOIN t4 USING(a)
4296 INNER JOIN t5 USING(a)
4297 ORDER BY 1 NULLS FIRST;
4303 do_execsql_test joinB-314 {
4304 SELECT a, c, d, e, f, g
4306 RIGHT JOIN t2 USING(a,b)
4307 LEFT JOIN t3 USING(a,b)
4308 FULL JOIN t4 USING(a,b)
4309 INNER JOIN t5 USING(a,b)
4311 ORDER BY 1 NULLS FIRST;
4317 do_execsql_test joinB-315 {
4318 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4320 RIGHT JOIN t2 USING(a)
4321 LEFT JOIN t3 USING(a)
4322 FULL JOIN t4 USING(a)
4323 LEFT JOIN t5 USING(a)
4324 ORDER BY 1 NULLS FIRST;
4334 do_execsql_test joinB-316 {
4335 SELECT a, c, d, e, f, g
4337 RIGHT JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
4338 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4340 ORDER BY 1 NULLS FIRST;
4348 do_execsql_test joinB-317 {
4349 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4351 RIGHT JOIN t2 USING(a)
4352 LEFT JOIN t3 USING(a)
4353 FULL JOIN t4 USING(a)
4354 RIGHT JOIN t5 USING(a)
4355 ORDER BY 1 NULLS FIRST;
4362 do_execsql_test joinB-318 {
4363 SELECT a, b, c, d, e, f, g
4365 RIGHT JOIN t2 USING(a,b)
4366 LEFT JOIN t3 USING(a,b)
4367 FULL JOIN t4 USING(a,b)
4368 RIGHT JOIN t5 USING(a,b)
4369 WHERE d<>33 OR d IS NULL
4370 ORDER BY 1 NULLS FIRST;
4372 15 25 35 35 35 35 35
4377 do_execsql_test joinB-319 {
4378 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4380 RIGHT JOIN t2 USING(a)
4381 LEFT JOIN t3 USING(a)
4382 FULL JOIN t4 USING(a)
4383 FULL JOIN t5 USING(a)
4384 ORDER BY 1 NULLS FIRST;
4395 do_execsql_test joinB-320 {
4396 SELECT b, c, d, e, f, g
4398 NATURAL RIGHT JOIN t2
4399 NATURAL LEFT JOIN t3
4400 NATURAL FULL JOIN t4
4401 NATURAL FULL JOIN t5
4402 WHERE b BETWEEN 12 AND 17
4403 ORDER BY 1 NULLS FIRST;
4406 do_execsql_test joinB-321 {
4407 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4409 RIGHT JOIN t2 USING(a)
4410 RIGHT JOIN t3 USING(a)
4411 INNER JOIN t4 USING(a)
4412 INNER JOIN t5 USING(a)
4413 ORDER BY 1 NULLS FIRST;
4418 do_execsql_test joinB-322 {
4419 SELECT a, c, d, e, f, g
4421 RIGHT JOIN t2 USING(a,b)
4422 RIGHT JOIN t3 USING(a,b)
4423 INNER JOIN t4 USING(a,b)
4424 INNER JOIN t5 USING(a,b)
4426 ORDER BY 1 NULLS FIRST;
4431 do_execsql_test joinB-323 {
4432 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4434 RIGHT JOIN t2 USING(a)
4435 RIGHT JOIN t3 USING(a)
4436 INNER JOIN t4 USING(a)
4437 LEFT JOIN t5 USING(a)
4438 ORDER BY 1 NULLS FIRST;
4445 do_execsql_test joinB-324 {
4446 SELECT a, c, d, e, f, g
4448 RIGHT JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
4449 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4451 ORDER BY 1 NULLS FIRST;
4457 do_execsql_test joinB-325 {
4458 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4460 RIGHT JOIN t2 USING(a)
4461 RIGHT JOIN t3 USING(a)
4462 INNER JOIN t4 USING(a)
4463 RIGHT JOIN t5 USING(a)
4464 ORDER BY 1 NULLS FIRST;
4471 do_execsql_test joinB-326 {
4472 SELECT a, b, c, d, e, f, g
4474 RIGHT JOIN t2 USING(a,b)
4475 RIGHT JOIN t3 USING(a,b)
4476 INNER JOIN t4 USING(a,b)
4477 RIGHT JOIN t5 USING(a,b)
4478 WHERE d<>33 OR d IS NULL
4479 ORDER BY 1 NULLS FIRST;
4481 15 25 35 35 35 35 35
4486 do_execsql_test joinB-327 {
4487 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4489 RIGHT JOIN t2 USING(a)
4490 RIGHT JOIN t3 USING(a)
4491 INNER JOIN t4 USING(a)
4492 FULL JOIN t5 USING(a)
4493 ORDER BY 1 NULLS FIRST;
4502 do_execsql_test joinB-328 {
4503 SELECT b, c, d, e, f, g
4505 NATURAL RIGHT JOIN t2
4506 NATURAL RIGHT JOIN t3
4507 NATURAL INNER JOIN t4
4508 NATURAL FULL JOIN t5
4509 WHERE b BETWEEN 12 AND 17
4510 ORDER BY 1 NULLS FIRST;
4513 do_execsql_test joinB-329 {
4514 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4516 RIGHT JOIN t2 USING(a)
4517 RIGHT JOIN t3 USING(a)
4518 LEFT JOIN t4 USING(a)
4519 INNER JOIN t5 USING(a)
4520 ORDER BY 1 NULLS FIRST;
4527 do_execsql_test joinB-330 {
4528 SELECT a, c, d, e, f, g
4530 RIGHT JOIN t2 USING(a,b)
4531 RIGHT JOIN t3 USING(a,b)
4532 LEFT JOIN t4 USING(a,b)
4533 INNER JOIN t5 USING(a,b)
4535 ORDER BY 1 NULLS FIRST;
4542 do_execsql_test joinB-331 {
4543 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4545 RIGHT JOIN t2 USING(a)
4546 RIGHT JOIN t3 USING(a)
4547 LEFT JOIN t4 USING(a)
4548 LEFT JOIN t5 USING(a)
4549 ORDER BY 1 NULLS FIRST;
4560 do_execsql_test joinB-332 {
4561 SELECT a, c, d, e, f, g
4563 RIGHT JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
4564 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4566 ORDER BY 1 NULLS FIRST;
4575 do_execsql_test joinB-333 {
4576 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4578 RIGHT JOIN t2 USING(a)
4579 RIGHT JOIN t3 USING(a)
4580 LEFT JOIN t4 USING(a)
4581 RIGHT JOIN t5 USING(a)
4582 ORDER BY 1 NULLS FIRST;
4589 do_execsql_test joinB-334 {
4590 SELECT a, b, c, d, e, f, g
4592 RIGHT JOIN t2 USING(a,b)
4593 RIGHT JOIN t3 USING(a,b)
4594 LEFT JOIN t4 USING(a,b)
4595 RIGHT JOIN t5 USING(a,b)
4596 WHERE d<>33 OR d IS NULL
4597 ORDER BY 1 NULLS FIRST;
4599 15 25 35 35 35 35 35
4604 do_execsql_test joinB-335 {
4605 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4607 RIGHT JOIN t2 USING(a)
4608 RIGHT JOIN t3 USING(a)
4609 LEFT JOIN t4 USING(a)
4610 FULL JOIN t5 USING(a)
4611 ORDER BY 1 NULLS FIRST;
4622 do_execsql_test joinB-336 {
4623 SELECT b, c, d, e, f, g
4625 NATURAL RIGHT JOIN t2
4626 NATURAL RIGHT JOIN t3
4627 NATURAL LEFT JOIN t4
4628 NATURAL FULL JOIN t5
4629 WHERE b BETWEEN 12 AND 17
4630 ORDER BY 1 NULLS FIRST;
4633 do_execsql_test joinB-337 {
4634 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4636 RIGHT JOIN t2 USING(a)
4637 RIGHT JOIN t3 USING(a)
4638 RIGHT JOIN t4 USING(a)
4639 INNER JOIN t5 USING(a)
4640 ORDER BY 1 NULLS FIRST;
4645 do_execsql_test joinB-338 {
4646 SELECT a, c, d, e, f, g
4648 RIGHT JOIN t2 USING(a,b)
4649 RIGHT JOIN t3 USING(a,b)
4650 RIGHT JOIN t4 USING(a,b)
4651 INNER JOIN t5 USING(a,b)
4653 ORDER BY 1 NULLS FIRST;
4658 do_execsql_test joinB-339 {
4659 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4661 RIGHT JOIN t2 USING(a)
4662 RIGHT JOIN t3 USING(a)
4663 RIGHT JOIN t4 USING(a)
4664 LEFT JOIN t5 USING(a)
4665 ORDER BY 1 NULLS FIRST;
4672 do_execsql_test joinB-340 {
4673 SELECT a, c, d, e, f, g
4675 RIGHT JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
4676 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4678 ORDER BY 1 NULLS FIRST;
4684 do_execsql_test joinB-341 {
4685 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4687 RIGHT JOIN t2 USING(a)
4688 RIGHT JOIN t3 USING(a)
4689 RIGHT JOIN t4 USING(a)
4690 RIGHT JOIN t5 USING(a)
4691 ORDER BY 1 NULLS FIRST;
4698 do_execsql_test joinB-342 {
4699 SELECT a, b, c, d, e, f, g
4701 RIGHT JOIN t2 USING(a,b)
4702 RIGHT JOIN t3 USING(a,b)
4703 RIGHT JOIN t4 USING(a,b)
4704 RIGHT JOIN t5 USING(a,b)
4705 WHERE d<>33 OR d IS NULL
4706 ORDER BY 1 NULLS FIRST;
4708 15 25 35 35 35 35 35
4713 do_execsql_test joinB-343 {
4714 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4716 RIGHT JOIN t2 USING(a)
4717 RIGHT JOIN t3 USING(a)
4718 RIGHT JOIN t4 USING(a)
4719 FULL JOIN t5 USING(a)
4720 ORDER BY 1 NULLS FIRST;
4729 do_execsql_test joinB-344 {
4730 SELECT b, c, d, e, f, g
4732 NATURAL RIGHT JOIN t2
4733 NATURAL RIGHT JOIN t3
4734 NATURAL RIGHT JOIN t4
4735 NATURAL FULL JOIN t5
4736 WHERE b BETWEEN 12 AND 17
4737 ORDER BY 1 NULLS FIRST;
4740 do_execsql_test joinB-345 {
4741 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4743 RIGHT JOIN t2 USING(a)
4744 RIGHT JOIN t3 USING(a)
4745 FULL JOIN t4 USING(a)
4746 INNER JOIN t5 USING(a)
4747 ORDER BY 1 NULLS FIRST;
4754 do_execsql_test joinB-346 {
4755 SELECT a, c, d, e, f, g
4757 RIGHT JOIN t2 USING(a,b)
4758 RIGHT JOIN t3 USING(a,b)
4759 FULL JOIN t4 USING(a,b)
4760 INNER JOIN t5 USING(a,b)
4762 ORDER BY 1 NULLS FIRST;
4769 do_execsql_test joinB-347 {
4770 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4772 RIGHT JOIN t2 USING(a)
4773 RIGHT JOIN t3 USING(a)
4774 FULL JOIN t4 USING(a)
4775 LEFT JOIN t5 USING(a)
4776 ORDER BY 1 NULLS FIRST;
4787 do_execsql_test joinB-348 {
4788 SELECT a, c, d, e, f, g
4790 RIGHT JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
4791 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4793 ORDER BY 1 NULLS FIRST;
4802 do_execsql_test joinB-349 {
4803 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4805 RIGHT JOIN t2 USING(a)
4806 RIGHT JOIN t3 USING(a)
4807 FULL JOIN t4 USING(a)
4808 RIGHT JOIN t5 USING(a)
4809 ORDER BY 1 NULLS FIRST;
4816 do_execsql_test joinB-350 {
4817 SELECT a, b, c, d, e, f, g
4819 RIGHT JOIN t2 USING(a,b)
4820 RIGHT JOIN t3 USING(a,b)
4821 FULL JOIN t4 USING(a,b)
4822 RIGHT JOIN t5 USING(a,b)
4823 WHERE d<>33 OR d IS NULL
4824 ORDER BY 1 NULLS FIRST;
4826 15 25 35 35 35 35 35
4831 do_execsql_test joinB-351 {
4832 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4834 RIGHT JOIN t2 USING(a)
4835 RIGHT JOIN t3 USING(a)
4836 FULL JOIN t4 USING(a)
4837 FULL JOIN t5 USING(a)
4838 ORDER BY 1 NULLS FIRST;
4849 do_execsql_test joinB-352 {
4850 SELECT b, c, d, e, f, g
4852 NATURAL RIGHT JOIN t2
4853 NATURAL RIGHT JOIN t3
4854 NATURAL FULL JOIN t4
4855 NATURAL FULL JOIN t5
4856 WHERE b BETWEEN 12 AND 17
4857 ORDER BY 1 NULLS FIRST;
4860 do_execsql_test joinB-353 {
4861 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4863 RIGHT JOIN t2 USING(a)
4864 FULL JOIN t3 USING(a)
4865 INNER JOIN t4 USING(a)
4866 INNER JOIN t5 USING(a)
4867 ORDER BY 1 NULLS FIRST;
4872 do_execsql_test joinB-354 {
4873 SELECT a, c, d, e, f, g
4875 RIGHT JOIN t2 USING(a,b)
4876 FULL JOIN t3 USING(a,b)
4877 INNER JOIN t4 USING(a,b)
4878 INNER JOIN t5 USING(a,b)
4880 ORDER BY 1 NULLS FIRST;
4885 do_execsql_test joinB-355 {
4886 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4888 RIGHT JOIN t2 USING(a)
4889 FULL JOIN t3 USING(a)
4890 INNER JOIN t4 USING(a)
4891 LEFT JOIN t5 USING(a)
4892 ORDER BY 1 NULLS FIRST;
4899 do_execsql_test joinB-356 {
4900 SELECT a, c, d, e, f, g
4902 RIGHT JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
4903 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
4905 ORDER BY 1 NULLS FIRST;
4911 do_execsql_test joinB-357 {
4912 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4914 RIGHT JOIN t2 USING(a)
4915 FULL JOIN t3 USING(a)
4916 INNER JOIN t4 USING(a)
4917 RIGHT JOIN t5 USING(a)
4918 ORDER BY 1 NULLS FIRST;
4925 do_execsql_test joinB-358 {
4926 SELECT a, b, c, d, e, f, g
4928 RIGHT JOIN t2 USING(a,b)
4929 FULL JOIN t3 USING(a,b)
4930 INNER JOIN t4 USING(a,b)
4931 RIGHT JOIN t5 USING(a,b)
4932 WHERE d<>33 OR d IS NULL
4933 ORDER BY 1 NULLS FIRST;
4935 15 25 35 35 35 35 35
4940 do_execsql_test joinB-359 {
4941 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4943 RIGHT JOIN t2 USING(a)
4944 FULL JOIN t3 USING(a)
4945 INNER JOIN t4 USING(a)
4946 FULL JOIN t5 USING(a)
4947 ORDER BY 1 NULLS FIRST;
4956 do_execsql_test joinB-360 {
4957 SELECT b, c, d, e, f, g
4959 NATURAL RIGHT JOIN t2
4960 NATURAL FULL JOIN t3
4961 NATURAL INNER JOIN t4
4962 NATURAL FULL JOIN t5
4963 WHERE b BETWEEN 12 AND 17
4964 ORDER BY 1 NULLS FIRST;
4967 do_execsql_test joinB-361 {
4968 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4970 RIGHT JOIN t2 USING(a)
4971 FULL JOIN t3 USING(a)
4972 LEFT JOIN t4 USING(a)
4973 INNER JOIN t5 USING(a)
4974 ORDER BY 1 NULLS FIRST;
4981 do_execsql_test joinB-362 {
4982 SELECT a, c, d, e, f, g
4984 RIGHT JOIN t2 USING(a,b)
4985 FULL JOIN t3 USING(a,b)
4986 LEFT JOIN t4 USING(a,b)
4987 INNER JOIN t5 USING(a,b)
4989 ORDER BY 1 NULLS FIRST;
4996 do_execsql_test joinB-363 {
4997 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
4999 RIGHT JOIN t2 USING(a)
5000 FULL JOIN t3 USING(a)
5001 LEFT JOIN t4 USING(a)
5002 LEFT JOIN t5 USING(a)
5003 ORDER BY 1 NULLS FIRST;
5015 do_execsql_test joinB-364 {
5016 SELECT a, c, d, e, f, g
5018 RIGHT JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
5019 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5021 ORDER BY 1 NULLS FIRST;
5030 do_execsql_test joinB-365 {
5031 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5033 RIGHT JOIN t2 USING(a)
5034 FULL JOIN t3 USING(a)
5035 LEFT JOIN t4 USING(a)
5036 RIGHT JOIN t5 USING(a)
5037 ORDER BY 1 NULLS FIRST;
5044 do_execsql_test joinB-366 {
5045 SELECT a, b, c, d, e, f, g
5047 RIGHT JOIN t2 USING(a,b)
5048 FULL JOIN t3 USING(a,b)
5049 LEFT JOIN t4 USING(a,b)
5050 RIGHT JOIN t5 USING(a,b)
5051 WHERE d<>33 OR d IS NULL
5052 ORDER BY 1 NULLS FIRST;
5054 15 25 35 35 35 35 35
5059 do_execsql_test joinB-367 {
5060 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5062 RIGHT JOIN t2 USING(a)
5063 FULL JOIN t3 USING(a)
5064 LEFT JOIN t4 USING(a)
5065 FULL JOIN t5 USING(a)
5066 ORDER BY 1 NULLS FIRST;
5078 do_execsql_test joinB-368 {
5079 SELECT b, c, d, e, f, g
5081 NATURAL RIGHT JOIN t2
5082 NATURAL FULL JOIN t3
5083 NATURAL LEFT JOIN t4
5084 NATURAL FULL JOIN t5
5085 WHERE b BETWEEN 12 AND 17
5086 ORDER BY 1 NULLS FIRST;
5089 do_execsql_test joinB-369 {
5090 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5092 RIGHT JOIN t2 USING(a)
5093 FULL JOIN t3 USING(a)
5094 RIGHT JOIN t4 USING(a)
5095 INNER JOIN t5 USING(a)
5096 ORDER BY 1 NULLS FIRST;
5101 do_execsql_test joinB-370 {
5102 SELECT a, c, d, e, f, g
5104 RIGHT JOIN t2 USING(a,b)
5105 FULL JOIN t3 USING(a,b)
5106 RIGHT JOIN t4 USING(a,b)
5107 INNER JOIN t5 USING(a,b)
5109 ORDER BY 1 NULLS FIRST;
5114 do_execsql_test joinB-371 {
5115 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5117 RIGHT JOIN t2 USING(a)
5118 FULL JOIN t3 USING(a)
5119 RIGHT JOIN t4 USING(a)
5120 LEFT JOIN t5 USING(a)
5121 ORDER BY 1 NULLS FIRST;
5128 do_execsql_test joinB-372 {
5129 SELECT a, c, d, e, f, g
5131 RIGHT JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
5132 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5134 ORDER BY 1 NULLS FIRST;
5140 do_execsql_test joinB-373 {
5141 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5143 RIGHT JOIN t2 USING(a)
5144 FULL JOIN t3 USING(a)
5145 RIGHT JOIN t4 USING(a)
5146 RIGHT JOIN t5 USING(a)
5147 ORDER BY 1 NULLS FIRST;
5154 do_execsql_test joinB-374 {
5155 SELECT a, b, c, d, e, f, g
5157 RIGHT JOIN t2 USING(a,b)
5158 FULL JOIN t3 USING(a,b)
5159 RIGHT JOIN t4 USING(a,b)
5160 RIGHT JOIN t5 USING(a,b)
5161 WHERE d<>33 OR d IS NULL
5162 ORDER BY 1 NULLS FIRST;
5164 15 25 35 35 35 35 35
5169 do_execsql_test joinB-375 {
5170 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5172 RIGHT JOIN t2 USING(a)
5173 FULL JOIN t3 USING(a)
5174 RIGHT JOIN t4 USING(a)
5175 FULL JOIN t5 USING(a)
5176 ORDER BY 1 NULLS FIRST;
5185 do_execsql_test joinB-376 {
5186 SELECT b, c, d, e, f, g
5188 NATURAL RIGHT JOIN t2
5189 NATURAL FULL JOIN t3
5190 NATURAL RIGHT JOIN t4
5191 NATURAL FULL JOIN t5
5192 WHERE b BETWEEN 12 AND 17
5193 ORDER BY 1 NULLS FIRST;
5196 do_execsql_test joinB-377 {
5197 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5199 RIGHT JOIN t2 USING(a)
5200 FULL JOIN t3 USING(a)
5201 FULL JOIN t4 USING(a)
5202 INNER JOIN t5 USING(a)
5203 ORDER BY 1 NULLS FIRST;
5210 do_execsql_test joinB-378 {
5211 SELECT a, c, d, e, f, g
5213 RIGHT JOIN t2 USING(a,b)
5214 FULL JOIN t3 USING(a,b)
5215 FULL JOIN t4 USING(a,b)
5216 INNER JOIN t5 USING(a,b)
5218 ORDER BY 1 NULLS FIRST;
5225 do_execsql_test joinB-379 {
5226 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5228 RIGHT JOIN t2 USING(a)
5229 FULL JOIN t3 USING(a)
5230 FULL JOIN t4 USING(a)
5231 LEFT JOIN t5 USING(a)
5232 ORDER BY 1 NULLS FIRST;
5244 do_execsql_test joinB-380 {
5245 SELECT a, c, d, e, f, g
5247 RIGHT JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
5248 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5250 ORDER BY 1 NULLS FIRST;
5259 do_execsql_test joinB-381 {
5260 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5262 RIGHT JOIN t2 USING(a)
5263 FULL JOIN t3 USING(a)
5264 FULL JOIN t4 USING(a)
5265 RIGHT JOIN t5 USING(a)
5266 ORDER BY 1 NULLS FIRST;
5273 do_execsql_test joinB-382 {
5274 SELECT a, b, c, d, e, f, g
5276 RIGHT JOIN t2 USING(a,b)
5277 FULL JOIN t3 USING(a,b)
5278 FULL JOIN t4 USING(a,b)
5279 RIGHT JOIN t5 USING(a,b)
5280 WHERE d<>33 OR d IS NULL
5281 ORDER BY 1 NULLS FIRST;
5283 15 25 35 35 35 35 35
5288 do_execsql_test joinB-383 {
5289 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5291 RIGHT JOIN t2 USING(a)
5292 FULL JOIN t3 USING(a)
5293 FULL JOIN t4 USING(a)
5294 FULL JOIN t5 USING(a)
5295 ORDER BY 1 NULLS FIRST;
5307 do_execsql_test joinB-384 {
5308 SELECT b, c, d, e, f, g
5310 NATURAL RIGHT JOIN t2
5311 NATURAL FULL JOIN t3
5312 NATURAL FULL JOIN t4
5313 NATURAL FULL JOIN t5
5314 WHERE b BETWEEN 12 AND 17
5315 ORDER BY 1 NULLS FIRST;
5318 do_execsql_test joinB-385 {
5319 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5321 FULL JOIN t2 USING(a)
5322 INNER JOIN t3 USING(a)
5323 INNER JOIN t4 USING(a)
5324 INNER JOIN t5 USING(a)
5325 ORDER BY 1 NULLS FIRST;
5329 do_execsql_test joinB-386 {
5330 SELECT a, c, d, e, f, g
5332 FULL JOIN t2 USING(a,b)
5333 INNER JOIN t3 USING(a,b)
5334 INNER JOIN t4 USING(a,b)
5335 INNER JOIN t5 USING(a,b)
5337 ORDER BY 1 NULLS FIRST;
5341 do_execsql_test joinB-387 {
5342 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5344 FULL JOIN t2 USING(a)
5345 INNER JOIN t3 USING(a)
5346 INNER JOIN t4 USING(a)
5347 LEFT JOIN t5 USING(a)
5348 ORDER BY 1 NULLS FIRST;
5354 do_execsql_test joinB-388 {
5355 SELECT a, c, d, e, f, g
5357 FULL JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
5358 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5360 ORDER BY 1 NULLS FIRST;
5366 do_execsql_test joinB-389 {
5367 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5369 FULL JOIN t2 USING(a)
5370 INNER JOIN t3 USING(a)
5371 INNER JOIN t4 USING(a)
5372 RIGHT JOIN t5 USING(a)
5373 ORDER BY 1 NULLS FIRST;
5380 do_execsql_test joinB-390 {
5381 SELECT a, b, c, d, e, f, g
5383 FULL JOIN t2 USING(a,b)
5384 INNER JOIN t3 USING(a,b)
5385 INNER JOIN t4 USING(a,b)
5386 RIGHT JOIN t5 USING(a,b)
5387 WHERE d<>33 OR d IS NULL
5388 ORDER BY 1 NULLS FIRST;
5390 15 25 35 35 35 35 35
5395 do_execsql_test joinB-391 {
5396 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5398 FULL JOIN t2 USING(a)
5399 INNER JOIN t3 USING(a)
5400 INNER JOIN t4 USING(a)
5401 FULL JOIN t5 USING(a)
5402 ORDER BY 1 NULLS FIRST;
5411 do_execsql_test joinB-392 {
5412 SELECT b, c, d, e, f, g
5414 NATURAL FULL JOIN t2
5415 NATURAL INNER JOIN t3
5416 NATURAL INNER JOIN t4
5417 NATURAL FULL JOIN t5
5418 WHERE b BETWEEN 12 AND 17
5419 ORDER BY 1 NULLS FIRST;
5422 do_execsql_test joinB-393 {
5423 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5425 FULL JOIN t2 USING(a)
5426 INNER JOIN t3 USING(a)
5427 LEFT JOIN t4 USING(a)
5428 INNER JOIN t5 USING(a)
5429 ORDER BY 1 NULLS FIRST;
5435 do_execsql_test joinB-394 {
5436 SELECT a, c, d, e, f, g
5438 FULL JOIN t2 USING(a,b)
5439 INNER JOIN t3 USING(a,b)
5440 LEFT JOIN t4 USING(a,b)
5441 INNER JOIN t5 USING(a,b)
5443 ORDER BY 1 NULLS FIRST;
5449 do_execsql_test joinB-395 {
5450 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5452 FULL JOIN t2 USING(a)
5453 INNER JOIN t3 USING(a)
5454 LEFT JOIN t4 USING(a)
5455 LEFT JOIN t5 USING(a)
5456 ORDER BY 1 NULLS FIRST;
5465 do_execsql_test joinB-396 {
5466 SELECT a, c, d, e, f, g
5468 FULL JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
5469 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5471 ORDER BY 1 NULLS FIRST;
5480 do_execsql_test joinB-397 {
5481 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5483 FULL JOIN t2 USING(a)
5484 INNER JOIN t3 USING(a)
5485 LEFT JOIN t4 USING(a)
5486 RIGHT JOIN t5 USING(a)
5487 ORDER BY 1 NULLS FIRST;
5494 do_execsql_test joinB-398 {
5495 SELECT a, b, c, d, e, f, g
5497 FULL JOIN t2 USING(a,b)
5498 INNER JOIN t3 USING(a,b)
5499 LEFT JOIN t4 USING(a,b)
5500 RIGHT JOIN t5 USING(a,b)
5501 WHERE d<>33 OR d IS NULL
5502 ORDER BY 1 NULLS FIRST;
5504 15 25 35 35 35 35 35
5509 do_execsql_test joinB-399 {
5510 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5512 FULL JOIN t2 USING(a)
5513 INNER JOIN t3 USING(a)
5514 LEFT JOIN t4 USING(a)
5515 FULL JOIN t5 USING(a)
5516 ORDER BY 1 NULLS FIRST;
5526 do_execsql_test joinB-400 {
5527 SELECT b, c, d, e, f, g
5529 NATURAL FULL JOIN t2
5530 NATURAL INNER JOIN t3
5531 NATURAL LEFT JOIN t4
5532 NATURAL FULL JOIN t5
5533 WHERE b BETWEEN 12 AND 17
5534 ORDER BY 1 NULLS FIRST;
5537 do_execsql_test joinB-401 {
5538 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5540 FULL JOIN t2 USING(a)
5541 INNER JOIN t3 USING(a)
5542 RIGHT JOIN t4 USING(a)
5543 INNER JOIN t5 USING(a)
5544 ORDER BY 1 NULLS FIRST;
5549 do_execsql_test joinB-402 {
5550 SELECT a, c, d, e, f, g
5552 FULL JOIN t2 USING(a,b)
5553 INNER JOIN t3 USING(a,b)
5554 RIGHT JOIN t4 USING(a,b)
5555 INNER JOIN t5 USING(a,b)
5557 ORDER BY 1 NULLS FIRST;
5562 do_execsql_test joinB-403 {
5563 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5565 FULL JOIN t2 USING(a)
5566 INNER JOIN t3 USING(a)
5567 RIGHT JOIN t4 USING(a)
5568 LEFT JOIN t5 USING(a)
5569 ORDER BY 1 NULLS FIRST;
5576 do_execsql_test joinB-404 {
5577 SELECT a, c, d, e, f, g
5579 FULL JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
5580 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5582 ORDER BY 1 NULLS FIRST;
5588 do_execsql_test joinB-405 {
5589 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5591 FULL JOIN t2 USING(a)
5592 INNER JOIN t3 USING(a)
5593 RIGHT JOIN t4 USING(a)
5594 RIGHT JOIN t5 USING(a)
5595 ORDER BY 1 NULLS FIRST;
5602 do_execsql_test joinB-406 {
5603 SELECT a, b, c, d, e, f, g
5605 FULL JOIN t2 USING(a,b)
5606 INNER JOIN t3 USING(a,b)
5607 RIGHT JOIN t4 USING(a,b)
5608 RIGHT JOIN t5 USING(a,b)
5609 WHERE d<>33 OR d IS NULL
5610 ORDER BY 1 NULLS FIRST;
5612 15 25 35 35 35 35 35
5617 do_execsql_test joinB-407 {
5618 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5620 FULL JOIN t2 USING(a)
5621 INNER JOIN t3 USING(a)
5622 RIGHT JOIN t4 USING(a)
5623 FULL JOIN t5 USING(a)
5624 ORDER BY 1 NULLS FIRST;
5633 do_execsql_test joinB-408 {
5634 SELECT b, c, d, e, f, g
5636 NATURAL FULL JOIN t2
5637 NATURAL INNER JOIN t3
5638 NATURAL RIGHT JOIN t4
5639 NATURAL FULL JOIN t5
5640 WHERE b BETWEEN 12 AND 17
5641 ORDER BY 1 NULLS FIRST;
5644 do_execsql_test joinB-409 {
5645 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5647 FULL JOIN t2 USING(a)
5648 INNER JOIN t3 USING(a)
5649 FULL JOIN t4 USING(a)
5650 INNER JOIN t5 USING(a)
5651 ORDER BY 1 NULLS FIRST;
5658 do_execsql_test joinB-410 {
5659 SELECT a, c, d, e, f, g
5661 FULL JOIN t2 USING(a,b)
5662 INNER JOIN t3 USING(a,b)
5663 FULL JOIN t4 USING(a,b)
5664 INNER JOIN t5 USING(a,b)
5666 ORDER BY 1 NULLS FIRST;
5673 do_execsql_test joinB-411 {
5674 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5676 FULL JOIN t2 USING(a)
5677 INNER JOIN t3 USING(a)
5678 FULL JOIN t4 USING(a)
5679 LEFT JOIN t5 USING(a)
5680 ORDER BY 1 NULLS FIRST;
5690 do_execsql_test joinB-412 {
5691 SELECT a, c, d, e, f, g
5693 FULL JOIN (t2 INNER JOIN t3 USING(a)) USING(a)
5694 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5696 ORDER BY 1 NULLS FIRST;
5705 do_execsql_test joinB-413 {
5706 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5708 FULL JOIN t2 USING(a)
5709 INNER JOIN t3 USING(a)
5710 FULL JOIN t4 USING(a)
5711 RIGHT JOIN t5 USING(a)
5712 ORDER BY 1 NULLS FIRST;
5719 do_execsql_test joinB-414 {
5720 SELECT a, b, c, d, e, f, g
5722 FULL JOIN t2 USING(a,b)
5723 INNER JOIN t3 USING(a,b)
5724 FULL JOIN t4 USING(a,b)
5725 RIGHT JOIN t5 USING(a,b)
5726 WHERE d<>33 OR d IS NULL
5727 ORDER BY 1 NULLS FIRST;
5729 15 25 35 35 35 35 35
5734 do_execsql_test joinB-415 {
5735 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5737 FULL JOIN t2 USING(a)
5738 INNER JOIN t3 USING(a)
5739 FULL JOIN t4 USING(a)
5740 FULL JOIN t5 USING(a)
5741 ORDER BY 1 NULLS FIRST;
5751 do_execsql_test joinB-416 {
5752 SELECT b, c, d, e, f, g
5754 NATURAL FULL JOIN t2
5755 NATURAL INNER JOIN t3
5756 NATURAL FULL JOIN t4
5757 NATURAL FULL JOIN t5
5758 WHERE b BETWEEN 12 AND 17
5759 ORDER BY 1 NULLS FIRST;
5762 do_execsql_test joinB-417 {
5763 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5765 FULL JOIN t2 USING(a)
5766 LEFT JOIN t3 USING(a)
5767 INNER JOIN t4 USING(a)
5768 INNER JOIN t5 USING(a)
5769 ORDER BY 1 NULLS FIRST;
5773 do_execsql_test joinB-418 {
5774 SELECT a, c, d, e, f, g
5776 FULL JOIN t2 USING(a,b)
5777 LEFT JOIN t3 USING(a,b)
5778 INNER JOIN t4 USING(a,b)
5779 INNER JOIN t5 USING(a,b)
5781 ORDER BY 1 NULLS FIRST;
5785 do_execsql_test joinB-419 {
5786 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5788 FULL JOIN t2 USING(a)
5789 LEFT JOIN t3 USING(a)
5790 INNER JOIN t4 USING(a)
5791 LEFT JOIN t5 USING(a)
5792 ORDER BY 1 NULLS FIRST;
5798 do_execsql_test joinB-420 {
5799 SELECT a, c, d, e, f, g
5801 FULL JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
5802 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5804 ORDER BY 1 NULLS FIRST;
5810 do_execsql_test joinB-421 {
5811 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5813 FULL JOIN t2 USING(a)
5814 LEFT JOIN t3 USING(a)
5815 INNER JOIN t4 USING(a)
5816 RIGHT JOIN t5 USING(a)
5817 ORDER BY 1 NULLS FIRST;
5824 do_execsql_test joinB-422 {
5825 SELECT a, b, c, d, e, f, g
5827 FULL JOIN t2 USING(a,b)
5828 LEFT JOIN t3 USING(a,b)
5829 INNER JOIN t4 USING(a,b)
5830 RIGHT JOIN t5 USING(a,b)
5831 WHERE d<>33 OR d IS NULL
5832 ORDER BY 1 NULLS FIRST;
5834 15 25 35 35 35 35 35
5839 do_execsql_test joinB-423 {
5840 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5842 FULL JOIN t2 USING(a)
5843 LEFT JOIN t3 USING(a)
5844 INNER JOIN t4 USING(a)
5845 FULL JOIN t5 USING(a)
5846 ORDER BY 1 NULLS FIRST;
5855 do_execsql_test joinB-424 {
5856 SELECT b, c, d, e, f, g
5858 NATURAL FULL JOIN t2
5859 NATURAL LEFT JOIN t3
5860 NATURAL INNER JOIN t4
5861 NATURAL FULL JOIN t5
5862 WHERE b BETWEEN 12 AND 17
5863 ORDER BY 1 NULLS FIRST;
5866 do_execsql_test joinB-425 {
5867 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5869 FULL JOIN t2 USING(a)
5870 LEFT JOIN t3 USING(a)
5871 LEFT JOIN t4 USING(a)
5872 INNER JOIN t5 USING(a)
5873 ORDER BY 1 NULLS FIRST;
5879 do_execsql_test joinB-426 {
5880 SELECT a, c, d, e, f, g
5882 FULL JOIN t2 USING(a,b)
5883 LEFT JOIN t3 USING(a,b)
5884 LEFT JOIN t4 USING(a,b)
5885 INNER JOIN t5 USING(a,b)
5887 ORDER BY 1 NULLS FIRST;
5893 do_execsql_test joinB-427 {
5894 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5896 FULL JOIN t2 USING(a)
5897 LEFT JOIN t3 USING(a)
5898 LEFT JOIN t4 USING(a)
5899 LEFT JOIN t5 USING(a)
5900 ORDER BY 1 NULLS FIRST;
5910 do_execsql_test joinB-428 {
5911 SELECT a, c, d, e, f, g
5913 FULL JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
5914 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
5916 ORDER BY 1 NULLS FIRST;
5925 do_execsql_test joinB-429 {
5926 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5928 FULL JOIN t2 USING(a)
5929 LEFT JOIN t3 USING(a)
5930 LEFT JOIN t4 USING(a)
5931 RIGHT JOIN t5 USING(a)
5932 ORDER BY 1 NULLS FIRST;
5939 do_execsql_test joinB-430 {
5940 SELECT a, b, c, d, e, f, g
5942 FULL JOIN t2 USING(a,b)
5943 LEFT JOIN t3 USING(a,b)
5944 LEFT JOIN t4 USING(a,b)
5945 RIGHT JOIN t5 USING(a,b)
5946 WHERE d<>33 OR d IS NULL
5947 ORDER BY 1 NULLS FIRST;
5949 15 25 35 35 35 35 35
5954 do_execsql_test joinB-431 {
5955 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5957 FULL JOIN t2 USING(a)
5958 LEFT JOIN t3 USING(a)
5959 LEFT JOIN t4 USING(a)
5960 FULL JOIN t5 USING(a)
5961 ORDER BY 1 NULLS FIRST;
5972 do_execsql_test joinB-432 {
5973 SELECT b, c, d, e, f, g
5975 NATURAL FULL JOIN t2
5976 NATURAL LEFT JOIN t3
5977 NATURAL LEFT JOIN t4
5978 NATURAL FULL JOIN t5
5979 WHERE b BETWEEN 12 AND 17
5980 ORDER BY 1 NULLS FIRST;
5983 do_execsql_test joinB-433 {
5984 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
5986 FULL JOIN t2 USING(a)
5987 LEFT JOIN t3 USING(a)
5988 RIGHT JOIN t4 USING(a)
5989 INNER JOIN t5 USING(a)
5990 ORDER BY 1 NULLS FIRST;
5995 do_execsql_test joinB-434 {
5996 SELECT a, c, d, e, f, g
5998 FULL JOIN t2 USING(a,b)
5999 LEFT JOIN t3 USING(a,b)
6000 RIGHT JOIN t4 USING(a,b)
6001 INNER JOIN t5 USING(a,b)
6003 ORDER BY 1 NULLS FIRST;
6008 do_execsql_test joinB-435 {
6009 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6011 FULL JOIN t2 USING(a)
6012 LEFT JOIN t3 USING(a)
6013 RIGHT JOIN t4 USING(a)
6014 LEFT JOIN t5 USING(a)
6015 ORDER BY 1 NULLS FIRST;
6022 do_execsql_test joinB-436 {
6023 SELECT a, c, d, e, f, g
6025 FULL JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
6026 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6028 ORDER BY 1 NULLS FIRST;
6034 do_execsql_test joinB-437 {
6035 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6037 FULL JOIN t2 USING(a)
6038 LEFT JOIN t3 USING(a)
6039 RIGHT JOIN t4 USING(a)
6040 RIGHT JOIN t5 USING(a)
6041 ORDER BY 1 NULLS FIRST;
6048 do_execsql_test joinB-438 {
6049 SELECT a, b, c, d, e, f, g
6051 FULL JOIN t2 USING(a,b)
6052 LEFT JOIN t3 USING(a,b)
6053 RIGHT JOIN t4 USING(a,b)
6054 RIGHT JOIN t5 USING(a,b)
6055 WHERE d<>33 OR d IS NULL
6056 ORDER BY 1 NULLS FIRST;
6058 15 25 35 35 35 35 35
6063 do_execsql_test joinB-439 {
6064 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6066 FULL JOIN t2 USING(a)
6067 LEFT JOIN t3 USING(a)
6068 RIGHT JOIN t4 USING(a)
6069 FULL JOIN t5 USING(a)
6070 ORDER BY 1 NULLS FIRST;
6079 do_execsql_test joinB-440 {
6080 SELECT b, c, d, e, f, g
6082 NATURAL FULL JOIN t2
6083 NATURAL LEFT JOIN t3
6084 NATURAL RIGHT JOIN t4
6085 NATURAL FULL JOIN t5
6086 WHERE b BETWEEN 12 AND 17
6087 ORDER BY 1 NULLS FIRST;
6090 do_execsql_test joinB-441 {
6091 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6093 FULL JOIN t2 USING(a)
6094 LEFT JOIN t3 USING(a)
6095 FULL JOIN t4 USING(a)
6096 INNER JOIN t5 USING(a)
6097 ORDER BY 1 NULLS FIRST;
6104 do_execsql_test joinB-442 {
6105 SELECT a, c, d, e, f, g
6107 FULL JOIN t2 USING(a,b)
6108 LEFT JOIN t3 USING(a,b)
6109 FULL JOIN t4 USING(a,b)
6110 INNER JOIN t5 USING(a,b)
6112 ORDER BY 1 NULLS FIRST;
6119 do_execsql_test joinB-443 {
6120 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6122 FULL JOIN t2 USING(a)
6123 LEFT JOIN t3 USING(a)
6124 FULL JOIN t4 USING(a)
6125 LEFT JOIN t5 USING(a)
6126 ORDER BY 1 NULLS FIRST;
6137 do_execsql_test joinB-444 {
6138 SELECT a, c, d, e, f, g
6140 FULL JOIN (t2 LEFT JOIN t3 USING(a)) USING(a)
6141 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6143 ORDER BY 1 NULLS FIRST;
6152 do_execsql_test joinB-445 {
6153 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6155 FULL JOIN t2 USING(a)
6156 LEFT JOIN t3 USING(a)
6157 FULL JOIN t4 USING(a)
6158 RIGHT JOIN t5 USING(a)
6159 ORDER BY 1 NULLS FIRST;
6166 do_execsql_test joinB-446 {
6167 SELECT a, b, c, d, e, f, g
6169 FULL JOIN t2 USING(a,b)
6170 LEFT JOIN t3 USING(a,b)
6171 FULL JOIN t4 USING(a,b)
6172 RIGHT JOIN t5 USING(a,b)
6173 WHERE d<>33 OR d IS NULL
6174 ORDER BY 1 NULLS FIRST;
6176 15 25 35 35 35 35 35
6181 do_execsql_test joinB-447 {
6182 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6184 FULL JOIN t2 USING(a)
6185 LEFT JOIN t3 USING(a)
6186 FULL JOIN t4 USING(a)
6187 FULL JOIN t5 USING(a)
6188 ORDER BY 1 NULLS FIRST;
6199 do_execsql_test joinB-448 {
6200 SELECT b, c, d, e, f, g
6202 NATURAL FULL JOIN t2
6203 NATURAL LEFT JOIN t3
6204 NATURAL FULL JOIN t4
6205 NATURAL FULL JOIN t5
6206 WHERE b BETWEEN 12 AND 17
6207 ORDER BY 1 NULLS FIRST;
6210 do_execsql_test joinB-449 {
6211 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6213 FULL JOIN t2 USING(a)
6214 RIGHT JOIN t3 USING(a)
6215 INNER JOIN t4 USING(a)
6216 INNER JOIN t5 USING(a)
6217 ORDER BY 1 NULLS FIRST;
6222 do_execsql_test joinB-450 {
6223 SELECT a, c, d, e, f, g
6225 FULL JOIN t2 USING(a,b)
6226 RIGHT JOIN t3 USING(a,b)
6227 INNER JOIN t4 USING(a,b)
6228 INNER JOIN t5 USING(a,b)
6230 ORDER BY 1 NULLS FIRST;
6235 do_execsql_test joinB-451 {
6236 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6238 FULL JOIN t2 USING(a)
6239 RIGHT JOIN t3 USING(a)
6240 INNER JOIN t4 USING(a)
6241 LEFT JOIN t5 USING(a)
6242 ORDER BY 1 NULLS FIRST;
6249 do_execsql_test joinB-452 {
6250 SELECT a, c, d, e, f, g
6252 FULL JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
6253 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6255 ORDER BY 1 NULLS FIRST;
6261 do_execsql_test joinB-453 {
6262 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6264 FULL JOIN t2 USING(a)
6265 RIGHT JOIN t3 USING(a)
6266 INNER JOIN t4 USING(a)
6267 RIGHT JOIN t5 USING(a)
6268 ORDER BY 1 NULLS FIRST;
6275 do_execsql_test joinB-454 {
6276 SELECT a, b, c, d, e, f, g
6278 FULL JOIN t2 USING(a,b)
6279 RIGHT JOIN t3 USING(a,b)
6280 INNER JOIN t4 USING(a,b)
6281 RIGHT JOIN t5 USING(a,b)
6282 WHERE d<>33 OR d IS NULL
6283 ORDER BY 1 NULLS FIRST;
6285 15 25 35 35 35 35 35
6290 do_execsql_test joinB-455 {
6291 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6293 FULL JOIN t2 USING(a)
6294 RIGHT JOIN t3 USING(a)
6295 INNER JOIN t4 USING(a)
6296 FULL JOIN t5 USING(a)
6297 ORDER BY 1 NULLS FIRST;
6306 do_execsql_test joinB-456 {
6307 SELECT b, c, d, e, f, g
6309 NATURAL FULL JOIN t2
6310 NATURAL RIGHT JOIN t3
6311 NATURAL INNER JOIN t4
6312 NATURAL FULL JOIN t5
6313 WHERE b BETWEEN 12 AND 17
6314 ORDER BY 1 NULLS FIRST;
6317 do_execsql_test joinB-457 {
6318 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6320 FULL JOIN t2 USING(a)
6321 RIGHT JOIN t3 USING(a)
6322 LEFT JOIN t4 USING(a)
6323 INNER JOIN t5 USING(a)
6324 ORDER BY 1 NULLS FIRST;
6331 do_execsql_test joinB-458 {
6332 SELECT a, c, d, e, f, g
6334 FULL JOIN t2 USING(a,b)
6335 RIGHT JOIN t3 USING(a,b)
6336 LEFT JOIN t4 USING(a,b)
6337 INNER JOIN t5 USING(a,b)
6339 ORDER BY 1 NULLS FIRST;
6346 do_execsql_test joinB-459 {
6347 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6349 FULL JOIN t2 USING(a)
6350 RIGHT JOIN t3 USING(a)
6351 LEFT JOIN t4 USING(a)
6352 LEFT JOIN t5 USING(a)
6353 ORDER BY 1 NULLS FIRST;
6364 do_execsql_test joinB-460 {
6365 SELECT a, c, d, e, f, g
6367 FULL JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
6368 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6370 ORDER BY 1 NULLS FIRST;
6379 do_execsql_test joinB-461 {
6380 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6382 FULL JOIN t2 USING(a)
6383 RIGHT JOIN t3 USING(a)
6384 LEFT JOIN t4 USING(a)
6385 RIGHT JOIN t5 USING(a)
6386 ORDER BY 1 NULLS FIRST;
6393 do_execsql_test joinB-462 {
6394 SELECT a, b, c, d, e, f, g
6396 FULL JOIN t2 USING(a,b)
6397 RIGHT JOIN t3 USING(a,b)
6398 LEFT JOIN t4 USING(a,b)
6399 RIGHT JOIN t5 USING(a,b)
6400 WHERE d<>33 OR d IS NULL
6401 ORDER BY 1 NULLS FIRST;
6403 15 25 35 35 35 35 35
6408 do_execsql_test joinB-463 {
6409 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6411 FULL JOIN t2 USING(a)
6412 RIGHT JOIN t3 USING(a)
6413 LEFT JOIN t4 USING(a)
6414 FULL JOIN t5 USING(a)
6415 ORDER BY 1 NULLS FIRST;
6426 do_execsql_test joinB-464 {
6427 SELECT b, c, d, e, f, g
6429 NATURAL FULL JOIN t2
6430 NATURAL RIGHT JOIN t3
6431 NATURAL LEFT JOIN t4
6432 NATURAL FULL JOIN t5
6433 WHERE b BETWEEN 12 AND 17
6434 ORDER BY 1 NULLS FIRST;
6437 do_execsql_test joinB-465 {
6438 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6440 FULL JOIN t2 USING(a)
6441 RIGHT JOIN t3 USING(a)
6442 RIGHT JOIN t4 USING(a)
6443 INNER JOIN t5 USING(a)
6444 ORDER BY 1 NULLS FIRST;
6449 do_execsql_test joinB-466 {
6450 SELECT a, c, d, e, f, g
6452 FULL JOIN t2 USING(a,b)
6453 RIGHT JOIN t3 USING(a,b)
6454 RIGHT JOIN t4 USING(a,b)
6455 INNER JOIN t5 USING(a,b)
6457 ORDER BY 1 NULLS FIRST;
6462 do_execsql_test joinB-467 {
6463 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6465 FULL JOIN t2 USING(a)
6466 RIGHT JOIN t3 USING(a)
6467 RIGHT JOIN t4 USING(a)
6468 LEFT JOIN t5 USING(a)
6469 ORDER BY 1 NULLS FIRST;
6476 do_execsql_test joinB-468 {
6477 SELECT a, c, d, e, f, g
6479 FULL JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
6480 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6482 ORDER BY 1 NULLS FIRST;
6488 do_execsql_test joinB-469 {
6489 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6491 FULL JOIN t2 USING(a)
6492 RIGHT JOIN t3 USING(a)
6493 RIGHT JOIN t4 USING(a)
6494 RIGHT JOIN t5 USING(a)
6495 ORDER BY 1 NULLS FIRST;
6502 do_execsql_test joinB-470 {
6503 SELECT a, b, c, d, e, f, g
6505 FULL JOIN t2 USING(a,b)
6506 RIGHT JOIN t3 USING(a,b)
6507 RIGHT JOIN t4 USING(a,b)
6508 RIGHT JOIN t5 USING(a,b)
6509 WHERE d<>33 OR d IS NULL
6510 ORDER BY 1 NULLS FIRST;
6512 15 25 35 35 35 35 35
6517 do_execsql_test joinB-471 {
6518 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6520 FULL JOIN t2 USING(a)
6521 RIGHT JOIN t3 USING(a)
6522 RIGHT JOIN t4 USING(a)
6523 FULL JOIN t5 USING(a)
6524 ORDER BY 1 NULLS FIRST;
6533 do_execsql_test joinB-472 {
6534 SELECT b, c, d, e, f, g
6536 NATURAL FULL JOIN t2
6537 NATURAL RIGHT JOIN t3
6538 NATURAL RIGHT JOIN t4
6539 NATURAL FULL JOIN t5
6540 WHERE b BETWEEN 12 AND 17
6541 ORDER BY 1 NULLS FIRST;
6544 do_execsql_test joinB-473 {
6545 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6547 FULL JOIN t2 USING(a)
6548 RIGHT JOIN t3 USING(a)
6549 FULL JOIN t4 USING(a)
6550 INNER JOIN t5 USING(a)
6551 ORDER BY 1 NULLS FIRST;
6558 do_execsql_test joinB-474 {
6559 SELECT a, c, d, e, f, g
6561 FULL JOIN t2 USING(a,b)
6562 RIGHT JOIN t3 USING(a,b)
6563 FULL JOIN t4 USING(a,b)
6564 INNER JOIN t5 USING(a,b)
6566 ORDER BY 1 NULLS FIRST;
6573 do_execsql_test joinB-475 {
6574 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6576 FULL JOIN t2 USING(a)
6577 RIGHT JOIN t3 USING(a)
6578 FULL JOIN t4 USING(a)
6579 LEFT JOIN t5 USING(a)
6580 ORDER BY 1 NULLS FIRST;
6591 do_execsql_test joinB-476 {
6592 SELECT a, c, d, e, f, g
6594 FULL JOIN (t2 RIGHT JOIN t3 USING(a)) USING(a)
6595 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6597 ORDER BY 1 NULLS FIRST;
6606 do_execsql_test joinB-477 {
6607 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6609 FULL JOIN t2 USING(a)
6610 RIGHT JOIN t3 USING(a)
6611 FULL JOIN t4 USING(a)
6612 RIGHT JOIN t5 USING(a)
6613 ORDER BY 1 NULLS FIRST;
6620 do_execsql_test joinB-478 {
6621 SELECT a, b, c, d, e, f, g
6623 FULL JOIN t2 USING(a,b)
6624 RIGHT JOIN t3 USING(a,b)
6625 FULL JOIN t4 USING(a,b)
6626 RIGHT JOIN t5 USING(a,b)
6627 WHERE d<>33 OR d IS NULL
6628 ORDER BY 1 NULLS FIRST;
6630 15 25 35 35 35 35 35
6635 do_execsql_test joinB-479 {
6636 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6638 FULL JOIN t2 USING(a)
6639 RIGHT JOIN t3 USING(a)
6640 FULL JOIN t4 USING(a)
6641 FULL JOIN t5 USING(a)
6642 ORDER BY 1 NULLS FIRST;
6653 do_execsql_test joinB-480 {
6654 SELECT b, c, d, e, f, g
6656 NATURAL FULL JOIN t2
6657 NATURAL RIGHT JOIN t3
6658 NATURAL FULL JOIN t4
6659 NATURAL FULL JOIN t5
6660 WHERE b BETWEEN 12 AND 17
6661 ORDER BY 1 NULLS FIRST;
6664 do_execsql_test joinB-481 {
6665 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6667 FULL JOIN t2 USING(a)
6668 FULL JOIN t3 USING(a)
6669 INNER JOIN t4 USING(a)
6670 INNER JOIN t5 USING(a)
6671 ORDER BY 1 NULLS FIRST;
6676 do_execsql_test joinB-482 {
6677 SELECT a, c, d, e, f, g
6679 FULL JOIN t2 USING(a,b)
6680 FULL JOIN t3 USING(a,b)
6681 INNER JOIN t4 USING(a,b)
6682 INNER JOIN t5 USING(a,b)
6684 ORDER BY 1 NULLS FIRST;
6689 do_execsql_test joinB-483 {
6690 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6692 FULL JOIN t2 USING(a)
6693 FULL JOIN t3 USING(a)
6694 INNER JOIN t4 USING(a)
6695 LEFT JOIN t5 USING(a)
6696 ORDER BY 1 NULLS FIRST;
6703 do_execsql_test joinB-484 {
6704 SELECT a, c, d, e, f, g
6706 FULL JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
6707 INNER JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6709 ORDER BY 1 NULLS FIRST;
6715 do_execsql_test joinB-485 {
6716 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6718 FULL JOIN t2 USING(a)
6719 FULL JOIN t3 USING(a)
6720 INNER JOIN t4 USING(a)
6721 RIGHT JOIN t5 USING(a)
6722 ORDER BY 1 NULLS FIRST;
6729 do_execsql_test joinB-486 {
6730 SELECT a, b, c, d, e, f, g
6732 FULL JOIN t2 USING(a,b)
6733 FULL JOIN t3 USING(a,b)
6734 INNER JOIN t4 USING(a,b)
6735 RIGHT JOIN t5 USING(a,b)
6736 WHERE d<>33 OR d IS NULL
6737 ORDER BY 1 NULLS FIRST;
6739 15 25 35 35 35 35 35
6744 do_execsql_test joinB-487 {
6745 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6747 FULL JOIN t2 USING(a)
6748 FULL JOIN t3 USING(a)
6749 INNER JOIN t4 USING(a)
6750 FULL JOIN t5 USING(a)
6751 ORDER BY 1 NULLS FIRST;
6760 do_execsql_test joinB-488 {
6761 SELECT b, c, d, e, f, g
6763 NATURAL FULL JOIN t2
6764 NATURAL FULL JOIN t3
6765 NATURAL INNER JOIN t4
6766 NATURAL FULL JOIN t5
6767 WHERE b BETWEEN 12 AND 17
6768 ORDER BY 1 NULLS FIRST;
6771 do_execsql_test joinB-489 {
6772 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6774 FULL JOIN t2 USING(a)
6775 FULL JOIN t3 USING(a)
6776 LEFT JOIN t4 USING(a)
6777 INNER JOIN t5 USING(a)
6778 ORDER BY 1 NULLS FIRST;
6785 do_execsql_test joinB-490 {
6786 SELECT a, c, d, e, f, g
6788 FULL JOIN t2 USING(a,b)
6789 FULL JOIN t3 USING(a,b)
6790 LEFT JOIN t4 USING(a,b)
6791 INNER JOIN t5 USING(a,b)
6793 ORDER BY 1 NULLS FIRST;
6800 do_execsql_test joinB-491 {
6801 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6803 FULL JOIN t2 USING(a)
6804 FULL JOIN t3 USING(a)
6805 LEFT JOIN t4 USING(a)
6806 LEFT JOIN t5 USING(a)
6807 ORDER BY 1 NULLS FIRST;
6819 do_execsql_test joinB-492 {
6820 SELECT a, c, d, e, f, g
6822 FULL JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
6823 LEFT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6825 ORDER BY 1 NULLS FIRST;
6834 do_execsql_test joinB-493 {
6835 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6837 FULL JOIN t2 USING(a)
6838 FULL JOIN t3 USING(a)
6839 LEFT JOIN t4 USING(a)
6840 RIGHT JOIN t5 USING(a)
6841 ORDER BY 1 NULLS FIRST;
6848 do_execsql_test joinB-494 {
6849 SELECT a, b, c, d, e, f, g
6851 FULL JOIN t2 USING(a,b)
6852 FULL JOIN t3 USING(a,b)
6853 LEFT JOIN t4 USING(a,b)
6854 RIGHT JOIN t5 USING(a,b)
6855 WHERE d<>33 OR d IS NULL
6856 ORDER BY 1 NULLS FIRST;
6858 15 25 35 35 35 35 35
6863 do_execsql_test joinB-495 {
6864 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6866 FULL JOIN t2 USING(a)
6867 FULL JOIN t3 USING(a)
6868 LEFT JOIN t4 USING(a)
6869 FULL JOIN t5 USING(a)
6870 ORDER BY 1 NULLS FIRST;
6882 do_execsql_test joinB-496 {
6883 SELECT b, c, d, e, f, g
6885 NATURAL FULL JOIN t2
6886 NATURAL FULL JOIN t3
6887 NATURAL LEFT JOIN t4
6888 NATURAL FULL JOIN t5
6889 WHERE b BETWEEN 12 AND 17
6890 ORDER BY 1 NULLS FIRST;
6893 do_execsql_test joinB-497 {
6894 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6896 FULL JOIN t2 USING(a)
6897 FULL JOIN t3 USING(a)
6898 RIGHT JOIN t4 USING(a)
6899 INNER JOIN t5 USING(a)
6900 ORDER BY 1 NULLS FIRST;
6905 do_execsql_test joinB-498 {
6906 SELECT a, c, d, e, f, g
6908 FULL JOIN t2 USING(a,b)
6909 FULL JOIN t3 USING(a,b)
6910 RIGHT JOIN t4 USING(a,b)
6911 INNER JOIN t5 USING(a,b)
6913 ORDER BY 1 NULLS FIRST;
6918 do_execsql_test joinB-499 {
6919 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6921 FULL JOIN t2 USING(a)
6922 FULL JOIN t3 USING(a)
6923 RIGHT JOIN t4 USING(a)
6924 LEFT JOIN t5 USING(a)
6925 ORDER BY 1 NULLS FIRST;
6932 do_execsql_test joinB-500 {
6933 SELECT a, c, d, e, f, g
6935 FULL JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
6936 RIGHT JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
6938 ORDER BY 1 NULLS FIRST;
6944 do_execsql_test joinB-501 {
6945 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6947 FULL JOIN t2 USING(a)
6948 FULL JOIN t3 USING(a)
6949 RIGHT JOIN t4 USING(a)
6950 RIGHT JOIN t5 USING(a)
6951 ORDER BY 1 NULLS FIRST;
6958 do_execsql_test joinB-502 {
6959 SELECT a, b, c, d, e, f, g
6961 FULL JOIN t2 USING(a,b)
6962 FULL JOIN t3 USING(a,b)
6963 RIGHT JOIN t4 USING(a,b)
6964 RIGHT JOIN t5 USING(a,b)
6965 WHERE d<>33 OR d IS NULL
6966 ORDER BY 1 NULLS FIRST;
6968 15 25 35 35 35 35 35
6973 do_execsql_test joinB-503 {
6974 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
6976 FULL JOIN t2 USING(a)
6977 FULL JOIN t3 USING(a)
6978 RIGHT JOIN t4 USING(a)
6979 FULL JOIN t5 USING(a)
6980 ORDER BY 1 NULLS FIRST;
6989 do_execsql_test joinB-504 {
6990 SELECT b, c, d, e, f, g
6992 NATURAL FULL JOIN t2
6993 NATURAL FULL JOIN t3
6994 NATURAL RIGHT JOIN t4
6995 NATURAL FULL JOIN t5
6996 WHERE b BETWEEN 12 AND 17
6997 ORDER BY 1 NULLS FIRST;
7000 do_execsql_test joinB-505 {
7001 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
7003 FULL JOIN t2 USING(a)
7004 FULL JOIN t3 USING(a)
7005 FULL JOIN t4 USING(a)
7006 INNER JOIN t5 USING(a)
7007 ORDER BY 1 NULLS FIRST;
7014 do_execsql_test joinB-506 {
7015 SELECT a, c, d, e, f, g
7017 FULL JOIN t2 USING(a,b)
7018 FULL JOIN t3 USING(a,b)
7019 FULL JOIN t4 USING(a,b)
7020 INNER JOIN t5 USING(a,b)
7022 ORDER BY 1 NULLS FIRST;
7029 do_execsql_test joinB-507 {
7030 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
7032 FULL JOIN t2 USING(a)
7033 FULL JOIN t3 USING(a)
7034 FULL JOIN t4 USING(a)
7035 LEFT JOIN t5 USING(a)
7036 ORDER BY 1 NULLS FIRST;
7048 do_execsql_test joinB-508 {
7049 SELECT a, c, d, e, f, g
7051 FULL JOIN (t2 FULL JOIN t3 USING(a)) USING(a)
7052 FULL JOIN (t4 LEFT JOIN t5 USING(a)) USING(a)
7054 ORDER BY 1 NULLS FIRST;
7063 do_execsql_test joinB-509 {
7064 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
7066 FULL JOIN t2 USING(a)
7067 FULL JOIN t3 USING(a)
7068 FULL JOIN t4 USING(a)
7069 RIGHT JOIN t5 USING(a)
7070 ORDER BY 1 NULLS FIRST;
7077 do_execsql_test joinB-510 {
7078 SELECT a, b, c, d, e, f, g
7080 FULL JOIN t2 USING(a,b)
7081 FULL JOIN t3 USING(a,b)
7082 FULL JOIN t4 USING(a,b)
7083 RIGHT JOIN t5 USING(a,b)
7084 WHERE d<>33 OR d IS NULL
7085 ORDER BY 1 NULLS FIRST;
7087 15 25 35 35 35 35 35
7092 do_execsql_test joinB-511 {
7093 SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a
7095 FULL JOIN t2 USING(a)
7096 FULL JOIN t3 USING(a)
7097 FULL JOIN t4 USING(a)
7098 FULL JOIN t5 USING(a)
7099 ORDER BY 1 NULLS FIRST;
7111 do_execsql_test joinB-512 {
7112 SELECT b, c, d, e, f, g
7114 NATURAL FULL JOIN t2
7115 NATURAL FULL JOIN t3
7116 NATURAL FULL JOIN t4
7117 NATURAL FULL JOIN t5
7118 WHERE b BETWEEN 12 AND 17
7119 ORDER BY 1 NULLS FIRST;
7124 ##############################################################################
7125 # Here is the original TCL script that generated the psql input file:
7130 # \\pset tuples_only on
7133 # DROP TABLE IF EXISTS t1;
7134 # DROP TABLE IF EXISTS t2;
7135 # DROP TABLE IF EXISTS t3;
7136 # DROP TABLE IF EXISTS t4;
7137 # DROP TABLE IF EXISTS t5;
7138 # CREATE TABLE t1(a INT, b INT, c INT);
7139 # CREATE TABLE t2(a INT, b INT, d INT);
7140 # CREATE TABLE t3(a INT, b INT, e INT);
7141 # CREATE TABLE t4(a INT, b INT, f INT);
7142 # CREATE TABLE t5(a INT, b INT, g INT);
7143 # INSERT INTO t1 VALUES(11,21,31),(12,22,32),(15,25,35),(17,27,37);
7144 # INSERT INTO t2 VALUES(12,22,32),(13,23,33),(15,25,35),(18,28,38),(NULL,NULL,36);
7145 # INSERT INTO t4 VALUES(11,21,31),(13,23,33),(15,25,35),(19,29,39);
7146 # INSERT INTO t3 SELECT * FROM t1 UNION SELECT * FROM t2 UNION SELECT * FROM t4;
7147 # INSERT INTO t5 SELECT * FROM t3 WHERE a>=15;
7150 # proc echo {prefix txt} {
7151 # regsub -all {\n} $txt \n$prefix txt
7152 # puts "$prefix$txt"
7157 # foreach j1 {INNER LEFT RIGHT FULL} {
7158 # foreach j2 {INNER LEFT RIGHT FULL} {
7159 # foreach j3 {INNER LEFT RIGHT FULL} {
7160 # foreach j4 {INNER LEFT RIGHT FULL} {
7165 # append q1 "SELECT a, t1.a, t2.a, t3.a, t4.a, t5.a\n"
7166 # append q1 " FROM t1\n"
7167 # append q1 " $j1 JOIN t2 USING(a)\n"
7168 # append q1 " $j2 JOIN t3 USING(a)\n"
7169 # append q1 " $j3 JOIN t4 USING(a)\n"
7170 # append q1 " $j4 JOIN t5 USING(a)\n"
7171 # append q1 " ORDER BY 1 NULLS FIRST;"
7173 # echo "\\qecho " "do_execsql_test joinB-$n \{"
7174 # echo "\\qecho X " $q1
7175 # echo "\\qecho " "\} \{"
7177 # echo "\\qecho " "\}"
7179 # switch [expr {$k%4}] {
7182 # append q2 "SELECT b, c, d, e, f, g\n"
7183 # append q2 " FROM t1\n"
7184 # append q2 " NATURAL $j1 JOIN t2\n"
7185 # append q2 " NATURAL $j2 JOIN t3\n"
7186 # append q2 " NATURAL $j3 JOIN t4\n"
7187 # append q2 " NATURAL $j4 JOIN t5\n"
7188 # append q2 " WHERE b BETWEEN 12 AND 17\n"
7189 # append q2 " ORDER BY 1 NULLS FIRST;"
7191 # echo "\\qecho " "do_execsql_test joinB-$n \{"
7192 # echo "\\qecho X " $q2
7193 # echo "\\qecho " "\} \{"
7195 # echo "\\qecho " "\}"
7199 # append q2 "SELECT a, c, d, e, f, g\n"
7200 # append q2 " FROM t1\n"
7201 # append q2 " $j1 JOIN t2 USING(a,b)\n"
7202 # append q2 " $j2 JOIN t3 USING(a,b)\n"
7203 # append q2 " $j3 JOIN t4 USING(a,b)\n"
7204 # append q2 " $j4 JOIN t5 USING(a,b)\n"
7205 # append q2 " WHERE a<>13\n"
7206 # append q2 " ORDER BY 1 NULLS FIRST;"
7208 # echo "\\qecho " "do_execsql_test joinB-$n \{"
7209 # echo "\\qecho X " $q2
7210 # echo "\\qecho " "\} \{"
7212 # echo "\\qecho " "\}"
7216 # append q2 "SELECT a, c, d, e, f, g\n"
7217 # append q2 " FROM t1\n"
7218 # append q2 " $j1 JOIN (t2 $j2 JOIN t3 USING(a)) USING(a)\n"
7219 # append q2 " $j3 JOIN (t4 $j4 JOIN t5 USING(a)) USING(a)\n"
7220 # append q2 " WHERE a<=18\n"
7221 # append q2 " ORDER BY 1 NULLS FIRST;"
7223 # echo "\\qecho " "do_execsql_test joinB-$n \{"
7224 # echo "\\qecho X " $q2
7225 # echo "\\qecho " "\} \{"
7227 # echo "\\qecho " "\}"
7231 # append q2 "SELECT a, b, c, d, e, f, g\n"
7232 # append q2 " FROM t1\n"
7233 # append q2 " $j1 JOIN t2 USING(a,b)\n"
7234 # append q2 " $j2 JOIN t3 USING(a,b)\n"
7235 # append q2 " $j3 JOIN t4 USING(a,b)\n"
7236 # append q2 " $j4 JOIN t5 USING(a,b)\n"
7237 # append q2 " WHERE d<>33 OR d IS NULL\n"
7238 # append q2 " ORDER BY 1 NULLS FIRST;"
7240 # echo "\\qecho " "do_execsql_test joinB-$n \{"
7241 # echo "\\qecho X " $q2
7242 # echo "\\qecho " "\} \{"
7244 # echo "\\qecho " "\}"
7252 ##############################################################################