works great denny,

i have used 2 separate queries...

<cfquery name="getGirls" datasource="#Request.app.dsn#" 
password="#Request.app.DBpassword#" username="#Request.app.DBusername#">
SELECT DISTINCT name_girl AS name, COUNT(name_girl) AS entries
FROM baby_names
GROUP BY name_girl
ORDER BY entries DESC, name_girl
</cfquery>

<cfquery name="getBoys" datasource="#Request.app.dsn#" 
password="#Request.app.DBpassword#" username="#Request.app.DBusername#">
SELECT DISTINCT name_boy AS name, COUNT(name_boy) AS entries
FROM baby_names
GROUP BY name_boy
ORDER BY entries DESC, name_boy
</cfquery>

cheers
mike

>thanks denny,
>
>a little over my head but i will give them a go - haha.
>
>thanks heaps.
>
>mike
>
>
>>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244512
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to