What should you implement?

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.
Multiple processes use the data from a table named Sales and place it in other databases across the
organization. Some of the processes are not completely aware of the data types in the Sales table. This leads
to data type conversion errors.
You need to implement a method that returns a NULL value id data conversion fails instead of throwing an
error.
What should you implement?

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.
Multiple processes use the data from a table named Sales and place it in other databases across the
organization. Some of the processes are not completely aware of the data types in the Sales table. This leads
to data type conversion errors.
You need to implement a method that returns a NULL value id data conversion fails instead of throwing an
error.
What should you implement?

A.
the COALESCE function

B.
a view

C.
a table-valued function

D.
the TRY_PARSE function

E.
a stored procedure

F.
the ISNULL function

G.
a scalar function

H.
the TRY_CONVERT function

Explanation:
TRY_CONVERT returns a value cast to the specified data type if the cast succeeds; otherwise, returns null.
https://docs.microsoft.com/en-us/sql/t-sql/functions/try-convert-transact-sql



Leave a Reply 1

Your email address will not be published. Required fields are marked *


EY Auditor

EY Auditor

correct