In my table I have looked manually and found that the top three idle units have been idle for 17, 13 and 13 days. When I use this SQL statement to try and pull the three rows with the highest idle column value, I don't get these numbers, I get 8, 7 and 7. Is there some other command I should use to grab the first 3 rows of a sorted resultset?
SELECT * FROM reporttables.idlereport WHERE LEFT(depot,3)='Roc' ORDER BY idle DESC LIMIT 3
Can anyone help me figure out what is wrong with this statement