Skip to content

Instantly share code, notes, and snippets.

@databraineo
Created August 16, 2019 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save databraineo/94ce2b873163b7e5aa454422b7f40a4a to your computer and use it in GitHub Desktop.
Save databraineo/94ce2b873163b7e5aa454422b7f40a4a to your computer and use it in GitHub Desktop.
Code examples for SQL 1x1 blog-article - 09
SELECT
Name,
substr(Name,1,1) AS [Index],
CASE WHEN Milliseconds > 300000 THEN '> 5min.' END AS Länge1,
CASE WHEN Milliseconds > 300000 THEN '> 5min.' ELSE 'kurz' END AS Länge2
FROM Track;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment