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 company owns postgresql?
Write a sql query to convert all character to uppercase after hypen.
What is a file delimiter?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
What is package in pl sql with an examples?
Explain the difference between rename and alias?
What are the types of variable use in pl sql?
How to read/write files from pl/sql?
Does truncate table reset auto increment?
What is varchar example?
Can I create table without primary key?
What is clustered index sql?
Compare sql & pl/sql
What are all the different normalizations?
What is the sql case statement?