There is a table - "Tests", stores information about the devices under test:
CREATE TABLE Tests ( Test_id int NOT NULL, Test_Start_Date DATETIME NOT NULL, Device_Name VARCHAR(45) NOT NULL, ); In Device_Name (Number of the device under test) the values are repeated (the device can be tested several times).
It is necessary to sort so as to leave only the unique device numbers with the maximum date.
Example:
The request should output:
I tried the query:
SELECT Device_Name, MAX(Test_Start_Date) FROM Tests group by Device_Name but he showed:


