Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Selecting Birthdays
Hello Chris,
Select * from table1 where to_char(birthdate, 'mon')='apr' -- or 'may' or whatever
VC
"Chris Hota" <cghota_at_uwm.edu> wrote in message
news:d4b2092b.0402041658.49f2d577_at_posting.google.com...
> Hello-
>
> I have a table:
>
> tblPeople
> firstname varchar2(50)
> lastname varchar2(50)
> socialsec varchar2(11)
> birthdate date
>
> I would like to select only the records that have birthdays in a
> specific month (ie, February). Is this possible? I am using Oracle
> 8i.
>
> Thanks,
>
> chris.
>
> / Chris Hota (cghota_at_uwm.edu)
> | Small Application Programming Group Supervisor
> | I&MT/Student Technology Services
> | UW-Milwaukee
> | Bolton 646 - (414)229-5401 (SAPG)
> \ Cell Phone - (414)840-4682
Received on Wed Feb 04 2004 - 20:13:38 CST
![]() |
![]() |