Hello i have some table like this:
Text | from | to
A | 1 | 2
B | 2 | 1
C | 3 | 1
D | 1 | 4
And i would like to get number of conversations, so for this example it should be 3. Do anyone know how to do it? Thank you.
One more information - i decided to use UUID so i switched to PostgreSQL and there is no least and greatest.