Help for this page

Select Code to Download


  1. or download this
    SELECT tablea.id, COUNT(*) FROM tablea, tableb
      WHERE tablea.foo = tableb.bar
      GROUP BY tablea.id
    
  2. or download this
    SELECT tablea.id1, tablea.id2, COUNT(*) FROM ...
      ...
      GROUP BY id1, id2