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,242,037
  • 58
  • 646
  • 786