wiki:SQL & DDL

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

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)
  • TransactionID (FK)
  • 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


Last modified 12 days ago Last modified on 05/04/25 18:54:56

Attachments (7)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.