Datetime Query

Поиск
Список
Период
Сортировка
От Mark Byerley
Тема Datetime Query
Дата
Msg-id 5.0.2.1.0.20010215102652.00a140a0@admmail.uwaterloo.ca
обсуждение исходный текст
Ответы Re: Datetime Query  (Jie Liang <jliang@ipinc.com>)
Список pgsql-sql
I need to create a query which will select a request_no between Data1 and 
Date2 so...

SELECT request_no FROM request where status_code ='C' and (completed_date 
between 01/01/2000 and 01/01/2001);

The problem I have run into is that the completed_date field is a datetime 
format (not by my own design) and I am having some problems extracting just 
the request_no's between those dates.
I have tried a few extract month,day,year clauses with no success. If 
anyone has an idea I would appreciate it!
Thanks in advance.
Mark



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

Предыдущее
От: "Justin Long"
Дата:
Сообщение: Suggestions on finetuning this search?
Следующее
От: Steve Meynell
Дата:
Сообщение: Help Retrieving Latest Record