DRAG DROP -
Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series.
You have a database named DB1 that contains the following tables: Customer, CustomerToAccountBridge, and CustomerDetails. The three tables are part of the
Sales schema. The database also contains a schema named Website. You create the Customer table by running the following Transact-SQL statement:
The value of the CustomerStatus column is equal to one for active customers. The value of the Account1Status and Account2Status columns are equal to one for active accounts. The following table displays selected columns and rows from the Customer table.
You plan to create a view named Website.Customer and a view named Sales.FemaleCustomers.
Website.Customer must meet the following requirements:
1. Allow users access to the CustomerName and CustomerNumber columns for active customers.
2. Allow changes to the columns that the view references. Modified data must be visible through the view.
3. Prevent the view from being published as part of Microsoft SQL Server replication.
Sales.Female.Customers must meet the following requirements:
1. Allow users access to the CustomerName, Address, City, State and PostalCode columns.
2. Prevent changes to the columns that the view references.
3. Only allow updates through the views that adhere to the view filter.
You have the following stored procedures: spDeleteCustAcctRelationship and spUpdateCustomerSummary. The spUpdateCustomerSummary stored procedure was created by running the following Transacr-SQL statement:
The following table displays a selected columns and rows from the Customer table. Thr value of the CustomerStatus column is equal to one for active customers.
The value of the Account1Status and Account2Status columns are equal to one for active accounts.
You run the spUpdateCustomerSummary stored procedure to make changes to customer account summaries. Other stored procedures call the spDeleteCustAcctRelationship to delete records from the CustomerToAccountBridge table.
Users report that the following SELECT statement statement takes a long time to complete:
You need to create an index that meets the following requirements:
1. Improve the performance of the SELECT statement.
2. requires minimum index key size.
3. Only contains active customers.
4. Makes no change to the existing primary key.
5. Contains all of the columns required by the SELECT statement.
Which three Transact_SQL segments should you use to develop the solution? To answer, move the appropriate code blocks from the list of code blocks to the answer area and arrange them in the correct order.
Select and Place:
NickMane
Highly Voted 5 years, 2 months agoAnette
4 years, 10 months agoAnette
4 years, 10 months agoAnette
4 years, 10 months agomrn0107
4 years, 10 months agoZSQL
4 years, 6 months agoTheDUdeu
4 years, 4 months agoClydeZ
Highly Voted 5 years, 4 months agojaysun
Most Recent 4 years, 4 months agoalvmarcoux
4 years, 4 months agoTheDUdeu
4 years, 5 months agoLuzix
4 years, 5 months agoAndy7622
4 years, 7 months agosmartrammy
4 years, 7 months agostrikersree
4 years, 10 months agoBartek
5 years, 2 months agoTellence
5 years, 2 months agoilysha2005
5 years, 4 months agoNew_user
5 years, 3 months agolauferr
4 years, 11 months agoneko
5 years, 4 months ago