Welcome Guest, Not a member yet? Register   Sign In
Help with SELECT statement
#7

[eluser]bgreene[/eluser]
it doesen't 8=) and probably doesn't need to. the data should all be in the downtime table. to check the downtime for a specific device just do a "select x,y,z, sum(timedown) from etc where device_id = 'the deviceid to check' group by device_id".
the "sum" function requires "group by". you can also omit the "where" and get a listing for all devices but then add eg "order by devicename" or whatever so it looks nice


Messages In This Thread
Help with SELECT statement - by El Forum - 07-27-2009, 09:25 AM
Help with SELECT statement - by El Forum - 07-27-2009, 09:43 AM
Help with SELECT statement - by El Forum - 07-27-2009, 09:47 AM
Help with SELECT statement - by El Forum - 07-27-2009, 11:14 AM
Help with SELECT statement - by El Forum - 07-29-2009, 08:13 AM
Help with SELECT statement - by El Forum - 08-05-2009, 09:07 AM
Help with SELECT statement - by El Forum - 08-05-2009, 09:25 AM
Help with SELECT statement - by El Forum - 08-05-2009, 09:31 AM
Help with SELECT statement - by El Forum - 08-05-2009, 09:59 AM
Help with SELECT statement - by El Forum - 08-05-2009, 10:19 AM
Help with SELECT statement - by El Forum - 08-05-2009, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB