Viewing 8 posts - 1 through 9 (of 9 total)
This is what worked for me:-
SELECT cc.cn
, sum(a.visits) as total_visits
FROM (
SELECT hostname
, COUNT( DISTINCT...
June 23, 2013 at 1:25 pm
Hi Livingston,
Thank you for your reply.
This is what I made uptill now:-
SELECT cc.cn
, a.visits
FROM (
SELECT hostname
...
June 23, 2013 at 11:19 am
Thanks a lot Livingston,
I changed your query to
SELECT uid, hostname, COUNT(DISTINCT timestamp) AS visits
FROM mslop_login_activity
GROUP BY uid, hostname
ORDER BY uid, hostname
It gave...
June 23, 2013 at 9:06 am
Hi Luis,
I changed the country tables for better Indexing and wrote the completely new posts and what I tried here :-
http://www.sqlservercentral.com/Forums/Topic1466508-391-1.aspx
I will be very very very very thankful if you...
June 23, 2013 at 7:50 am
Hi,
I really appreciate your assistance. I am using MySQL with PHP.
SELECT cn As 'Country Visited', count(0) AS 'No. of Times'
FROM mslop_login_activity a
INNER JOIN ip ON ( INET_ATON(a.hostname) BETWEEN START AND...
June 23, 2013 at 6:49 am
Hi Luis,
Sorry it showed wrong results.
All I want is to see total visits for each country; how many visits have been made per country.
Country ...
June 21, 2013 at 4:41 pm
Thank you very much Luis.
There is a slight problem, the query gives
#1054 - Unknown column 'a.hostname' in 'on clause'
Do you have an idea, what could be the problem?
Should I...
June 21, 2013 at 4:29 pm
Thank you very much Luis,
The query does work but it shows wrong results for the IP.
For example, it shows me wrong country for the provided IP.
Lets say if I say...
June 21, 2013 at 4:03 pm
Viewing 8 posts - 1 through 9 (of 9 total)