the problem is
if i use identity in my sql
and then on my actual web application
when i try and filter to show 1 record for example
the indentity will be 1 and not the actual rank of the driver?
my query is actually using row_number but maybe iim not doing it right which is why i was after some help
Main Topics
Browse All Topics





by: BrandonGalderisiPosted on 2009-04-28 at 09:52:23ID: 24252641
Well if you created a view that does top 100 percent with an order in a view, it won't work. Here's an article I wrote with details on why:
/blogs/bra ndongalder isi/archiv e/ 2009/03/ 15/when-or dering-in- a-view-doe sn-t-work. aspx
http://sqlservernation.com
If you need to do ranking, then you probably should look at the build in RANK() and ROW_NUMBER() functions.