From ea3ed2210e659bf2fc31cd66afbcddbb0242bdc5 Mon Sep 17 00:00:00 2001 From: Yaroslav Yavornytskyi Date: Mon, 4 Mar 2024 15:16:59 +0100 Subject: [PATCH] Solution --- task.sql | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/task.sql b/task.sql index 0c5b574..a3df9f3 100644 --- a/task.sql +++ b/task.sql @@ -1,2 +1,12 @@ -# Write your SQL code for the database creation here. Good luck! + USE ShopDB; + + +CREATE INDEX idx_email ON Customers(Email); + +CREATE INDEX idx_name ON Products(Name); + +CREATE INDEX idx_customer_id ON Orders(CustomerID); + +CREATE INDEX idx_order_id ON OrderItems(OrderID); +CREATE INDEX idx_product_id ON OrderItems(ProductID);