Add an index via DDL
SQL
Medium
2 views
Problem Description
Create an index on Orders(order_date) to speed up date range filters.
Output Format
DDL statement(s)
Sample Test Case
Input:
Orders(order_id, order_date)
Constraints
Assume Orders exists
Official Solution
CREATE INDEX idx_orders_order_date ON Orders(order_date);
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!