Complete the code to show the execution plan of a query.
EXPLAIN [1] SELECT * FROM employees;The EXPLAIN ANALYZE command runs the query and shows the actual execution plan with timing details.
Complete the code to get a summary of the query plan without running the query.
EXPLAIN [1] FOR SELECT * FROM orders WHERE order_date > '2023-01-01';
EXPLAIN PLAN shows the estimated execution plan without running the query.
Fix the error in the EXPLAIN command to correctly show the query plan.
EXPLAIN [1] SELECT name FROM customers WHERE city = 'Paris';
The correct keyword to run the query and show the actual plan is ANALYZE.
Fill both blanks to create a query that explains the plan and shows detailed output.
EXPLAIN [1] [2] SELECT * FROM products WHERE price > 100;
Using EXPLAIN ANALYZE VERBOSE runs the query and shows a detailed execution plan.
Fill all three blanks to explain the query plan with analyze, verbose, and buffers options.
EXPLAIN [1] [2] [3] SELECT * FROM sales WHERE amount > 500;
EXPLAIN ANALYZE VERBOSE BUFFERS runs the query and shows detailed plan with buffer usage.