Re: Birth Day Calculation - Mailing list pgsql-sql

From Osvaldo Rosario Kussama
Subject Re: Birth Day Calculation
Date
Msg-id 469E1BF4.1020605@yahoo.com.br
Whole thread Raw
In response to Birth Day Calculation  ("Ashish Karalkar" <ashish.karalkar@info-spectrum.com>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: "Fernando Hevia"
Date:
Subject: Re: Inserting an IF statement in the middle of a SELECT in pl/pgSQL code
Next
From: Chris Browne
Date:
Subject: Re: Database Synchronization