You have a table named SALES with the following columns:

Correct Answer for the following Question is given below

You have a table named SALES with the following columns:SalesmanID | ProductsSold1 | 20002 | 40003 | 50004 | 50005 | 60006 | 60007 | 90008 | 9000You have to chose a query that will select all SalesmanIDs that have sold an amount of products within the 3 top ProductsSold values.SalesmanID, ProductsSoldFROM Sales order by ProductsSoldWITH TIESSalesmanID, ProductsSoldFROM Sales order by ProductsSoldFrom Sales where ProductsSold in (Select TOP 3 ProductsSoldFrom Sales)From Saleshttp://msdn.microsoft.com/en-us/library/ms189463.aspxSYNTAX:[TOP (expression) [PERCENT][ WITH TIES ]]WITH TIESSpecifies that additional rows be returned from the base result set with the same value in the ORDER BY columns appearing as the last of the TOP n (PERCENT) rows. TOP…WITH TIES can be specified only in SELECT statements, and only if an ORDER BY clause is specified.

Question:

You have a table named SALES with the following columns:

Options:

SELECT TOP(3) WITH TIES

SELECT TOP(30) PERCENT

SELECT SalesmanID

Select TOP (3) ProductsSold, SalesmanID

Correct Answer

The Correct Answer for this Question is

SELECT TOP(3) WITH TIES

Explanation

The Question – You have a table named SALES with the following columns: has been answered correctly and answers for the question is SELECT TOP(3) WITH TIES

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

You may also like...

Leave a Reply

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