Question: ( 4 An accounting information system stores purchase orders in a PurchaseOrder table and stores approved vendors in a Vendor table, as shown below.
An accounting information system stores purchase orders in a PurchaseOrder table and stores approved vendors in a Vendor table, as shown below. The database administrator enforces referential integrity between the two tables.
Vendor table
tableFieldData typeVendorIDInteger primary keyVendorNameVarchar
PurchaseOrder table
tableFieldData typePurchaseOrderNumberInteger primary keyPurchaseOrderDateDateVendorIDInteger foreign key to vendor table
SELECT PurchaseOrderNumber, PurchaseOrderDate, PurchaseOrder.VendorID
FROM PurchaseOrder LEFT JOIN Vendor ON PurchaseOrder.VendorID Vendor.VendorID WHERE VendorVendorID Is Null;
Based on the tables and the SQL statement above, which of the following statements is true?
A Return no records from either table.
B Return all purchase orders from the purchase order table.
C Return all vendors from the vendor table.
D Return all records from the purchase order and vendor tables.
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
