2
I don’t think my title corresponds to doubt.
The application I develop inserts once a month, data referring to the last backup in a table. This table contains the backup instance code, the input data and the number of bytes.
The problem is that I do not know a command or way to make SQL a SELECT that brings only the last results of each backup.
Tenho isso
backup bytes data
'x' 30 '21/12/14'
'x2' 1200 '14/10/14'
'x2' 3500 '14/12/14'
'x2' 4800 '14/01/15'
Mas preciso somente dos últimos
backup bytes data
'x' 30 '21/12/14'
'x2' 4800 '14/01/15'
I am noted in SQL, but any information is already of great value.
Your solution worked perfectly, thank you very much! :D
– VitorLuizC
@Haxz this solution would only work if
bytes
was part of the primary key which makes no sense.– Clodoaldo Neto