Created
January 23, 2026 22:18
-
-
Save camilajenny/e34248b0c1ed5cdc8773a13f7ccbf829 to your computer and use it in GitHub Desktop.
count notes starting with emoji by colors
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 | |
| sum(case when n.title like 'πͺ %' then 1 else 0 end) as purple, | |
| sum(case when n.title like 'π© %' then 1 else 0 end) as green, | |
| sum(case when n.title like 'π¦ %' then 1 else 0 end) as blue, | |
| sum(case when n.title like 'π₯ %' then 1 else 0 end) as red, | |
| sum(case when n.title like 'π¨ %' then 1 else 0 end) as yellow, | |
| sum(case when n.title like 'π« %' then 1 else 0 end) as brown, | |
| sum(case when n.title like 'π³ %' then 1 else 0 end) as white, | |
| sum(case when n.title like 'β¬ %' then 1 else 0 end) as black, | |
| sum(case when n.title like 'π§ %' then 1 else 0 end) as orange | |
| from notes n; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment