1.

Which of the following scenario makes use of BEGIN..END keyword redundant?(a) when an IF statement controls the execution of multiple Transact-SQL statement(b) when an IF statement controls the execution of only one Transact-SQL statement(c) when an IF statement controls the execution of one or more Transact-SQL statement(d) none of the mentionedThis question was addressed to me in quiz.Enquiry is from Procedural Flow topic in division Developing with SQL Server of SQL Server

Answer»

The correct ANSWER is (b) when an IF statement CONTROLS the execution of only ONE Transact-SQL statement

The explanation is: Use the BEGIN and END statements anywhere a control-of-flow statement must execute a BLOCK of two or more Transact-SQL statements.



Discussion

No Comment Found

Related InterviewSolutions