QUESTION 71Note: 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 need to create a stored procedure that updates the Customer, CustomerInfo, OrderHeader, and OrderDetails tables in order.You need to ensure that the stored procedure: Runs within a single transaction. Commits updates to the Customer and CustomerInfo tables regardless of the status of updates to the OrderHeader and OrderDetail tables. Commits changes to all four tables when updates to all four tables are successful.Solution: You create a stored procedure that includes the following Transact-SQL segment:Does the solution meet the goal?

QUESTION 72Note: 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 need to create a stored procedure that updates the Customer, CustomerInfo, OrderHeader, and OrderDetails tables in order.You need to ensure that the stored procedure: Runs within a single transaction. Commits updates to the Customer and CustomerInfo tables regardless of the status of updates to the OrderHeader and OrderDetail tables. Commits changes to all four tables when updates to all four tables are successful.Solution: You create a stored procedure that includes the following Transact-SQL segment:Does the solution meet the goal?

QUESTION 73Note: 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 stores information about the employees of your company.You need to implement and enforce the following business rules:– Limit the values that are accepted by the Salary column.– Prevent salaries less than $15,000 and greater than $300,000 from being entered.– Determine valid values by using logical expressions.– Do not validate data integrity when running DELETE statements.Solution: You implement a check constraint on the table.Does the solution meet the goal?

QUESTION 74Note: 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 stores information about the employees of your company.You need to implement and enforce the following business rules:– Limit the values that are accepted by the Salary column.– Prevent salaries less than $15,000 and greater than $300,000 from being entered.– Determine valid values by using logical expressions.– Do not validate data integrity when running DELETE statements.Solution: You implement a FOR UPDATE trigger on the table.Does the solution meet the goal?

QUESTION 75Note: 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 stores information about the employees of your company.You need to implement and enforce the following business rules:– Limit the values that are accepted by the Salary column.– Prevent salaries less than $15,000 and greater than $300,000 from being entered.– Determine valid values by using logical expressions.– Do not validate data integrity when running DELETE statements.Solution: You implement cascading referential integrity constraints on the table.Does the solution meet the goal?

QUESTION 76Note: This question is part of a series of questions that present the same scenario. Each question in this series contains a unique solution. Determine whether the solution meets the stated goals.The Account table was created by using the following Transact-SQL statement:There are more than 1 billion records in the Account table. The Account Number column uniquely identifies each account. The ProductCode column has 100 different values. The values are evenly distributed in the table. Table statistics are refreshed and up to date.You frequently run the following Transact-SQL SELECT statements:You must avoid table scans when you run the queries.You need to create one or more indexes for the table.Solution: You run the following Transact-SQL statement:CREATE NONCLUSTERED INDEX IX_Account_ProductCode ON Account(ProductCode);Does the solution meet the goal?

QUESTION 77Note: This question is part of a series of questions that present the same scenario. Each question in this series contains a unique solution. Determine whether the solution meets the stated goals.You are developing a new application that uses a stored procedure. The stored procedure inserts thousands of records as a single batch into the Employees table.Users report that the application response time has worsened since the stored procedure was updated. You examine disk-related performance counters for the Microsoft SQL Server instance and observe several high values that include a disk performance issue. You examine wait statistics and observe an unusually high WRITELOG value.You need to improve the application response time.Solution: You update the application to use implicit transactions when connecting to the database.Does the solution meet the goal?

QUESTION 78Note: This question is part of a series of questions that present the same scenario. Each question in this series contains a unique solution. Determine whether the solution meets the stated goals.You are developing a new application that uses a stored procedure. The stored procedure inserts thousands of records as a single batch into the Employees table.Users report that the application response time has worsened since the stored procedure was updated. You examine disk-related performance counters for the Microsoft SQL Server instance and observe several high values that include a disk performance issue. You examine wait statistics and observe an unusually high WRITELOG value.You need to improve the application response time.Solution: You add a unique clustered index to the Employees table.Does the solution meet the goal?

QUESTION 79Note: This question is part of a series of questions that present the same scenario. Each question in this series contains a unique solution. Determine whether the solution meets the stated goals.You are developing a new application that uses a stored procedure. The stored procedure inserts thousands of records as a single batch into the Employees table.Users report that the application response time has worsened since the stored procedure was updated. You examine disk-related performance counters for the Microsoft SQL Server instance and observe several high values that include a disk performance issue. You examine wait statistics and observe an unusually high WRITELOG value.You need to improve the application response time.Solution: You replace the stored procedure with a user-defined function.Does the solution meet the goal?

QUESTION 80Note: This question is part of a series of questions that use the same 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 are developing an application to track customer sales. You create tables to support the application. You need to create a database object that meets the following data entry requirements:What should you create?