That depends on the actual format you're using. If you're not keeping track of the date, it's simply
select * from mytable where timefield <= '08:00' or timefield >= '20:00'
smantscheff
Nearly a Posting Virtuoso
1,297 posts since Oct 2010
Reputation Points: 321
Solved Threads: 270
Skill Endorsements: 8
It's still not clear. How do you store the date? Do you store it at all?
smantscheff
Nearly a Posting Virtuoso
1,297 posts since Oct 2010
Reputation Points: 321
Solved Threads: 270
Skill Endorsements: 8
Does this mean that the date part is irrelevant and you're only working with the time part?
smantscheff
Nearly a Posting Virtuoso
1,297 posts since Oct 2010
Reputation Points: 321
Solved Threads: 270
Skill Endorsements: 8