I want to swap two tuples in a table, using a single , simple query.
No SELECT query allowed, no inner queries allowed.
No PL/SQL allowed.
Do you have any idea how to do this?
e.g. my current data in a table is:
ID - INFO
--- - --------
10 - ten
20 - twenty
after executing the query, contents of table in database should be:
ID - INFO
--- - --------
20 - twenty
10 - ten
Remember, this is to be done using single simple query only.
No PL/SQL blocks.
No SELECT query allowed, no inner queries allowed.
No PL/SQL allowed.
Do you have any idea how to do this?
e.g. my current data in a table is:
ID - INFO
--- - --------
10 - ten
20 - twenty
after executing the query, contents of table in database should be:
ID - INFO
--- - --------
20 - twenty
10 - ten
Remember, this is to be done using single simple query only.
No PL/SQL blocks.
Comment