22 |
+1 PRIMARY <derived2> ref key0 key0 5 test.t2.c2 2 100.00 Using where |
+1 PRIMARY <derived2> ref key0 key0 5 test.t2.c2 2 100.00 Using where |
23 |
+2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00 |
+2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00 |
24 |
+Warnings: |
+Warnings: |
25 |
+Note 1003 select `v1`.`c1` AS `c1`,`v1`.`c2` AS `c2` from `test`.`v1` join `test`.`t2` where ((`v1`.`c1` = `test`.`t2`.`c1`) and (`v1`.`c2` = `test`.`t2`.`c2`)) |
+Note 1003 select `v1`.`c1` AS `c1`,`v1`.`c2` AS `c2` from `test`.`v1` join `test`.`t2` where ((`v1`.`c2` = `test`.`t2`.`c2`) and (`v1`.`c1` = `test`.`t2`.`c1`)) |
26 |
+SELECT v1.c1, v1.c2 FROM v1, t2 WHERE v1.c1=t2.c1 AND v1.c2=t2.c2; |
+SELECT v1.c1, v1.c2 FROM v1, t2 WHERE v1.c1=t2.c1 AND v1.c2=t2.c2; |
27 |
+c1 c2 |
+c1 c2 |
28 |
+c 3 |
+c 3 |
35 |
+1 PRIMARY <derived2> ref key0 key0 5 test.t2.c2 2 100.00 Using where |
+1 PRIMARY <derived2> ref key0 key0 5 test.t2.c2 2 100.00 Using where |
36 |
+2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00 Using temporary; Using filesort |
+2 DERIVED t1 ALL NULL NULL NULL NULL 5 100.00 Using temporary; Using filesort |
37 |
+Warnings: |
+Warnings: |
38 |
+Note 1003 select `test`.`t2`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2` from (select `test`.`t1`.`c1` AS `g`,max(`test`.`t1`.`c2`) AS `m` from `test`.`t1` group by `test`.`t1`.`c1`) `t` join `test`.`t2` where ((`t`.`g` = `test`.`t2`.`c1`) and (`t`.`m` = `test`.`t2`.`c2`)) |
+Note 1003 select `test`.`t2`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2` from (select `test`.`t1`.`c1` AS `g`,max(`test`.`t1`.`c2`) AS `m` from `test`.`t1` group by `test`.`t1`.`c1`) `t` join `test`.`t2` where ((`t`.`m` = `test`.`t2`.`c2`) and (`t`.`g` = `test`.`t2`.`c1`)) |
39 |
+SELECT t2.c1, t2.c2 FROM (SELECT c1 g, MAX(c2) m FROM t1 GROUP BY c1) t, t2 |
+SELECT t2.c1, t2.c2 FROM (SELECT c1 g, MAX(c2) m FROM t1 GROUP BY c1) t, t2 |
40 |
+WHERE t.g=t2.c1 AND t.m=t2.c2; |
+WHERE t.g=t2.c1 AND t.m=t2.c2; |
41 |
+c1 c2 |
+c1 c2 |