Adding inner join.
This commit is contained in:
parent
e4157ace4f
commit
4fec83a864
@ -88,9 +88,8 @@ SELECT paths.path,
|
||||
$SELECT_GLOBAL
|
||||
where requests.path = paths.path and date > NOW() - interval '1 month'
|
||||
) as unique_ips_last_month
|
||||
FROM paths;
|
||||
|
||||
|
||||
FROM paths INNER JOIN requests on paths.path = requests.path
|
||||
WHERE requests.date > NOW() - interval '1 month';
|
||||
EOF
|
||||
return $data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user