Private
Public Access
1
0
This commit is contained in:
2023-05-07 00:01:00 -07:00
parent dfaaf397fa
commit 18185090d1
23 changed files with 3305 additions and 0 deletions

7
query.sql Normal file
View File

@@ -0,0 +1,7 @@
-- name: GetZoneStatsData :many
SELECT zc.date, z.name, zc.ip_version, count_active, count_registered, netspeed_active
FROM zone_server_counts zc USE INDEX (date_idx)
INNER JOIN zones z
ON(zc.zone_id=z.id)
WHERE date IN (SELECT max(date) from zone_server_counts)
ORDER BY name;