Rob
2006-10-06 08:04:06 UTC
ID - unique numeric ID
NAME
I want to select the row having the 2nd largest ID where the NAME equals a known value. Is there a way to do this with a SQL statement or do I need to select all rows with NAME = to my value and parse out the row I want in a loop?
I know I can order the results by ID and just loop to the 2nd result, but I'd rather have the answer returned to me with a single SQL call.