Created
February 3, 2014 20:17
-
-
Save discoposse/8791513 to your computer and use it in GitHub Desktop.
Is this a subquery I need?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
people table fields: | |
id,first_name,last_name,login,manager_id | |
I need to get all the info, plus the login of the manager where manager_id references the record in the people table. | |
This is why I'm not a DBA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd use a JOIN: