diff --git a/schema.sql b/schema.sql index fb0a83c..0284aff 100644 --- a/schema.sql +++ b/schema.sql @@ -1014,3 +1014,4 @@ insert into Orders (CustomerID, OrderDate, ProductID, Quantity) values (1000, '2 -- Write query to create the index that you will create to optimize a query like -- SELECT * FROM Orders WHERE CustomerID = {abc} AND OrderDate > '{abc}'; +create index customer_idx on Orders(CustomerID);