Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started