SQL - Indexes and Query Performance
You have a large table
orders with columns order_id, customer_id, and order_date. You often query orders by customer_id and sort by order_date. How should you create an index to optimize these queries?