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

What is Difference between StoredProcedure and function?

3 Answers  


How can I get the number of records affected by a stored procedure?

0 Answers  


Can you select everything, but 1 or 2 fields, without writer's cramp?

0 Answers  


Is natural join and inner join same?

0 Answers  


What is nvarchar max in sql?

0 Answers  


What is sql in oracle?

0 Answers  


Which one is the Best approach to put code, among Triggers and Procedures? Explain?

1 Answers   Sierra Atlantica,


How do I add a primary key to a table?

0 Answers  


how can stop the sequence with mention the max value and with out mention the max value

1 Answers   Zensar,


What is Temp Table and type of temp table?

1 Answers   HP, SLK,


What does inner join mean?

0 Answers  


Is sqlite free?

0 Answers  


Categories