|
-
Mar 20th, 2002, 12:33 PM
#1
Thread Starter
Hyperactive Member
ASP hit count?
SELECT Count(Tracking.IP) AS CountOfIP, DatePart("m",[date]) & "-" & DatePart("d",[date]) & "-" & DatePart("yyyy",[date]) AS Expr1
FROM Tracking
GROUP BY DatePart("m",[date]) & "-" & DatePart("d",[date]) & "-" & DatePart("yyyy",[date]);
The above SQL statement works fine for what I am trying to except I only want to count unique IP addresses for each day.
Unique won't work because each record is already unique. Any ideas?
-
Mar 20th, 2002, 12:42 PM
#2
Black Cat
Code:
SELECT DISTINCT(IPAddress), COUNT(IpAddress)
FROM Table
GROUP BY IpAddress
should get unique values from one field.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Mar 20th, 2002, 01:32 PM
#3
Thread Starter
Hyperactive Member
Doesn't seem to work either...
-
Mar 20th, 2002, 05:02 PM
#4
Thread Starter
Hyperactive Member
No one has any ideas on this one?? It can't be that hard.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|