in reply to Re: SQL JOINs vs WHERE statements
in thread SQL JOINs vs WHERE statements
Would you be able to do that with a WHERE clause instead of a JOIN?
SELECT stf.StaffId, stf.StaffName, stf.Position, stf.ManagerId, mgr.StaffName AS ManagerName, mgr.Position AS ManagerPosition FROM staff AS stf, staff AS mgr where stf.ManagerId=mgr.StaffId
I think... :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: SQL JOINs vs WHERE statements
by CountZero (Bishop) on Aug 19, 2003 at 20:59 UTC |