singedpiper
08-19-2006, 06:02 PM
i need to retrieve the first and last row of a table that has unique consecutive id numbers for each row
i can get the first with "where num = 0"
what about the last... keep in mind that i don't know how many entries there are.
i'd also like this to run quickly... so retrieving all sorted descending is a last resort
i can get the first with "where num = 0"
what about the last... keep in mind that i don't know how many entries there are.
i'd also like this to run quickly... so retrieving all sorted descending is a last resort