Hi, I am trying to establish a QofQ to determine the following:
I need to know how many people live in any given state (30 in California, 10 in Arizona...) The data will eventually populate a cfchart. my first query is as follows: <cfquery name="initial" datasource="#DSN#" SELECT id, state FROM users </cfquery> This gives me a result of about 100 rows (each user's state) Im having troube formulating the second query. This is what I have so far <cfquery dbtype="query" name="final"> SELECT * FROM initial, users WHERE id = users.id AND state = users.state </cfquery> But logically they are idential in nature...Im missing something. Can anybody please point me in the right direction. I need to sum up every instance of a state and return that as a number? Any help is appreciated!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311166 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

