Consider you have table Say TblEmployee with a column say EmployeeName which contain Records as A,B,A,A,B,C,B,C,Ayour task is to write a query which will change the EmployeeName A to B and B to A.
Sukesh Marla
Select an image from your device to upload
update TblEmployee set EmpName = EmpName=’A’ THEN ‘B’WHEN EmpName=’B’ THEN ‘A’ELSE EmpNameEND