Complete the code to show the query plan for selecting all rows from the table named employees.
EXPLAIN [1] * FROM employees;The EXPLAIN command shows the execution plan of a query. To see the plan for selecting rows, use EXPLAIN SELECT.
Complete the code to get a detailed query plan with actual run times for the query selecting all rows from employees.
EXPLAIN ([1]) SELECT * FROM employees;Adding ANALYZE runs the query and shows actual run times in the plan.
Fix the error in the EXPLAIN command to show the query plan with buffers information for a SELECT query.
EXPLAIN (ANALYZE, [1]) SELECT * FROM employees;The BUFFERS option shows buffer usage in the query plan. It must be used with ANALYZE to see actual buffer reads and hits.
Fill both blanks to create a query that shows the query plan with costs and without actual execution for a SELECT from employees.
EXPLAIN ([1], [2]) SELECT * FROM employees;
COSTS shows estimated costs in the plan. VERBOSE adds extra details. Without ANALYZE, the query is not run, so no actual times appear.
Fill all three blanks to create a query that shows the query plan with actual execution, buffers info, and verbose output for a SELECT from employees.
EXPLAIN ([1], [2], [3]) SELECT * FROM employees;
ANALYZE runs the query and shows actual times. BUFFERS shows buffer usage. VERBOSE adds detailed info about the plan nodes.