Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2020 01:46
What would you like to do?
FirstLetters AS
SELECT SUBSTRING(name, 1, 1) as letter
FROM [NamesData]
LetterCounts AS
SELECT letter, COUNT(letter) as letterCount
FROM [FirstLetters]
GROUP BY letter, TumblingWindow(second, 30)
SELECT * INTO [SaveGroupedData] FROM LetterCounts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment