I have a table that has an integer id (primary key) and timestamp date added columns (among others).
what would the syntax to extract the id values for the ten most recent “date added” values look like?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If we go by the title of your question (10 most recent rows):
If we go by what you say in your question (10 most recent values of date added):
As I noted in my comments, I use Transact-SQL primarily so you might need to adjust for any gaps in my MySQL knowledge.