Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



if table named a is there and 4 records are there then how to swap (1 and 3) and (2 and 4) records ..

Answer / lokeshwari

select id,decode(id,'1','3','3','1','2','4','4','2') from tb11;

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

How does sql developer connect to oracle database?

0 Answers  


What is pl sql in oracle?

0 Answers  


What is java sql connection?

0 Answers  


how can you see all indexes defined for a table? : Sql dba

0 Answers  


how do you tune the slow running queries in oracle db , explain the methodology

0 Answers  


What is scalar function in sql?

0 Answers  


using cursors salesman get bonus as 10% of their salary , managers get 20% , analalist get 30%. generae a report showing the employee name, salary , bonus.

4 Answers   Fidelity,


What is indexing in sql and its types?

0 Answers  


what is a foreign key ? : Sql dba

0 Answers  


Mention what problem one might face while writing log information to a data-base table in pl/sql?

0 Answers  


Explain commit, rollback and savepoint.

0 Answers  


How do I run pl sql in sql developer?

0 Answers  


Categories