You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// $query = "SELECT t.type, e.data, count(e.data) as count FROM `deviceEntries` as e INNER JOIN `entryTypes` as t on e.type = t.id WHERE t.type = \"".$typeName."\" GROUP BY data ORDER BY COUNT DESC LIMIT 100";
$query = "SELECT
t.type, e.data, count(e.data) as count
FROM `deviceEntries` as e
INNER JOIN `entryTypes` as t on e.type = t.id
INNER JOIN `devices` as d on d.id = e.device
WHERE t.type = \"".$typeName."\" AND d.project = ".$projectId."