Which item should you add to the Salary column?

You have the following SQL query SELECT * FROM dbo.ProAthlete WHERE Salary > 500000 The query
takes too much time to return data. You need to improve the performance of the query. Which item
should you add to the Salary column?

You have the following SQL query SELECT * FROM dbo.ProAthlete WHERE Salary > 500000 The query
takes too much time to return data. You need to improve the performance of the query. Which item
should you add to the Salary column?

A.
Non-null constraint

B.
Default constraint

C.
Index

D.
Foreign key



Leave a Reply 10

Your email address will not be published. Required fields are marked *


Mostafa Ramadan

Mostafa Ramadan

C.
Index

Mart

Mart

is the answer really C?

rob

rob

yeap it is 🙂

HAyfa

HAyfa

Correct Answer is 1.Primary Key, 2. Foreign Key

HAyfa

HAyfa

Sorry this is wrong answer

HAyfa

HAyfa

this is the answer of question 129

Nate

Nate

HAyfa, while it is true that it’s the answer of question 129, question 129 is also an Index. In that case, StateId is a clustered index, which is why the answer is primary key (Since Primary Keys auto-generate a clustered index in SQL Server 2008+).

In summary, index is the most correct answer. I’ve got an MCSE in Windows Server, so get used to looking for the ‘most correct answer’ in problems like these; they seem to love throwing ‘gotcha’ answers at us.

RT

RT

How am I supposed to know there is a StateId column?

Borik

Borik

Correct Answer is C

kim

kim

Are these actual questions on the Exam? Help a girl out!