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
What is materialized view in Oracle?
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...
why dont we assign not null constraint as table level constraint.
What is the difference between sharding and partitioning?
Explain oracle’s server parameter file.
Can we write dml statement in function in oracle?
What is partitioned table in Oracle?
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
How to use an explicit cursor without open statements?
How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?
What privilege is needed for a user to delete rows from tables in another schema?
How do I know if oracle client is installed on windows?
How to create a new oracle data file?
What is oracle latest version?
Explain overloading. Can functions be overloaded?