Leaving the query as it is.
This commit is contained in:
parent
4fec83a864
commit
ca3a8d4fce
@ -63,8 +63,6 @@ SELECT
|
||||
$SELECT_GLOBAL
|
||||
where date > NOW() - interval '1 month'
|
||||
) as unique_ips_last_month;
|
||||
|
||||
|
||||
EOF
|
||||
return $data;
|
||||
}
|
||||
@ -88,8 +86,7 @@ SELECT paths.path,
|
||||
$SELECT_GLOBAL
|
||||
where requests.path = paths.path and date > NOW() - interval '1 month'
|
||||
) as unique_ips_last_month
|
||||
FROM paths INNER JOIN requests on paths.path = requests.path
|
||||
WHERE requests.date > NOW() - interval '1 month';
|
||||
FROM paths;
|
||||
EOF
|
||||
return $data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user