Re: JOINing the same table
From: Query Builder (querybuilder_at_gmail.com)
Date: 02/07/05
- Next message: JohnnyAppleseed: "Re: Getting records between the specified date range"
- Previous message: Jack: "RE: triggers vs check constraint???"
- In reply to: Wally: "JOINing the same table"
- Next in thread: Wally: "Re: JOINing the same table"
- Reply: Wally: "Re: JOINing the same table"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Feb 2005 14:13:23 -0800
Are you saying you have a primary key that is been referenced as a
foreignkey in the same table? WHYyyyy?? Anyways, to solve your problem
for now, here is the query......
select E.LastName as EmpLastName,
(Select LastName as SupLastName from Employees Where employeeID =
E.SupervisorID)
from Employee E
- Next message: JohnnyAppleseed: "Re: Getting records between the specified date range"
- Previous message: Jack: "RE: triggers vs check constraint???"
- In reply to: Wally: "JOINing the same table"
- Next in thread: Wally: "Re: JOINing the same table"
- Reply: Wally: "Re: JOINing the same table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|