Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2011
    Posts
    21

    Unanswered: simple query really

    hi

    i have a table which contains postcode information the fields are:

    Postcode
    postcode_area
    franchise_no

    what would be the query to find out how many postcodes the franchises operate, i can provide sample data if it is any help, i assume i use 'count'?

    also i need to produce a report with this information in navicat, any tips?

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Code:
    SELECT franchise_no
         , COUNT(*)
      FROM daTable
    GROUP
        BY franchise_no
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Apr 2011
    Posts
    21
    thanks again r937!!!!

Posting Permissions

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