1.

Which of the following two Transact-SQL statements are commonly used with WHILE?(a) BREAK and CONTINUE(b) BREAK and IF(c) IF and ELSE(d) All of the mentionedThis question was addressed to me in homework.Question is taken from Procedural Flow topic in section Developing with SQL Server of SQL Server

Answer» CORRECT option is (a) BREAK and CONTINUE

Easiest explanation: The BREAK STATEMENT exits the INNERMOST WHILE LOOP and the CONTINUE statement restarts a WHILE loop.


Discussion

No Comment Found

Related InterviewSolutions