Files
G4G0-1/Semester 1/Database Systems/Week 2/Week 2 Database Systems.md
2024-01-16 13:48:46 +00:00

32 lines
1.0 KiB
Markdown

## Lecture 1
## Lecture 2
## Workshop 1 (9:00) - More SQL Queries
### Single-Table Queries
1. Display names and quantities of products in the database. Sort the results in order
of increasing quantity.
![](Pasted%20image%2020230929092853.png)
2. Display the names and addresses of companies who are customers from France.
![](Pasted%20image%2020230929093325.png)
3. Display the contact names of customers who are from UK and whose contact title
is “Sales Representative”.
![](Pasted%20image%2020230929093500.png)
### Multi-Table Queries
1. List the names of the products which are supplied by a supplier in Manchester.
![](Pasted%20image%2020230929093719.png)
2. List the names and telephone numbers of shippers who have shipped orders to
Bern.
![](Pasted%20image%2020230929094121.png)
5.3.3
Challenge Question
There are just five orders in which both the customer and employee come from the same
city. These five orders involve just two cities. Write an SQL query which lists the names
of these cities.
![](Pasted%20image%2020230929095251.png)