Skip to content
Open
Changes from all 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
7 changes: 7 additions & 0 deletions task.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Write your SQL code for the database creation here. Good luck!

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment still refers to "database creation", but this file is now specifically for index creation. It’s not functionally wrong, but you might reword it to avoid confusion for anyone running your scripts in order (and optionally mention that create-database.sql must be executed before this script).

USE ShopDB;


create index Email ON Customers (Email);
create index Name ON Products (Name);
create index CustomerID ON Orders (CustomerID);
create index OrderID ON OrderItems (OrderID);
create index ProductID ON OrderItems (ProductID);
Loading