study
Tables (8)
Categories (tb_categories)
- CategoryID (Key) — Primary key — NOT NULL
- CategoryName (Field)
- Description (Field2)
Customers (tb_customers)
- CustomerID (Key) — Primary key — NOT NULL
- CustomerName (Field)
- Address (Field2)
- City (Field3)
- PostalCode (Field4)
- Country (Field5)
Employees (tb_employees)
- EmployeeID (Key) — Primary key — NOT NULL
- LastName (Field)
- FirstName (Field2)
- BirthDate (Field3)
- Photo (Field4)
- Notes (Field5)
OrderDetails (tb_order_details)
- OrderDetailID (Key) — Primary key — NOT NULL
- Quantity (Field)
- OrderID (Key2) — Foreign key → Orders.OrderID — NOT NULL
- ProductID (Key3) — Foreign key → Products.ProductID — NOT NULL
Orders (tb_orders)
- 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_products)
- ProductID (Key) — Primary key — NOT NULL
- ProductName (Field)
- Unit (Field2)
- Price (Field3)
- SupplierID (Key2) — Foreign key → Suppliers.SupplierID — NOT NULL
- CategoryID (Key3) — Foreign key → Categories.CategoryID — NOT NULL
Shippers (tb_shippers)
- ShipperID (Key) — Primary key — NOT NULL
- ShipperName (Field)
- Phone (Field2)
Suppliers (tb_suppliers)
- SupplierID (Key) — Primary key — NOT NULL
- SupplierName (Field)
- ContactName (Field2)
- Address (Field3)
- City (Field4)
- PostalCode (Field5)
- Country (Field6)
- Phone (Field7)