nerdexam
Microsoft

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

70-451 question #42 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)
  • A
    8% (3)
  • B
    15% (6)
  • C
    3% (1)
  • D
    74% (29)

Community Discussion

No community discussion yet for this question.

Full 70-451 Practice