I have a calendar, eventStart and eventEnd are the two key columns.
I want to show event within the current month being shown. The following is what I came up with for the search statement (between statements are being generated by application server). Is this correct?
SELECT *
FROM events
WHERE ( events.calendarId = ? )
AND (eventStart BETWEEN {ts '2011-06-01 00:00:00'} AND {ts '2011-06-30 00:00:00'}
AND eventEnd BETWEEN {ts '2011-06-01 00:00:00'} AND {ts '2011-06-30 00:00:00'})
thanks for any critiques/advice