hi .
Actually i have a statement If @Stat in (20,30) i want to
to modify it as
if @Stat = 20 set Status="Rejecte d"
if @Stat = 30 set Status=" Accepted"
Can you please help me out here .
i have tried but i am getting an error...
Server: Msg 170, Level 15, State 1, Line 4
Line 4: Incorrect syntax near '='.
Server: Msg 170, Level 15, State 1, Line 5
Line 5: Incorrect syntax near '='.
thanks in advance
Actually i have a statement If @Stat in (20,30) i want to
to modify it as
if @Stat = 20 set Status="Rejecte d"
if @Stat = 30 set Status=" Accepted"
Can you please help me out here .
i have tried but i am getting an error...
Server: Msg 170, Level 15, State 1, Line 4
Line 4: Incorrect syntax near '='.
Server: Msg 170, Level 15, State 1, Line 5
Line 5: Incorrect syntax near '='.
thanks in advance
Comment