Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Posts
    3

    Unanswered: How to get last second row in a table..?

    thanks in advance

  2. #2
    Join Date
    Apr 2005
    Posts
    40
    used the order by desc by the key field, and take top 2 from that, and you will have the bottom two. From there, repeat, to get 2nd bottom

  3. #3
    Join Date
    Apr 2005
    Posts
    40
    ...and/or use the RANK function.

  4. #4
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by log4me@ymail.com View Post
    How to get last second row in a table..?
    the rows in a table have no sequence, so "second last" makes no sense
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •