DECLARE @Number int;
SET @Number = 50;
IF @Number > 100
PRINT ‘The number is large.’;
ELSE
BEGIN
IF @Number < 10
PRINT ‘The number is small.’;
ELSE
PRINT ‘The number is medium.’;
END ;
GO
sql for everyone
DECLARE @Number int;
SET @Number = 50;
IF @Number > 100
PRINT ‘The number is large.’;
ELSE
BEGIN
IF @Number < 10
PRINT ‘The number is small.’;
ELSE
PRINT ‘The number is medium.’;
END ;
GO