Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2012
    Posts
    1

    Unanswered: problem with query

    I've 3 tables:

    Table 1: ID Name Sex


    Table2: ID City Country


    Table3: City inhabitants


    How can I count the inhabitants of a city of Sex?

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    you would use COUNT(*) and GROUP BY
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •