Connections

connections
SELECT s.id, e.user_id, c.Cliente, e.date_time login, is_new, s.lastUpdate last_activity, a.platform, a.browser, a.version, u.name user FROM userSession s JOIN visit_user e ON s.userVisit = e.id JOIN visit_access c ON e.access_id = c.id JOIN visit_agent a ON c.agent_id = a.id JOIN visit v ON a.visit_id = v.id JOIN account.user u ON e.user_id = u.id JOIN vn2008.Clientes c ON e.user_id = c.Id_cliente ORDER BY last_activity DESC

-

-