QuestionQ154

VerifiedManipulating Data

Refer to the exhibit and review the description of the CUSTOMERS table.

Question Image

You need to update the CUST_CREDIT_LIMIT column to NULL for every customer whose CUST_INCOME_LEVEL is NULL in the CUSTOMERS table. Which SQL statement accomplishes this task?

Explanation

SQL uses the IS NULL predicate to test whether a column contains a null value. WHERE cust_income_level IS NULL selects the applicable customer rows, and assigning NULL sets cust_credit_limit to null for each selected row.

Community Discussion

No comments yet. Be the first to start the discussion!