Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

where are cookies actually stored on the hard disk? : Sql dba

977


How does one use sql*loader to load images, sound clips and documents? : aql loader

1119


What is mutating table error?

1118


How can you load microsoft excel data into oracle? : aql loader

1130


What is sharding in sql?

919


List the different type of joins?

1004


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3518


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

1053


how to get a list of indexes of an existing table? : Sql dba

916


How to select unique records from a table?

1003


what are all different types of collation sensitivity? : Sql dba

932


Which sql statement is used to return only different values?

954


explain the difference between delete , truncate and drop commands? : Sql dba

1020


What do you understand by pl/sql packages?

1020


what is a trigger in mysql? : Sql dba

1071