DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: display different number of rows

  1. #1
    Join Date
    Jan 2009
    Posts
    11

    display different number of rows

    i have to list the most costly 10 locations. but if the cost of the 11th location is the same as 10th then i have to display 11 locations instead of 10. how can i do this?

  2. #2
    Join Date
    Apr 2006
    Posts
    377
    Check out DENSE_RANK.

Posting Permissions

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


Click Here to Expand Forum to Full Width