Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 690FE9FBB44 for ; Wed, 18 Jul 2007 10:53:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 05416-02 for ; Wed, 18 Jul 2007 10:53:37 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from smtp109.mail.mud.yahoo.com (smtp109.mail.mud.yahoo.com [209.191.85.219]) by postgresql.org (Postfix) with SMTP id 889449FBB5C for ; Wed, 18 Jul 2007 10:53:42 -0300 (ADT) Received: (qmail 7170 invoked from network); 18 Jul 2007 13:53:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=eGQO4vzp759a8PYhqlyEzk39JLYUcs6XoLKt8lcZxoRwG/WbSahzSnDx89T+2rmged5MaodrFWUiovbfaNcYdB5W8yvaoK1wWHnKyIOA2kB9q6/guqAq2AHavR8epzWNJJdn4uKor2ahYf7ly7MxhRp04h/7z48+UYh69MKNGQA= ; Received: from unknown (HELO ?10.2.200.151?) (osvaldo_kussama@189.25.6.151 with plain) by smtp109.mail.mud.yahoo.com with SMTP; 18 Jul 2007 13:53:40 -0000 X-YMail-OSG: pw9kHS4VM1k.hIiZVKFrsjt4RfKaolBIBPLCDrCcmLCarIhF Message-ID: <469E1BF4.1020605@yahoo.com.br> Date: Wed, 18 Jul 2007 10:56:04 -0300 From: Osvaldo Rosario Kussama User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Ashish Karalkar CC: pgsql-sql@postgresql.org Subject: Re: Birth Day Calculation References: <01d801c7c92b$317e83a0$170211ac@LIONKING.COM> In-Reply-To: <01d801c7c92b$317e83a0$170211ac@LIONKING.COM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200707/114 X-Sequence-Number: 28849 Ashish Karalkar escreveu: > Hello All, > > I want to diplay all the name of persons who falls in between given day > and month > something like > > select name from my_table mt where mt.date_of_birth between 7-Jul and > 15 - Aug > > > column date_of_birth is of date type > SELECT name FROM my_table mt WHERE to_char(mt.date_of_birth,'mmdd') between '0707' and '0815' Osvaldo