Question: Click the Exhibit ( s ) button to examine the data from the PO _ HEADER and PO _ DETAIL tables. Examine the structures of
Click the Exhibits button to examine the data from the POHEADER and PODETAIL tables. Examine the structures of the POHEADER and PODETAIL tables:
POHEADER
PONUM NUMBER NOT NULL
PODATE DATE DEFAULT SYSDATE
POTOTAL NUMBER
SUPPLIERID NUMBER
POTERMS VARCHAR
PODETAIL
PONUM NUMBER NOT NULL
POLINEID NUMBER NOT NULL
PRODUCTID NUMBER NOT NULL,
QUANTITY NUMBER NOT NULL,
UNITPRICE NUMBER DEFAULT
The primary key of the POHEADER table is PONUM. The primary key of the PODETAIL table is the combination of PONUM and POLINEID A FOREIGN KEY constraint is defined on the PONUM column of the PODETAIL table that references the POHEADER table. You want to update the purchase order total amount for a given purchase order. The POTOTAL column in the POHEADER table should equal the sum of the extended amounts of the corresponding PODETAIL 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 PODATE column shouldPOHEADER
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
