DECLARE @Scrap_Qty int DECLARE @FilledQty int SET @Scrap_Qty=10 --Change this to 1 and it still Shows Same O/P SET @FilledQty = 2 BEGIN IF @Scrap_Qty > @FilledQty declare @currDate varchar(10) Set @currDate= Convert(VARCHAR(10),GetDate(),103) PRINT @currDate END
07/06/2013
Begin
End
IF @Scrap_Qty > @FilledQty declare @currDate varchar(10) Set @currDate= Convert(VARCHAR(10),GetDate(),103) PRINT @currDate
If 1>2 Declare @A Int=2 --This is Declaring +Assigning so this is Executable StmtPrint 1Print @A
1
IF (@Scrap_Qty > @FilledQty) print 'y'
if 1 > 2 declare @a int print 'print #1'print 'print #2'select @a = 3print @agoif 2 > 1 declare @b int print 'print #3'print 'print #4'go
print #1print #23print #3print #4
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)