Re: First day of month, last day of month - Mailing list pgsql-sql

From Frank Bax
Subject Re: First day of month, last day of month
Date
Msg-id 481085D1.2010807@sympatico.ca
Whole thread Raw
In response to First day of month, last day of month  ("Nacef LABIDI" <nacef.l@gmail.com>)
Responses Re: First day of month, last day of month  ("Bart Degryse" <Bart.Degryse@indicator.be>)
Re: First day of month, last day of month  (Frank Bax <fbax@sympatico.ca>)
List pgsql-sql
Nacef LABIDI wrote:
> is there a better method to retrieve all 
> the rows with dates in the current month.


select * from mytable where extract(month from mydate) = extract(month 
from now()) and extract(year from mydate) = extract(year from now());


pgsql-sql by date:

Previous
From: "Nacef LABIDI"
Date:
Subject: First day of month, last day of month
Next
From: "Bart Degryse"
Date:
Subject: Re: First day of month, last day of month