Assuming that you have a day_of_month
type of field, the second Friday must be day 8 to 14.
SELECT *
FROM Calendar
WHERE (yearCal = 2014)
AND (monthCal = 12)
AND (weekDayCal = 6)
AND (dayInMonth BETWEEN 8 AND 14)
You could use a Week of month
field, but this can get complex depending on what you define as a week. Normally it would by Monday-Sunday or similar, meaning that week1
of month12
may only be 2 days long, and not include a Friday.