Java MySQL DISTINCT for Multiple Columns -


i have 2 columns in db team names in each column. but, team in 1 column, , can in other column. want create list of distinct, unique, names both columns combined.

maybe further explanation, i'm trying combine 2 columns , run distinct query on combined data unique names out. thanks!

use union distinct list

select team1 team your_table union  select team2 your_table 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -