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 I add a database to sql?
how to use in conditions? : Sql dba
what is Complex index. how to create it?
How do you optimize a stored procedure in sql?
What packages are available to pl/sql developers?
write a query to delete similar records in particular fields(columns) in different tables
what is constraining table?
How will you delete a particular row from a Table?
How do I count records in sql?
What are the return values of functions SQLCODE and SQLERRM ?
Can we change the table name in sql?
Which join condition can be specified using on clause?
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)