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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tough sql question..

Status
Not open for further replies.

eja2000

Programmer
Nov 30, 2003
209
NG
i have news articles in a table;
articlename
articlebody
articledate
articleid(integer autonumber)


i want to create an sql statement that will retrieve all records BUT the most recently added one.
the most recent article is the one with the highest articleid..
thanks
 
Something like this ?
SELECT * FROM tblArticles
WHERE articleid<(SELECT Max(articleid) FROM tblArticles)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top