Need a better definition. Relational databases don't have any predefined ordering of rows so the definition of the "last" row is uncertain. Your rows in the table will need some field or combination of fields that can be used to determine which one is the last one.
Do you have such a field or fields?
[small]On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. (Charles Babbage)[/small]