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 / murali mohan

Try this,


update testsamp1 set c=decode
(c,'MALE','FEMALE','FEMALE','MALE');


Regards,
Murali

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to revoke create session privilege from a user in oracle?

555


Can a parameter be passed to a cursor?

598


How many types of synonyms in Oracle?

591


What are group functions in oracle?

581


What privilege is needed for a user to create views in oracle?

587






What is the database name in oracle?

533


What are the differences between blob and clob in oracle?

580


How to export your connection information to a file?

592


What is an external table?

586


How to define an anonymous procedure without variables?

545


Explain what are the uses of rollback segment?

580


What is Data Dictionary Cache in Oracle?

657


What is an oracle wallet?

508


What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?

1521


What are the most common interview questions on ETL Testing for experience?

589