Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.35 KB | None | 0 0
  1. CREATE TABLE ORDER_ITEMS (
  2. order_item_id NUMBER(3) PRIMARY KEY,
  3. job_id NUMBER(3),
  4. task_id NUMBER(3),
  5. quantity NUMBER(4),
  6. cost NUMBER(6,2),
  7. other_details VARCHAR2,
  8. FOREIGN KEY (job_id) REFERENCES JOBS (job_id),
  9. FOREIGN KEY (task_id) REFERENCES STANDARD_TASKS(task_id),
  10. FOREIGN KEY (order_item_id) REFERENCES INVOICE_LINE_ITEMS (order_item_id)
  11. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement