tags:

views:

36

answers:

1

Hi,

I have a table with the following columns

 id, teamA_id, teamB_id

Will it be possible to do a MYSQL SELECT statement that gives both teamA_id and teamB_id in the same column?

EDIT

Consider this example

From

 id, teamA_id, teamB_id
 1, 21, 45
 2, 34, 67

I need

Teams
21
45
34
67
+8  A: 
SELECT teamA_id as 'Teams'
FROM Teams

UNION

SELECT teamB_id as 'Teams'
FROM Teams
Li0liQ
thanks ... this worked!
mouthpiec