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 / apsar

update tbl_name set (a,b) = (select b,a from tbl_name where a='Male');

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to define an oracle cursor variable?

563


How to join two tables in a single query using oracle?

564


How a tablespace is related to data files?

581


When do you get a .pll extension in oracle? Explain its importance

572


How do I spool to a csv formatted file using sqlplus?

544






How view is different from a table?

550


What is Virtual Private Database in Oracle?

616


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1358


Does oracle partitioning improve performance?

550


how can db_files > maxdatafiles since db_files is for instance and the later is for database

2173


How much memory your 10g xe server is using?

578


What are the different pseudo commands? Explain in general?

539


What is Library Cache in Oracle?

641


What is a proxy class?

557


what is reindexing?

1175