Re: SQL Statement Problem

From: Jim Kennedy <kennedy-family_at_home.com>
Date: Thu, 30 Aug 2001 12:42:46 GMT
Message-ID: <axqj7.443342$p33.8505524_at_news1.sttls1.wa.home.com>


Is everyone having trouble doing their homework or are they just dare I say lazy.
"Calvin" <calvin_at_isidasia.com.hk> wrote in message news:9mke9u$5jc$1_at_news.hk.linkage.net...
> Dear all !
> I have the problem on this example ?
>
>
> eg. I have 2 table one is employee and other is department
> employee (Enum, Name, Address, SuperEnum, Dnum)
> department (Dnum, Dname, depdate)
>
> in employee :
> enum is primary key (Employee Number),
> SuperEnum is foreign key (Supervisor's Employee Number),
> Dnum is foreign key (Department Number)
> in department :
> Dnum is primary key (Department Number)
>
> if I want list the employee's name and supervisor's name for all employees
> in the department "D004" (eg. in department have one of the department
> number equal D004).
>
> Can I use one SQL statement to do it? or I need use Join function to join
> two table?
>
>
>
Received on Thu Aug 30 2001 - 14:42:46 CEST

Original text of this message