I have a MySQL table with the following data (sample);
UserId - DeviceId - StartDate - EndDate
------------------------------------------------------
1001 D119822 11/27/2011 12/02/2011
1001 D198726 11/27/2011 12/02/2011
1001 D552833 11/27/2011 12/02/2011
1001 D980993 11/27/2011 12/02/2011
I was looking for some thing row_numor ordinal_position, but did not find anything. How can I get the last record from the above table without adding a serial / auto increment column?
source
share