wiki:SQL & DDL

Version 14 (modified by 213231, 13 days ago) ( diff )

--

Релациска шема

Customer

Employee

Product

Truck / Trailer

  • Truck: ProductID (FK), HP
  • Trailer: ProductID (FK), Capacity

Procurement

  • TransactionID (PK)
  • EmployeeID (FK)
  • CustomerID (FK)
  • ProductID (FK)
  • ProcurementDate
  • Quantity

T_Type

CustomerFeedback

  • FeedbackID (PK)
  • CustomerID (FK)
  • ProductID (FK)
  • Rating (1-5)
  • Comment
  • FeedbackDate

Maintenance

  • MainID (PK)
  • EmployeeID (FK)
  • ProductID (FK)
  • MainDate

Views

  • CustomerID (PK, FK)
  • ProductID (PK, FK)

DDL скрипта за бришење на табелите и креирање на табелите

V2__init_db.txt

DML скрипта за полнење на табелите со податоци

V1__init_db.txt

Релациски дијаграм изваден од DBeaver

DBeaverPhoto

Attachments (7)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.