View Single Post

   
  #1 (permalink)  
Old 02-28-2008, 10:44 AM
lister
 
Posts: n/a
Default Simple newbie COUNT question

How do I get the results of a SELECT, and count the results at the
same time?

I've tried:

SELECT productname, COUNT(*) AS cnt from URL

but this gives:
Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP
columns is illegal if there is no GROUP BY clause

Help!

Reply With Quote