Viewing 7 posts - 1 through 7 (of 7 total)
Result is not important, but an insight on what sqlserver tries to do internally when we execute the query. How does it arrive at 2,5,7 when the first row has...
March 22, 2012 at 3:39 pm
result in @Table_D, should either be 2,5,NULL or 2,4,7 , but why is it 2,5,7
March 22, 2012 at 3:26 pm
Yep , Prasad has given you a good solution
May 16, 2006 at 11:57 pm
The best way is to follow the way explained in the link given by Frank Kails
Regards
Maths
May 12, 2005 at 3:58 am
Hey Lina,
declare @parm smallint
Select * from Table1 Where Isnull(COL,'<NULL>') = Isnull ( @parm ,'<NULL>')
Regards
Maths
May 12, 2005 at 3:42 am
One way to do it is to use cursors,
eg
Declare Cur_Var Cursor FOR
Select Id From tableA INNER JOIN tableB ON ... WHERE .... FOR Update
OPEN Cur_Var
Fetch Next From Cur_Var Into .....@SelectedID
While @@Fetch_Status = 0
Begin
UPDATE tableA...
May 12, 2005 at 3:22 am
UPDATE poz
SET tip='k'
FROM pos , juridic
pos.con = juridic .con
and juridic .dosar='p'
May 12, 2005 at 2:36 am
Viewing 7 posts - 1 through 7 (of 7 total)