SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    trip ket's Avatar
    Join Date
    Feb 2004
    Location
    Portugal
    Posts
    327
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    query to count and order alphabetically

    howdy,

    need a help with an exercise, i've been trying but with no success so far.

    1 BD with 2 tables: continents, and countries

    continents has id_cont, name_cont, pop_cont, area_cont, dens_cont;

    countries has id_country, name_contry, pop_coutry, area_country, desn_pop_country, and id_cont;

    need a few queries:
    1 - list of countries and respective continents, ordered alphabetically by continent and afterwards by country;
    2 - average population of europe (pop_count)
    3 - count how many countries has each continente, ordered from the biggest to smallest

    any help would be much appreciated. i know the theory but can't put it to practice... :\
    oi!

  2. #2
    trip ket's Avatar
    Join Date
    Feb 2004
    Location
    Portugal
    Posts
    327
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi r937, i know you are out there ehehehe
    oi!

  3. #3
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,220
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    sorry, i don't do homework assignments

    do a search for mysql world database -- lots of sample queries lying around on teh interwebs
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  4. #4
    trip ket's Avatar
    Join Date
    Feb 2004
    Location
    Portugal
    Posts
    327
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ehehe, not a homework but thanks for the help
    oi!


Bookmarks

Posting Permissions

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