Working with dates

From: Ranieri Mazili <ranieri(dot)oliveira(at)terra(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Working with dates
Date: 2007-07-05 19:00:40
Message-ID: 468D3FD8.7070807@terra.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Hello,

I need to do the following select:

Number of days of month - weekends - holydays

So this query will return the number of days that people can work

Look that I have the holydays in one table, it's bellow:

CREATE TABLE holidays
(
id_holidays serial NOT NULL,
dt_holiday date,
holiday_description character varying(60),
input_date timestamp without time zone NOT NULL,
CONSTRAINT holidays_pkey PRIMARY KEY (id_holidays)
)

I have no idea of how do it

If someone could help, I would appreciate.

Thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ranieri Mazili 2007-07-05 20:49:29 Re: Working with dates
Previous Message Tom Lane 2007-07-05 18:20:25 Re: Way to determine index bloat stats?

Browse pgsql-sql by date

  From Date Subject
Next Message Ranieri Mazili 2007-07-05 20:49:29 Re: Working with dates
Previous Message Jeff Frost 2007-07-05 17:20:06 Re: separating improperly grouped page views