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

select count(case gender when 'male' then 1 end) Male,
count(case gender when 'female' then 1 end) Female from emp1

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does sign mean sql?

1183


What is forward declaration in pl sql?

1141


How do I view tables in sql developer?

1009


Why coalesce is used in sql?

1069


What is the difference between cross join and natural join?

1068


What does pl sql stand for?

1156


Is crud a cuss word?

1074


What happens when a trigger is associated to a view?

973


What is data type in sql?

1006


What is the usage of sql functions?

1206


What is the use of count (*) in sql?

1119


Can you load data into multiple tables at once? : aql loader

1120


How do I create a sql script?

1143


What is not null in sql?

1109


Differentiate between % rowtype and type record.

1396