Answer the question
In order to leave comments, you need to log in
How to get the maximum in time and unique in the field value?
I have a table with the following data:
INSERT INTO `dch_statistic` (`agent_name`, `id_server`, `event`, `info`, `time`) VALUES
('collector', 'mrp_server', 'error', 'crash file', '2016-09-02 11:37:30'),
('collector', 'mrp_server', 'info', 'done file', '2016-09-02 11:38:06'),
('collector2', 'mrp_server', 'info', 'done file', '2016-09-02 11:38:23'),
('collector2', 'mrp_server', 'info', 'done file', '2016-09-02 11:38:41'),
('collector2', 'mrp_server', 'error', 'error file', '2016-09-02 11:39:04');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question