Guest User

Untitled

a guest
Jul 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. stringstream getOfflineHostsQuery;
  2. getOfflineHostsQuery << "SELECT h.id, UNIX_TIMESTAMP(rsv.created_at) AS last_contact "
  3. "FROM recentsensorvalues AS rsv "
  4. "LEFT JOIN hosts AS h ON rsv.host_id = h.id "
  5. "GROUP BY h.id "
  6. "ORDER BY rsv.created_at DESC";
Add Comment
Please, Sign In to add comment