Quantcast
Viewing all articles
Browse latest Browse all 21760

Re: Query help, direct and indirect reports

I've never worked with Access as a database, before.  But, if this were SQL (and it might work), then, yes, a LEFT OUTER JOIN would do the trick.

 

SELECT ta.Lastname, ta.Firstname, ta.EmpID, ta.MgrEmpID, ta.Email, ta.Location

FROM TableA ta LEFT OUTER JOIN TableA tb ON tb.MgrEmpID = ta.EmpID

ORDER BY ta.Lastname, ta.Firstname, tb.Lastname, tb.FIrstname

 

Or something like that.

 

^_^


Viewing all articles
Browse latest Browse all 21760

Trending Articles