SQL Query using time

Поиск
Список
Период
Сортировка
От Karyn Keatley
Тема SQL Query using time
Дата
Msg-id 3A2FC209.E1EA54D2@aepona.com
обсуждение исходный текст
Список pgsql-sql
Hi,
I am attempting to write a sql query that compares times on a 24 hr
clock
eg
09:00<16:30 and  21:00>16:30

09:00 is the start time and 16:30 is the end time. The problem is that
if the start time is 23:58 and the end time is 00:30 (next day) is there
any way to carry out this comparison without introducing date.

Is it possible to carry out the comparison in the following manner
select name from table where 00:12 is between 23:58 and 00:30

thanks karyn

Вложения

В списке pgsql-sql по дате отправления:

Предыдущее
От: "Junaid Kalim"
Дата:
Сообщение: Fw: lo_import & lo_export
Следующее
От: feblec
Дата:
Сообщение: plpgsql