teksecrets
MIS
Hello!
I'm in the process of analyzing some log files and need help trying to figure out how to create my SELECT statement to show how many records each user has in the table and whether they've accessed a certain URL/file.
My current Select Statement is:
SELECT username, office, date, COUNT (username) AS times_accessed, URL
FROM tbl
GROUP BY username, office, date, URL.
This shows username by date and gives a count of how many times accessed for a particular day.
I'd like to total up the number of times accessed for the following URL ... /Projects/flowchart.ppt.
How can I create a SELECT statement to ONLY show the username and office ONCE and then total up the number of times accessed for the URL?
Any help would be appreciated! Thanks.