how to swap two values in the same column using UPDATE?
greddyJan 24 2011 — edited Jan 24 2011Hi All,
I have a table called TEST and it has one column called A.
and A has values like the following
A
------
10
20
30
40
50
My question is how to move "10" to the place of "20" and "20" to the place of "10" in the column A? this swapping is only for the first two values(i.e., 10, 20)
Note: It should be done only in SQL, not in PLSQL.
Any advice?
Thanks in advance?