Oracle
1Z0-007 · Question #68
Which statement adds a constraint that ensures the CUSTOMER_NAME column of the CUSTOMERS table holds a value?
The correct answer is C. ALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn NOT NULL. See the full explanation below for the reasoning.
Question
Which statement adds a constraint that ensures the CUSTOMER_NAME column of the CUSTOMERS table holds a value?
Options
- AALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name IS NOT NULL;
- BALTER TABLE customers MODIFY CONSTRAINT cust_name_nn CHECK customer_name IS NOT NULL;
- CALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn NOT NULL;
- DALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn IS NOT NULL;
- EALTER TABLE customers MODIFY name CONSTRAINT cust_name_nn NOT NULL;
- FALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name NOT NULL;
How the community answered
(43 responses)- B14% (6)
- C77% (33)
- D5% (2)
- E2% (1)
- F2% (1)
Community Discussion
No community discussion yet for this question.