From 411639a247355c8de9f7c613f452d23d0c255f39 Mon Sep 17 00:00:00 2001 From: zobeir-rigi Date: Wed, 14 Jun 2023 00:24:54 +0100 Subject: [PATCH 1/2] list all the product --- E-Commerce/readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/E-Commerce/readme.md b/E-Commerce/readme.md index 37580cce..9d3a2157 100644 --- a/E-Commerce/readme.md +++ b/E-Commerce/readme.md @@ -17,7 +17,6 @@ To prepare your environment, open a terminal and create a new database called `c ```sql createdb cyf_ecommerce ``` - Import the file [`cyf_ecommerce.sql`](./cyf_ecommerce.sql) in your newly created database: ```sql @@ -46,6 +45,10 @@ erDiagram Write SQL queries to complete the following tasks: - [ ] List all the products whose name contains the word "socks" +SELECT * +FROM products +WHERE product_name LIKE '%socks%'; + - [ ] List all the products which cost more than 100 showing product id, name, unit price, and supplier id - [ ] List the 5 most expensive products - [ ] List all the products sold by suppliers based in the United Kingdom. The result should only contain the columns product_name and supplier_name From 5b7f9f48a41e04de284a7c7a6cbfb0f2c2249183 Mon Sep 17 00:00:00 2001 From: zobeir-rigi Date: Wed, 14 Jun 2023 00:48:10 +0100 Subject: [PATCH 2/2] All Done --- E-Commerce/readme.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/E-Commerce/readme.md b/E-Commerce/readme.md index 9d3a2157..676ac353 100644 --- a/E-Commerce/readme.md +++ b/E-Commerce/readme.md @@ -50,11 +50,54 @@ FROM products WHERE product_name LIKE '%socks%'; - [ ] List all the products which cost more than 100 showing product id, name, unit price, and supplier id + - [ ] List the 5 most expensive products + - [ ] List all the products sold by suppliers based in the United Kingdom. The result should only contain the columns product_name and supplier_name + - [ ] List all orders, including order items, from customer named Hope Crosby + - [ ] List all the products in the order ORD006. The result should only contain the columns product_name, unit_price, and quantity + - [ ] List all the products with their supplier for all orders of all customers. The result should only contain the columns name (from customer), order_reference, order_date, product_name, supplier_name, and quantity + ## Acceptance Criteria