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...

One Table having two rows with one colomn having values
Like"Male" and "Female". how to upadte these values
Like "Female" and "Male" in single update statement.

Answer Posted / apsar

update tbl_name set (a,b) = (select b,a from tbl_name where a='Male');

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a parameter be passed to a cursor?

1100


What happens to the current transaction if the session is ended?

1082


How do I limit the number of rows returned by an oracle query after ordering?

1143


interview questions with answer for cts

2568


How do we display rows from the table without duplicates?

953


Explain the use of parfile option in exp command.

1048


How to get execution path reports on query statements?

964


What is a data lock in oracle?

1077


How to export data with a field delimiter?

1019


What happens to the current transaction if a ddl statement is executed?

992


How index is implemented in oracle database?

980


Where are the settings stored for each instance in oracle?

1092


Explain the truncate in oracle?

944


What are the differences between number and binary_float in oracle?

1089


Can we create trigger on materialized view in oracle?

965