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

Interchange the value of a column Gender in a table where
values are Male and Female. So, where the value is Male, it
should changed to Female and Female to Male.

Answer Posted / sushma s

Update table_name
Set gender = decode(gender,'M','F','M');

Is This Answer Correct ?    8 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are properties of a transaction? : Sql dba

1019


Can pl sql procedure have a return statement?

961


How many types of triggers exist in pl/sql?

1011


Is it mandatory for the primary key to be given a value when a new record is inserted?

1140


How do I run pl sql in sql developer?

1063


What are schema-level triggers?

1047


What is the difference between view and stored procedure?

913


How many types of normalization are there?

901


What is bind variable in pl sql?

980


Is primary key clustered or nonclustered?

954


How does index help in query performance?

969


What are the 3 types of behavioral triggers?

1184


Explain polymorphism in pl/sql.

1059


What are conditional predicates?

990


What is sqlerrm?

883