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 / hitendra yadav
--Try this
UPDATE Eptbl
SET Sex= CASE WHEN SEX='Male'
THEN 'Female'
ELSE 'Male'
END;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to bring a tablespace offline?
How would you best determine why your MVIEW couldnt FAST REFRESH?
What is the meaning of recursive hints in oracle?
How to increment dates by 1 in oracle?
Can the query output be sorted by multiple columns in oracle?
Explain the use of online redo log files in oracle.
How are extents allocated to a segment?
Explain overloading. Can functions be overloaded?
What is meant by a deadlock situation?
Explain what are synonyms used for?
What is the relation of a user account and a schema?
What is the difference between formal parameters and actual parameters?
How do I know if oracle is installed on windows?
Please explain joins in oracle?
Will you be able to store pictures in the database?