I am trying to get the max(timestamp) and min(timestamp) for every grouped data but it is only showing the max and min for the whole table. The following SQL works fine in PHPMyAdmin using MySQL, however I need to get the same results using CR-XI.
MySQL:
MySQL:
Code:
select file_id, max(timestamp), min(timestamp)
from 360_status_log
group by file_id
order by file_id