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 |
What is Difference between StoredProcedure and function?
How can I get the number of records affected by a stored procedure?
Can you select everything, but 1 or 2 fields, without writer's cramp?
Is natural join and inner join same?
What is nvarchar max in sql?
What is sql in oracle?
Which one is the Best approach to put code, among Triggers and Procedures? Explain?
How do I add a primary key to a table?
how can stop the sequence with mention the max value and with out mention the max value
What is Temp Table and type of temp table?
What does inner join mean?
Is sqlite free?
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)