0

Column format is 'YYYY-MM-DD HH:MM:SS'. But I want to search for all rows where that time is between 19:00:00 and 24:00:00

frebbie
  • 21
  • 5

1 Answers1

0

You can use datepart():

where datepart(hour, col) between 19 and 23
Gordon Linoff
  • 1,198,228
  • 53
  • 572
  • 709