1.In a table Gender is a column in that male and female are
the two data.In a single statement i have to modify all male
to female and all female to male vice versa.
2.In a single query i need the count of male data,count of
female and total count

Answer Posted / sagar shinde

--Query for 1
update EMPLOYEE
set GENDER = decode(GENDER,'M','F','M')
/
--Query for 2
select GENDER,count(*)
from EMPLOYEE
group by GENDER

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is autocashrule set? : oracle accounts receivable

745


Explain the payment term in ar. : oracle accounts receivable

625


Explain about party and customer in ar : oracle accounts receivable

728


how to write customizations in po

1201


What is the difference between recovery and restoring of the oracle database?

666






1)After defining value set we define list of values, I need to enter 1000 values with out entering manually, how will you do that? 2)what are the parameters we use in a concurrent program? 3)what is payroll processing? 4)In organization window after defining an organization and organization classification how to create a new item in the others button? 5)If there are 10 users, How to restrict the selected users not to access the forms?

1654


IS IT POSSIBLE TO CREATE REPORTS FROM DIFFERENT UNIVERSES IN ONE DOCUMENT?

1628


can u give guidance abt packages of plsql

1648


What are the standard concurent programs for auto invoice interface and customer interfaces? : oracle accounts receivable

630


what is difference between inner join & nested query or subqueries

2488


What do you mean by Oracle MEDIA RECOVERY?

731


What view would you use to determine free space in a tablespace?

1783


What is Tax Categories?

1632


Explain the difference between $ORACLE_HOME and $ORACLE_BASE.

6749


Explain how to account for bank charges deducted from amount received against an invoice. : oracle accounts receivable

749