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

select Count(gender) from emp group by gender with rollup

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rownum and rowid?

578


What is the starting oracle error number? What is meant by forward declaration in functions?

551


How do you rank data in sql?

527


what is the difference between where clause and having clause? : Sql dba

545


What is an alias command?

587






What is on delete restrict?

546


Is sqlite good enough for production?

552


What is the difference between count 1 and count (*) in a sql query?

508


What does a pl/sql package consist of?

524


what are the nonstandard string types? : Sql dba

620


What is the sql case statement?

593


Is sqlite free?

548


Explain select statements in sql?

597


Is sql the best database?

513


What are the ways on commenting in a pl/sql code?

520