Tables in a relational database do not have any inherent ordering of records so the term "last three" has meaning only in respect of some some particular ordering that you define for the table. The usual way is something like
Code:
Select TOP 3 fld1, fld2, fld3, ...
From tbl
Order By fld1, fld2;
and you specify the Order By clause to bring the three records that you want to the top of the list.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.