how to achieve this problem?i am having table with two
colums like empno,gender.
in gender column, i am having records male,female like that
.my final output will be
male female
5 6

Answer Posted / sudeep ranjan

select gender,count(gender)as gender_count from emp group
by gender;

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a tablespace? : Sql dba

560


How does sql developer connect to oracle database?

516


What is recursive join in sql?

544


What is server name sql?

585


What are all different types of collation sensitivity?

523






How to add a column ‘salary’ to a table employee_details?

583


how to select first 5 records from a table? : Sql dba

507


Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

804


Does sql profiler affect performance?

551


What is the difference between python and sql?

519


What does trigger mean in slang?

521


What is the difference between inner join and outer join?

526


Difference between global and parameter variables?

1450


Explain correlated query work?

589


What is a table?

565