Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 97A732E003D for ; Thu, 24 Apr 2008 09:59:54 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 32939-08 for ; Thu, 24 Apr 2008 09:59:41 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by developer.postgresql.org (Postfix) with ESMTP id F2E422E0037 for ; Thu, 24 Apr 2008 09:59:48 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id r21so2710798wxc.28 for ; Thu, 24 Apr 2008 05:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=IOmSE3P8IdXpSRgMAHCPxjybRpjKbQXNZ8XMF0JEuC8=; b=FNXgjqQkQ/AN+bWuYL31iXTYdCT/57yn6Ir3hkDMf05wWHro0osJU0H29zhNjn47xR2UUSthc+1LgpJZejpVk8GPsQeM9GdfcBxdH4TKp+i9keaDXLWVPj1ry+eYdftAecmPsNqeHKHVc0zip0Cvh8pV9acFQT5u1C1CR7DvGDI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=wziaCXJcdWZEsKSMFIBhKh9cKe1KI0woT/uoDq1mnw9v1R9AoLZhCF4wQ3lKwJW5i8okACSzGdy+3vtHODX3W9I6TMw+NYJnjYMIpc/ygn5P+UmEJAU2eF0lKF+GA1wXNGyISinJr5u/0aDyu9YVg8Wot+6Kach2JYt9ULG2wbQ= Received: by 10.70.69.1 with SMTP id r1mr3434971wxa.54.1209041987239; Thu, 24 Apr 2008 05:59:47 -0700 (PDT) Received: by 10.70.25.5 with HTTP; Thu, 24 Apr 2008 05:59:47 -0700 (PDT) Message-ID: Date: Thu, 24 Apr 2008 14:59:47 +0200 From: "Nacef LABIDI" To: pgsql-sql@postgresql.org Subject: First day of month, last day of month MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11810_25609544.1209041987238" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200804/149 X-Sequence-Number: 30688 ------=_Part_11810_25609544.1209041987238 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I want to select data from a table according to a date column in my table. I want to select all the rows which have date in the current month. So is there a way to get from the actual date the first day and the last day of the month or is there a better method to retrieve all the rows with dates in the current month. Thanks to all ------=_Part_11810_25609544.1209041987238 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,

I want to select data from a table according to a date column in my table. I want to select all the rows which have date in the current month. So is there a way to get from the actual date the first day and the last day of the month or is there a better method to retrieve all the rows with dates in the current month.

Thanks to all
------=_Part_11810_25609544.1209041987238--