I have a calendar application, so I have a table called events with the columns title and startDate. The thing is I want to select the events that are occuring during and after a specified date.
SELECT *
FROM events
WHERE startDate >= date
ORDER BY startDate ASC, title ASC
That’s the easy part. Now to the harder part. I want to make a limit to just select the 7 first dates that have events on it. How do I do that?
1 Answer