This question has already been answered:
- Select first entries among SQL duplicate 2 responses
Good day! My SQL table consists of columns [hardware] [state] [comment] [date] . In the equipment column devices: under the code from 1 to 50, Status column: on, off, 1 speed, 2 speed. Comment column: free text. Date column: time of the status change. Any change in the state of the device is fixed by the new record whether it is on, set at different speeds or off. The question is: how from this table to display the current latest status of all exclusively included devices?