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

2.
select gender, count(*)
from employee
group by gender
union
select 'total' as gender, count(*)
from employee

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the Difference between the Person_Type_id column in the per_all_people_f and per_person_type_usages_f

3988


What is auto invoicing? : oracle accounts receivable

658


What is the importance of batch source set up in ar? : oracle accounts receivable

716


which one is currently in used software cmpanies.

1661


What do you mean by Oracle MEDIA RECOVERY?

725






What is the sql query to find the employee who has Nth maximum salary?

4287


What are the different tools available for hot backups in Oracle? Is it preferable to take it manually all the time or it depends on the size of the database?

701


Could you please let me know the interfaces in OM / FA??

1735


How to move the data from one flatfile to multiple staging tables?give me some examples? for example in po interface one flat file is there and multiple staging tables are there how can move it?please give me answer for this question?

1920


What is an Oracle database Partial Backup?

695


I would like to study certification course in Data base adminidtrator then where would i go to study this course?

1727


What is the technical flow associated with P2P or Procure to Pay cycle like the tables, APIs, concurrent programs involved in this cycle. Only technical please.

3336


what are all the conversion and interfaces in GL,AP,AR,HRMS with example? otherwise send send link for these

1630


What is the disk migration? what is the steps involved in oracle disk migration?

719


How many segment are present in Oracle Manufacturing

1807