I have a table with a ‘timefrom’ column and a ‘timeto’ column that stores times in 24-hour format (“09:30”, “23:15”, etc).
How do I select rows where the current date (CURRENT_TIMESTAMP I would think) is between ‘timefrom’ and ‘timeto’?
edit: SQL Server 2008
SQL Server 2008+
You could of course fix your design to avoid conversion by using a
timecolumn