Question: Click the Exhibit ( s ) button to examine the data from the PO _ HEADER and PO _ DETAIL tables. Examine the structures of

Click the Exhibit(s) button to examine the data from the PO_HEADER and PO_DETAIL tables. Examine the structures of the PO_HEADER and PO_DETAIL tables:
PO_HEADER
--------------------
PO_NUM NUMBER NOT NULL
PO_DATE DATE DEFAULT SYSDATE
PO_TOTAL NUMBER(9,2)
SUPPLIER_ID NUMBER(9)
PO_TERMS VARCHAR2(25)
PO_DETAIL
------------------
PO_NUM NUMBER NOT NULL
PO_LINE_ID NUMBER NOT NULL
PRODUCT_ID NUMBER NOT NULL,
QUANTITY NUMBER(3) NOT NULL,
UNIT_PRICE NUMBER (5,2) DEFAULT 0
The primary key of the PO_HEADER table is PO_NUM. The primary key of the PO_DETAIL table is the combination of PO_NUM and PO_LINE_ID. A FOREIGN KEY constraint is defined on the PO_NUM column of the PO_DETAIL table that references the PO_HEADER table. You want to update the purchase order total amount for a given purchase order. The PO_TOTAL column in the PO_HEADER table should equal the sum of the extended amounts of the corresponding PO_DETAIL records. You want the user to be prompted for the purchase order number when the query is executed. When a purchase order is updated, the PO_DATE column shouldPO_HEADER
 Click the Exhibit(s) button to examine the data from the PO_HEADER

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!