SQL to determine number of working days in a month