not found Distinct Full scan on NULL key Impossible HAVING Impossible WHERE Impossible WHERE noticed after reading const tables no matching min/max row no matching row in const table No table used Not exists Range checked for each record Scanned N databases
not found Distinct Full scan on NULL key Impossible HAVING Impossible WHERE Impossible WHERE noticed after reading const tables no matching min/max row no matching row in const table No table used Not exists Range checked for each record Scanned N databases col1 (SELECT col2 FROM …) Full scan on NULL key
not found Distinct Full scan on NULL key Impossible HAVING Impossible WHERE Impossible WHERE noticed after reading const tables no matching min/max row no matching row in const table No table used Not exists Range checked for each record Scanned N databases Full scan on NULL key Range checked for each record
optimized away Skip_open_table, Open_frm_only, Open_trigger_only, Open_full_table Unique row not found Using filesort Using index Using index for group-by Using join buffer Using sort_union, Using union, Using intersect Using temporary Using where
optimized away Skip_open_table, Open_frm_only, Open_trigger_only, Open_full_table Unique row not found Using filesort Using index Using index for group-by Using join buffer Using sort_union, Using union, Using intersect Using temporary Using where Using where
emp_no FROM salaries; SELECT emp_no FROM salaries GROUP BY emp_no; SELECT COUNT(DISTINCT s.salary) FROM employees e, salaries s WHERE e.emp_no = s.emp_no …