Complete the code to create a composite index on columns 'first_name' and 'last_name'.
CREATE INDEX idx_name ON users([1]);The composite index includes both 'first_name' and 'last_name' columns to speed up queries filtering by both.
Complete the query to use the composite index on 'city' and 'state' for filtering.
SELECT * FROM customers WHERE city = 'Boston' AND [1] = 'MA';
The composite index is on 'city' and 'state', so filtering by both uses the index efficiently.
Fix the error in the composite index creation statement.
CREATE INDEX idx_location ON places([1]);Columns in an index must be separated by commas without extra characters.
Fill both blanks to create a composite index on 'email' and 'signup_date'.
CREATE [1] idx_user ON users([2]);
The correct syntax uses 'INDEX' keyword and columns separated by commas.
Fill all three blanks to select rows using a composite index on 'category' and 'price'.
SELECT * FROM products WHERE [1] = 'Books' AND [2] [3] 20;
The query filters by 'category' and 'price' using the composite index. The operator '<=' selects products priced 20 or less.