Created
August 16, 2019 08:17
-
-
Save databraineo/2e3f468765c7a3f97fd0cb4e0c0a4e13 to your computer and use it in GitHub Desktop.
Code examples for SQL 1x1 blog-article - 10
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 | |
Name, | |
substr(Name,1,1) AS [Index], | |
CASE WHEN Milliseconds > 360000 THEN '> 6min.' | |
WHEN Milliseconds > 300000 THEN '5-6 min.' | |
WHEN Milliseconds > 240000 THEN '4-5 min.' | |
ELSE 'kurz' | |
END AS Länge | |
FROM Track; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment