SQL - Module 10
Final Project
Objective: The project will simulate an e-commerce business with various entities like
products, customers, orders, and payments. You will need to create tables for each of these
entities, set up relationships between the tables, and perform queries for business insights
like product performance and customer behaviour.
Tasks:
● Create a database:
sqlite3 [Link]
● Create Products table:
● Create Categories table:
● Create Customers table:
● Create Orders table:
● Create Payments table:
● Insert Sample Data on Categories:
● Insert Sample Data on Products:
● Insert Sample Data on Customers:
● Insert Sample Data on Orders:
● Insert Sample Data on Order Items:
● Insert Sample Data on Payments:
● Total Sales by Product:
● Number of Orders by Customer:
● Payments Received:
● Unpaid Orders:
● Revenue by Category:
Expected outcome: