nerdexam
Microsoft

70-432 · Question #150

You are mastering the company database. During the development, you find that Transact- SQL query below is running slowly: SELECT VideoTitle, UpcNum, RetailPrice, Release Date FROM Srvideo…

The correct answer is B. You should delete the query hint from the query. See the full explanation below for the reasoning.

Question

You are mastering the company database. During the development, you find that Transact- SQL query below is running slowly:

SELECT VideoTitle, UpcNum, RetailPrice, Release Date FROM Srvideo. VideoTitle WITH (INDEX(0)) WHERE ReleaseDate BETWEEN '20050401' AND '20050510' A clustered index exists on the VideoTitle column. There is a nonclustered index on the ReleaseDate column which contains the UpcNum and RetailPrice columns. The result of the avg_fragmentation_in_percent is 30 percent, when you search the sys.dm_db_index_physical_stats dynamic management function (DMF) or the VideoTitle table, In order to find this method to solve this problem, which is the correct answer?

Options

  • AYou should reproduce the whole indexes on the VideoTitle table.
  • BYou should delete the query hint from the query.
  • CYou should alter the query hint to force the optimizer to force a unclustered index seek.
  • DYou should Re-create the index on only the ReleaseDate column.

How the community answered

(66 responses)
  • A
    3% (2)
  • B
    73% (48)
  • C
    15% (10)
  • D
    9% (6)

Community Discussion

No community discussion yet for this question.

Full 70-432 Practice