I want to be able to duplicate, in some fashion, what I can do in mySQL. In mySQL, I can use the LIMIT statement to grab select data from the middle of a recordset. All I know of for SQL Server is to use SELECT TOP n. However, TOP doesn't help me here.
For example: A recordset has the following uniqueIDs:
1, 5, 8, 22, 78, 79, 82, 87, 90, 91
I want to grab the middle 6. However, in real life, I won't know, unless I query the database, what any of those values are.
For example: A recordset has the following uniqueIDs:
1, 5, 8, 22, 78, 79, 82, 87, 90, 91
I want to grab the middle 6. However, in real life, I won't know, unless I query the database, what any of those values are.