Created
September 16, 2014 16:20
-
-
Save kaeawc/ea40f7efc3b46ace2794 to your computer and use it in GitHub Desktop.
Using subqueries and aliases to create aggregations
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
SELECT COUNT(a.asdf) as count_of_asdfs FROM (SELECT 2 as asdf ) as a JOIN (SELECT 3 as fdsa) as b ON b.fdsa=3 GROUP BY b.fdsa; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment