Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions task.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# Write your SQL code for the database creation here. Good luck!
USE ShopDB;
USE ShopDB;

CREATE INDEX idx_products_name ON Products(Name);
CREATE INDEX idx_customers_email ON Customers(Email);

CREATE INDEX idx_orders_customer ON Orders(CustomerID);
CREATE INDEX idx_orders_date ON Orders(Date);

CREATE INDEX idx_orderitems_order ON OrderItems(OrderID);
CREATE INDEX idx_orderitems_product ON OrderItems(ProductID);
Loading