Postgresql – Combining two sql columns into one and counting the number of unique values?
I have two postgresql tables with the following data [teams] [id][team_name] 1 team 1 2 team 2 3 team 3 [matches] [participant 1][participant 2] 1 3 2 1 3 2 The matches table references the team ID. I am trying…