Skip to main content

SQL

Every lesson in this track uses the E-commerce schema you built in Setting Up Your DB Schema using MySQL. The examples, practice queries, and exercises all reference the same core tables so you can see how each concept fits together in a consistent dataset.

E-commerce Schema Snapshot

  • category: Product categories (category_id, category_name)
  • seller: Marketplace stores and contacts
  • customer: Shoppers with optional category preferences
  • product: Catalog of items, tied to categories and sellers
  • orders: Customer purchases with status and delivery details
  • order_item: Line items connecting orders to products
  • transactions: Payment attempts and outcomes

Refer back to the schema lesson whenever you need DDL or seed data. Each subsequent module builds on that foundation: