i have a table that has event name and event date.
if i want to get the last 10 events by date, can i do that by sql or do i need query the whole table and do the filtering in code.
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.
This assumes that “the last 10 by event date” means the 10 most recent ones:
That should do it – regardless of what database system you’re using.
Marc