Created
May 20, 2013 19:26
-
-
Save shofetim/5614779 to your computer and use it in GitHub Desktop.
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 | |
| t1.a -- I need all of these | |
| SUM(t2.b) --but only sum these of t2.c = TRUE | |
| WHERE | |
| t2.c = TRUE |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I have been able to come up with only returns the t1.a where t2.c is TRUE. The real SQL is alot harrier, and slower...