Querying Data with Transact-SQL — Question 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.
You have a table named Products that contains information about the products that your company sells. The table contains many columns that do not always contain values.
You need to implement an ANSI standard method to convert the NULL values in the query output to the phrase "Not Applicable".
What should you implement?

Answer options

Correct answer: F

Explanation

The correct answer is F, the ISNULL function, which allows you to replace NULL values with a specified value, in this case, 'Not Applicable'. The COALESCE function (A) can also achieve similar results but is not specifically ANSI standard for this task, while a view (B), stored procedure (E), or table-valued function (C) do not directly address the NULL handling in query outputs. The other options (D, G, H) are either not applicable or do not serve the same purpose in this context.