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 do I add a database to sql?

0 Answers  


how to use in conditions? : Sql dba

0 Answers  


what is Complex index. how to create it?

2 Answers  


How do you optimize a stored procedure in sql?

0 Answers  


What packages are available to pl/sql developers?

0 Answers  


write a query to delete similar records in particular fields(columns) in different tables

6 Answers   TCS,


what is constraining table?

2 Answers  


How will you delete a particular row from a Table?

7 Answers   Cap Gemini,


How do I count records in sql?

0 Answers  


What are the return values of functions SQLCODE and SQLERRM ?

2 Answers   PreVator,


Can we change the table name in sql?

0 Answers  


Which join condition can be specified using on clause?

0 Answers  


Categories