if table named a is there
and 4 records are there then how to swap (1 and 3) and (2 and 4) records at a time
Answer / lokeshwari
select id,decode(id,'1','3','3','1','2','4','4','2') from tb11;
| Is This Answer Correct ? | 2 Yes | 1 No |
How do you break a loop in pl sql?
What is indexes?
What is the difference between instead of trigger and after trigger?
How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?
Why is theta join required?
Why use subqueries instead of joins?
how view used for security purposes?
what is the difference between granting and creating a view?
How to run sql*plus commands in sql developer?
What is the purpose of the primary key?
what is the bond code in materialized view?
how to debugg a procedure or package using dbms_output.put_line in plsql
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)