Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

zubeda-Week3-database #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 12 additions & 1 deletion week-2/mandatory/2-ecommerce-db/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ Below you will find a set of tasks for you to complete to set up a databases of
To submit this homework write the correct commands for each question here:

```sql

1.select name,address from customers where country='United States';
2.select * from customers order by name;
3.select * from products where unit_price>100;
4.select * from products where product_name like 'socks';
5.select * from products order by unit_price desc limit 5;
6.select products.product_name,products.unit_price,suppliers.supplier_name from products,suppliers where suppliers.id=products.supplier_id;
7.select products.product_name,suppliers.supplier_name from products,suppliers where products.supplier_id=suppliers.id and suppliers.country='United Kingdom';
8.select * from orders where customer_id=1;
9.select * from orders where customer_id=(select id from customers where name='Hope Crosby');
10.select products.product_name,products.unit_price,order_items.quantity from products inner join order_items on products.id=order_items.product_id inner join orders on order_items.order_id=orders.id;
11.select customers.name,orders.order_reference,orders.order_date,products.product_name,suppliers.supplier_name,order_items.quantity from customers inner join orders on customers.id=orders.customer_id inner join order_items on orders.id=order_items.order_id inner join products on order_items.product_id=products.id inner join suppliers on products.supplier_id=suppliers.id;
12.select customers.name from customers inner join orders on customers.id=orders.customer_id inner join order_items on orders.id=order_items.order_id inner join products on order_items.product_id=products.id inner join suppliers on products.supplier_id=suppliers.id where suppliers.country='China';

```

Expand Down
1 change: 1 addition & 0 deletions week-3/mandatory/2-api/node_modules/.bin/is-ci

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions week-3/mandatory/2-api/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions week-3/mandatory/2-api/node_modules/.bin/nodemon

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions week-3/mandatory/2-api/node_modules/.bin/nodetouch

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions week-3/mandatory/2-api/node_modules/.bin/nopt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions week-3/mandatory/2-api/node_modules/.bin/rc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions week-3/mandatory/2-api/node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

132 changes: 132 additions & 0 deletions week-3/mandatory/2-api/node_modules/@sindresorhus/is/dist/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading