From ca3ee76084f617ddd250f7e867832be10db99432 Mon Sep 17 00:00:00 2001 From: yaroslav-demchenko Date: Fri, 3 Apr 2026 14:01:40 +0300 Subject: [PATCH 1/2] indexes creation --- task.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/task.sql b/task.sql index 0c5b574..5d87e23 100644 --- a/task.sql +++ b/task.sql @@ -1,2 +1,5 @@ -# Write your SQL code for the database creation here. Good luck! USE ShopDB; + +CREATE INDEX idx_customer_email ON Customers (Email); + +CREATE INDEX idx_product_name ON Products (Name); From 94d4b22a875fb224cb917d77dcf17bda813e1552 Mon Sep 17 00:00:00 2001 From: yaroslav-demchenko Date: Fri, 3 Apr 2026 14:04:43 +0300 Subject: [PATCH 2/2] fixed index names --- task.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task.sql b/task.sql index 5d87e23..2714aab 100644 --- a/task.sql +++ b/task.sql @@ -1,5 +1,5 @@ USE ShopDB; -CREATE INDEX idx_customer_email ON Customers (Email); +CREATE INDEX Email ON Customers (Email); -CREATE INDEX idx_product_name ON Products (Name); +CREATE INDEX Name ON Products (Name);