MySQL Forums
Forum List  »  Newbie

have a query problem
Posted by: vishal mane
Date: June 11, 2005 03:00AM

i have a table of user information like name, country, sex

e.g.

name country sex
jon usa m
lisa malasia f
tom usa m
arnold india m
david india m
nita usa f

i need the result summary country wise and i.e

country total male female
malasia 1 0 1
india 2 2 0
usa 3 1 2
-------------------------------------------
total 6 3 3 --> this i can manage in the reports so don's bother about the total.

i have been able to get it only group by country , but separating sexes is a toil on me
can any one help?

Options: ReplyQuote


Subject
Written By
Posted
have a query problem
June 11, 2005 03:00AM
June 11, 2005 07:28AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.