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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -