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
What are the advantages of indexing?
What are stuff and replace function?
What is the difference between inner join and left join?
What pl/sql package consists of?
What are the different ddl commands in sql?
How can we avoid duplicating records in a query?
Why select is used in sql?
What is a trigger in sql?
what are myisam tables? : Sql dba
what is data control language? : Sql dba
What is primary key and foreign key?
How many postgresql users are there, worldwide?
Does pdo prevent sql injection?
Which version of sql do I have?
How delete all records from table in sql?