Complete the code to update statistics for the table named 'employees'.
ANALYZE [1];The ANALYZE command updates statistics for the specified table. Here, the correct table name is employees.
Complete the code to analyze all tables in the current database.
[1];ANALYZE ALL or ANALYZE DATABASE is invalid syntax.The ANALYZE command (without a table name) updates statistics for all tables in the current database.
Fix the error in the code to analyze the table 'sales_data'.
ANALYZE [1];The correct table name is sales_data. Using quotes or hyphens causes syntax errors.
Fill both blanks to analyze the table 'orders' with verbose output.
ANALYZE [1] [2];
The correct syntax is ANALYZE VERBOSE orders; to analyze the 'orders' table with detailed output.
Fill all three blanks to analyze the table 'customers' with verbose output and sample rows.
ANALYZE [1] [2] ([3]);
The command ANALYZE VERBOSE customers (SAMPLE 1000); analyzes the 'customers' table with detailed output and uses 1000 sample rows for statistics.