I have a SELECT statement that, for example, returns 50 out of 100 rows in a table. Is there a way to only select the first five of those 50 results, maybe using the count function or something?
I was going to use asp to count through the recordset to five and then stop, but the means the sql is still getting 50 results, i think if it only gets five in the first place it will be quicker for the asp to just get them rather than itterating through the whole record set only to get the first five...
I was going to use asp to count through the recordset to five and then stop, but the means the sql is still getting 50 results, i think if it only gets five in the first place it will be quicker for the asp to just get them rather than itterating through the whole record set only to get the first five...