Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select last 20 records 1

Status
Not open for further replies.

brownfox

Programmer
Jan 5, 2003
173
GB
Does anyone know how i can select the last 20 records from my database? So far I have:
SELECT COUNT(*) FROM tblWhatever
That returns the no. of records in the table...
I am using the general (free) account from brinkster (if that matters). Anyone?
 
Hi brownfox...

Try...

SELECT TOP 20 * FROM tblWhatever
ORDER BY field DESC

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top