i want to build an event calendar database table.
i am thinking about two approaches
1) with one field called "eventdate" of DATE type, and all the future SQL deal with the even date will be dealing with the "eventdate" DATE field values, such as pick up certain month, or certain year events, check out events 30 days from now etc.
2) with this field "eventdate", plus with three other integer fields "eventmonth", "eventday", and "eventyear", so the future SQL may directly deal with these three fields directly, such as pick up events of March.
I don't have to manipulate "eventdate" DATE field.
I can simply call
select * from eventcalendar where eventmonth=3
which way is better?
hui