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

How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

577


Who developed sql?

563


what is isam? : Sql dba

568


Is full outer join same as cross join?

497


What is bulk compiling in pl/sql.?

603






What is snowflake sql?

574


Name three sql operations that perform a sort.

580


What is bind variable in pl sql?

520


What is index example?

547


How to Declare Fixed Length String Value In PL SQL

657


how to convert numeric values to character strings? : Sql dba

564


How to use sql statements in pl/sql?

576


When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?

621


What is data abstraction in sql?

504


What is 19 null in sql?

526