• isnull function select the 1 whn @var is null or first time , second time @var=2 , n third time it will 3 n next so ans is 5

    but in @var=1+value1

    the @var1 is always 1

    so ans is 3