Well, you have a couple of problems. The first is that you're missing a
comma: (inserted after stvcnty_desc). The second problem that you'll find is
that you're not grouping by county, which you need to do if you're grouping
by stvcnty_desc and counting fcount.
select stvcnty_desc, county, count(*) fcount
from STUDENTS
group by stvcnty_desc, county
ORDER BY county


Also, I noticed that you're not including a dsn/password/username in the
cfquery tag. I'm assuming you left those out for security, but you will need
them.

-d



Deanna Schneider
Interactive Media Developer
[EMAIL PROTECTED]




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to