SQL ?: Counting number of times for this

2002-02-10 Thread Paul Sinclair
I'm preparing a simple homebrewed site statistics report for a client. I need to send a cfmail each night showing the top pages viewed in various areas of the site. I'm stumped on how to get the info I need from the db. The table involved is a simple 5 column table. I just need to do a sql

RE: SQL ?: Counting number of times for this

2002-02-10 Thread Ian Lurie
something, but this should do it... -Original Message- From: Paul Sinclair [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 1:39 PM To: CF-Talk Subject: SQL ?: Counting number of times for this I'm preparing a simple homebrewed site statistics report for a client. I need to send

RE: SQL ?: Counting number of times for this

2002-02-10 Thread Paul Sinclair
with Maxrows = the number of pages you want to show: COUNTER: TITLE COUNTER: TITLE Etc. I may be missing something, but this should do it... -Original Message- From: Paul Sinclair [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 1:39 PM To: CF-Talk Subject: SQL ?: Counting number

RE: SQL ?: Counting number of times for this

2002-02-10 Thread Ian Lurie
(searches.city))5)) ORDER BY count([city]) DESC; Ian -Original Message- From: Paul Sinclair [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 2:32 PM To: CF-Talk Subject: RE: SQL ?: Counting number of times for this Ian, I'm sorry - I don't know what you mean. What is COUNTER and TITLE

RE: SQL ?: Counting number of times for this

2002-02-10 Thread Paul Sinclair
; Ian -Original Message- From: Paul Sinclair [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 2:32 PM To: CF-Talk Subject: RE: SQL ?: Counting number of times for this Ian, I'm sorry - I don't know what you mean. What is COUNTER and TITLE? I'm assuming you're meaning

Re: SQL ?: Counting number of times for this

2002-02-10 Thread Jim McAtee
BY script_name ORDER BY Count(script_name) DESC Jim - Original Message - From: Paul Sinclair [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 10, 2002 7:36 PM Subject: RE: SQL ?: Counting number of times for this Ian, It is a pretty straightforward table in an MSSQL

Re: SQL ?: Counting number of times for this

2002-02-10 Thread Paul Sinclair
(begindate)# AND #CreateODBCDate(enddate)# GROUP BY script_name ORDER BY Count(script_name) DESC Jim - Original Message - From: Paul Sinclair [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 10, 2002 7:36 PM Subject: RE: SQL ?: Counting number of times