SidTheSquid
Programmer
Hi, I have a table with a list of pages (from a web traffic log) and I wish to create an sql statement that list the percentage that a certain page was hit.
I wish to display something like this
Page Hits Percentage
------------------------------------
default.aspx 100 66
frmtest1.aspx 25 16
List.aspx 25 16
I know the first part which is:
Select Page, count(page_name) as Hits from myTable group by Page
But I'm having trouble getting the percentage.
Anybody out there that can help me, that would be great.
Thanks
Sid
I wish to display something like this
Page Hits Percentage
------------------------------------
default.aspx 100 66
frmtest1.aspx 25 16
List.aspx 25 16
I know the first part which is:
Select Page, count(page_name) as Hits from myTable group by Page
But I'm having trouble getting the percentage.
Anybody out there that can help me, that would be great.
Thanks
Sid