Created
May 5, 2011 16:44
-
-
Save guedes/957394 to your computer and use it in GitHub Desktop.
SQL example for JOIN tables and subqueries
This file contains hidden or 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
SELECT name,age | |
FROM person | |
join (SELECT max(age) as age FROM person) as max_age USING (age); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment