Lets say I have this table name "Stuff"
╔════╦═════╗
║ ID ║ VAL ║
╠════╬═════╣
║ 1 ║ A ║
║ 2 ║ B ║
║ 3 ║ C ║
║ 4 ║ C ║
║ 5 ║ C ║
║ 6 ║ D ║
║ 7 ║ B ║
║ 8 ║ E ║
╚════╩═════╝
I would like a query which can give me an output of where in the numbers the letters are repeating. Feel free to use any column name for the table.
Basically I want something that says "C" is reapeating on number 3, 4, and 5. "B" is repeating on number 2, and 7.
On my work I have thousand of rows. The example I gave you is very granular. If you need more information please let me know.