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: Newbie SQL Question

Re: Newbie SQL Question

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Mon, 13 Mar 2000 07:46:15 +0100
Message-ID: <952935417.7679.1.pluto.d4ee154e@news.demon.nl>


trunc(sysdate -doh, 'YYYY')

Hth,

Sybrand Bakker, Oracle DBA

Uzmati29 <uzmati29_at_aol.com> wrote in message news:20000312183617.02585.00001733_at_ng-fq1.aol.com...
> Hi,
>
> I am new to oracle and need some help with SQL statements. I am using SQL
+
> 3.3.
>
> How would I perform this querry?
>
> ----------------------------
> For mechanics, list the employee ID number, last names, salary, years of
> experience, and the aircraft that they are certified to repair?
> ----------------------------
>
> The tables involved are
>
> Employee (E_ID; Lname; Fname; MI; Address; DOH; Salary; Base; Category;
> Year_of_Birth)
>
> Mech-attrib (E_ID, Can_Repair)
> ----------------------------
>
> My main problem involves the years of experience. How do I use the date
of
> hire (DOH) with the sysdate function to calculate an employee's years of
> experience?
>
>
> thanks
Received on Mon Mar 13 2000 - 00:46:15 CST

Original text of this message

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