I am trying to retrieve the first 5 and the last 5 records of a table together. How do I specify the where conditions??
I can retrieve the first 5 records using "rowcount". But using the same query , how do I retrieve the last 5 records also?
The concept of 'first' and 'last' records does not apply to relational database servers, because data are not stored in an ordonated fashion, like in FoxPro. Depending on the ORDER BY clause, 'first' and 'last' records may be different.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.