Created
March 29, 2011 14:57
-
-
Save neverpanic/892491 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 | |
| r.correlation_id | |
| , r.version_name | |
| , r.version | |
| , count(f.file_id) as count | |
| , min(f.version) | |
| , max(f.version) | |
| FROM | |
| reports r | |
| LEFT JOIN | |
| files f | |
| ON | |
| f.file_id = r.file_id | |
| GROUP BY | |
| r.correlation_id | |
| ORDER BY | |
| count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment