Quiz
Quiz
Customers
Column
Data Type Description
Name
customer_na
VARCHAR(100) Full name of the customer
me
2. Products
Column
Data Type Description
Name
product_nam
VARCHAR(100) Name of the product
e
3. Orders
Column
Data Type Description
Name
4. OrderDetails
Column
Data Type Description
Name
INT (Foreign
order_id Linked to Orders table
Key)
INT (Foreign
product_id Linked to Products table
Key)
5. Categories
Column
Data Type Description
Name
category_na
VARCHAR(50) Name of the category
me
6. Suppliers
5. JOIN Query
Question: List all orders with the customer name, order ID, and order date.
6. Subquery
Question: Find the names of products that are more expensive than the average
product price.
7. Multi-table JOIN
Question: Retrieve the customer name, product name, and quantity for all orders.
8. UNION
Question: Combine and display the list of cities where either customers or
suppliers are located.
9. DELETE Query
Question: Delete all orders placed before January 1, 2023.