practice

Tables (8)

Categories (tb_categories)

  • CategoryID (Key) — Primary key — NOT NULL
  • CategoryName (Field)
  • Description (Field2)

Customers (tb_customer)

  • CustomerID (Key) — Primary key — NOT NULL
  • CustomerName (Field)
  • ContactName (Field2)
  • Address (Field3)
  • City (Field4)
  • PostalCode (Field5)
  • City (Field6)

Employees (tb_employee)

  • EmployeeID (Key) — Primary key — NOT NULL
  • LastName (Field)
  • FirstName (Field2)
  • BirthDate (Field3)
  • Photo (Field4)
  • Notes (Field5)

OrderDetails (tb_orderdetails)

  • OrderDetailID (Key2) — Primary key — NOT NULL
  • OrderID (Key) — Foreign key → Orders.OrderID — NOT NULL
  • ProductID (Key3) — Foreign key → Products.ProductID — NOT NULL
  • Quantity (Field)

Orders (tb_order)

  • OrderID (Key) — Primary key — NOT NULL
  • OrderDate (Field)
  • CustomerID (Key2) — Foreign key → Customers.CustomerID — NOT NULL
  • EmployeeID (Key3) — Foreign key → Employees.EmployeeID — NOT NULL
  • ShipperID (Key4) — Foreign key → Shippers.ShipperID — NOT NULL

Products (tb_product)

  • ProductID (Key) — Primary key — NOT NULL
  • SupplierID (Key2) — Foreign key → Suppliers.SupplierID — NOT NULL
  • CategoryID (Key3) — Foreign key → Categories.CategoryID — NOT NULL
  • ProductName (Field)
  • Unit (Field2)
  • Price (Field3)

Shippers (tb_shipper)

  • ShipperID (Key) — Primary key — NOT NULL
  • ShipperName (Field)
  • Phone (Field2)

Suppliers (tb_supplier)

  • SupplierID (Key) — Primary key — NOT NULL
  • SupplierName (Field)
  • ContactName (Field2)
  • Address (Field3)
  • City (Field4)
  • PostalCode (Field5)
  • Country (Field6)
  • Phone (Field7)