T-SQL for "Last n records" in a table

  • What's an easy way to do

    "select bottom 5 * from..."

    to see the last 5 records in a table?

    Of course, the use of bottom isn't valid T-SQL(though, in it's place, TOP is)

    TIA,

    Bill

  • sort the table in the descending order by using " DESC" keyword and do a select TOP 5

  • way to obvious an answer. I wish I'd thought of it.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply