Multiple Choice
You have been given two tables,CUSTOMER and SALE.You want to check the referential integrity constraint: SALE.CustomerNumber must exist in CUSTOMER.CustomerNumber
You run the following SQL query:
SELECT CustomerNumber
FROM SALE
WHERE CustomerNumber NOT IN
(SELECT CustomerNumber
FROM SALE,CUSTOMER
WHERE SALE.CustomerNumber = CUSTOMER.CustomerNumber) ;
What is shown in the results of this query?
A) All values of CustomerNumber that match the constraint.
B) All values of CustomerNumber that violate the constraint.
C) All values of CustomerNumber where
SALE.CustomerNumber = CUSTOMER.CustomerNumber.
D) A and C
E) B and C
Correct Answer:

Verified
Correct Answer:
Verified
Q3: Read-only databases often use several copies of
Q8: When examining data values as a part
Q46: The presence of one or more foreign
Q54: Normalization is an advantage for a read-only
Q57: A missing value is called a null
Q80: Denormalization is simple-join the data together and
Q81: The defining characteristic of BCNF is that
Q82: Null values are a problem because they
Q87: When a table is created using existing
Q89: The SQL keyword IS NULL can be