Equivalent of Oracle next_day function

Поиск
Список
Период
Сортировка
От David Rickard
Тема Equivalent of Oracle next_day function
Дата
Msg-id 5.2.1.1.0.20031013162328.00ac3ff8@mail.gtscompanies.com
обсуждение исходный текст
Ответы Re: Equivalent of Oracle next_day function
Список pgsql-novice
Is there a postgres equivalent of Oracle's next_day() function?  We have a web-based report that lists an employee's hours from Monday (of the current week) through the following Sunday (or sometimes the same period for the previous week); the beginning/end dates are retrieved (in Oracle) using the next_day function, ala:
        
        SELECT TO_CHAR ( ( NEXT_DAY ( SYSDATE, 'MONDAY' ) - 7 ), 'MM/DD/YY' ) AS THEMONDAY FROM DUAL

What would be the simplest way to do this query in PostgreSQL?


--

David Rickard
Software Engineer
The GTS Companies
A TechBooks Company

----------------------------------------------------------------------------------
The GTS Companies:
GTS Publishing Services, GTS Graphics, GTS Innova:
Your Single-Source Solution!
Los Angeles CA  *  York, PA  *  Boston MA  *  New Delhi, India
----------------------------------------------------------------------------------


David.Rickard@GTSCompanies.com
Visit us on the World Wide Web
http://www.gtscompanies.com
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 [fax]

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

Предыдущее
От: "David Benoff"
Дата:
Сообщение: Deleting blob data with LargeObject Java API
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: Equivalent of Oracle next_day function