Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: query on date

Re: query on date

From: Bronke, Nicolas <newsgroup_at_trinity.de>
Date: Fri, 31 Mar 2000 14:55:42 +0200
Message-ID: <38e4bbbd_1@news2.prserv.net>


> I have a table with the date_of_death as a column dd-mm-yy.
> Now I wan to run a select statement from this column, where the clause
> is on the year,
>
> So
> select *
> from patient
> where (trunc ('date_of_death', 'YY') = '94'
> file://where YY is year
> Is this the corect way to run this query
>

Do it more simple:

select * from patient where trunc (date_of_death, 'YY') = 94

regards
Nicolas Bronke Received on Fri Mar 31 2000 - 06:55:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US