N
naveen prasad
Hi,
pls help me here
table t1 has 3 fields, and data is as below
name , grade , marks
n1 a 10
n2 b 20
n3 c 30
n4 a 30
n5 c 10
n6 n7 40
now i want an update query where 2 names should be swapped.
like n1 is updated as n2, and n2 updated as n1.
i tried to put update query, but problem is
if n1= n2 then we have 2 n2's in the table then again n2=n1 tried
then we have 2 n1's ,
i want both names should be interchanged,
any help
pls help me here
table t1 has 3 fields, and data is as below
name , grade , marks
n1 a 10
n2 b 20
n3 c 30
n4 a 30
n5 c 10
n6 n7 40
now i want an update query where 2 names should be swapped.
like n1 is updated as n2, and n2 updated as n1.
i tried to put update query, but problem is
if n1= n2 then we have 2 n2's in the table then again n2=n1 tried
then we have 2 n1's ,
i want both names should be interchanged,
any help