Select certain dates from frequency table