Which WHILE statement should you use at line 18?

Correct Answer for the following Question is given below

You execute IndexManagement.sql and you receive the following error message:”Msg 512, Level 16, State 1, Line 12Subquery returned more than 1 value. This is not permitted when the subquery follows =,! =, <, <= ,>, > = or when the subquery is used as an expression.”You need to ensure that IndexManagement.sql executes properly.Which WHILE statement should you use at line 18?

Question:

Which WHILE statement should you use at line 18?

Options:

WHILE SUM(@RowNumber) < (SELECT @counter FROM @indextable)

WHILE @counter < (SELECT COUNT(RowNumber) FROM @indextable)

WHILE COUNT(@RowNumber) < (SELECT @counter FROM @indextable)

WHILE @counter < (SELECT SUM(RowNumber) FROM @indextabie)

Correct Answer

The Correct Answer for this Question is

WHILE @counter < (SELECT COUNT(RowNumber) FROM @indextable)

Explanation

The Question – Which WHILE statement should you use at line 18? has been answered correctly and answers for the question is WHILE @counter < (SELECT COUNT(RowNumber) FROM @indextable)

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

Leave a Comment