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 the properties of a transaction?

560


Can I learn sql in a week?

551


What is mdf ldf and ndf?

561


What are the types of triggers in sql?

497


What is sql key?

517






How can a pl sql block be executed?

529


What is function and procedure in pl sql?

521


What is pragma in pl sql?

599


Why is sql important?

577


how are mysql timestamps seen to a user? : Sql dba

563


How does one use sql*loader to load images, sound clips and documents? : aql loader

669


What is the starting oracle error number?

565


How to create your own reports in sql developer?

540


What is the use of procedures?

543


Is sql database free?

527