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
How to check if a column is nullable before setting to nullable?
What is bulk compiling in pl/sql.?
How many row comparison operators are used while working with a subquery?
what is the use of double ampersand (&&) in sql queries?
What is a database trigger?
What does (*) mean in sql?
What is sql profiling in oracle?
what is the difference between sql and t-sql? : Transact sql
What are analytic functions in sql?
Is left join faster than join?
How to disable a trigger name update_salary?
Is the primary key an index?
What is a .db file?
what is an extent ? : Sql dba
What is dense_rank in sql?