SQL Database Creation · Module 6

Control-of-Flow Statements - Exercise Result

Self-study assessment

Control-of-Flow Statements - Exercise Result

Your pseudo-code should look something like this:

DECLARE @
UserID varchar(10)

IF @UserID is not in the database
BEGIN
 RETURN
END
ELSE
 BEGIN
  CONTINUE WITH PROCESSING HERE…
 END

Compare this historical pseudocode with your draft. It is illustrative pseudocode, not executable T-SQL.

Return to the assessment