70-451 · Question #42
You are a database developer. You plan to design a database solution by using SQL Server 2008. The database application has a table named Transactions that contains millions of rows. The table has…
The correct answer is D. Create a nonclustered index on the transaction_date and transaction_type_id columns and. See the full explanation below for the reasoning.
Question
You are a database developer. You plan to design a database solution by using SQL Server 2008. The database application has a table named Transactions that contains millions of rows. The table has multiple columns that include transaction_id and transaction_date. There is a clustered index on the transaction_id column. There is a nonclustered index on the transaction_date column. You discover that the following query takes a long time to execute. You need to ensure that the query retrieves data in minimum possible time. What should you do?
Exhibit
Options
- ACreate a nonclustered index on the transaction_type_id column.
- BCreate a nonclustered index on the transaction_date and transaction_type_id columns.
- CCreate a nonclustered index on the transaction_date column and include the
- DCreate a nonclustered index on the transaction_date and transaction_type_id columns and
How the community answered
(39 responses)- A8% (3)
- B15% (6)
- C3% (1)
- D74% (29)
Community Discussion
No community discussion yet for this question.
