2017-05-06 5 views

Antwort

0

Ich bin kürzlich auf etwas ähnliches zu diesem Problem gestoßen. Hoffe das hilft.

select col 
from 
(select col1 as col from tab1 
union all 
select col2 as col from tab1 
union all 
select col3 as col from tab1 
union all 
select col4 as col from tab1 
union all 
select col5 as col from tab1) as new_table 
group by col order by count(*) desc limit 1; 
+0

Perfekt, ich arbeite !!! –

Verwandte Themen