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
what is cursor. write example of it. What are the attributes of cursor.
What is trigger in pl sql?
Why are indexes and views important to an organization?
what is 'mysqlshow'? : Sql dba
Does truncate free space?
What is data profiling in sql?
Which tcp/ip port does sql server run?
How to get list of all tables from a database?
How do I partition a table in sql?
Why triggers are used?
How to get help at the sql prompt?
What is an example of translating a date into julian format?
how to create a test table in your mysql server? : Sql dba
What is data control language?
Which are sql * plus commands?