How to display 2 different column field values as one column value in mysql
Hi All,
Am trying to display/select 2 column filed values under single coulmn. ie,
If i have table with 3 columns and 4 rows, i would like to select/display col1 and col3 values and display there values as single column values.
Example :
col1 col2 col3
aaa sss ddd
qqq www eee
rrr ttt yyy
xxx fff ggg
now from the above table, i would like to display col1/col3 values as single col4 ie, output should look like
col4
aaa
qqq
rrr
xxx
ddd
eee
yyy
ggg
i tried with UNION and CONCAT but no luck. could anyone please tell me how to do this using mysql query.
Many Thanks,
V
|