Created
August 16, 2019 08:20
-
-
Save databraineo/d90744c4261a09cebc47e31450d9157a to your computer and use it in GitHub Desktop.
Code examples for SQL 1x1 blog-article - 13
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 | |
substr(Name,1,1) as [Index], | |
count(TrackId) AS Anzahl, | |
avg(Milliseconds)/600000 as MW | |
FROM Track | |
WHERE substr(Name,1,1) in ('A','E','I','O','U') | |
GROUP BY substr(Name,1,1) | |
HAVING count(TrackId) > 50 | |
ORDER BY substr(Name,1,1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment