I have a sqlite query that returns something like the following with columns [letter, number]:
("a", 1)
("a", 2)
("b", 3)
("c", 3)
I want to retrieve the number column as 0 if the letter is distinct. How is it done?
Expected output:
("a", 1)
("a", 2)
("b", 0)
("c", 0)