Developing SQL Databases — Question 11

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You have a database that contains a table named Employees. The table stored information about the employees of your company.
You need to implement the following auditing rules for the Employees table:
- Record any changes that are made to the data in the Employees table.
- Customize the data that is recorded by the audit operations.
Solution: You implement a user-defined function on the Employees table.
Does the solution meet the goal?

Answer options

Correct answer: A

Explanation

The solution meets the goal because implementing a user-defined function allows for tracking changes made to the Employees table while also providing the flexibility to customize the data that is logged during the audit. The alternative option, 'No', would not be correct as it suggests the solution does not meet the requirements, which it actually does.