2016-04-13 12 views

Antwort

0

Für Ihr Beispiel ist dies die einfachste Lösung. Aber ich denke nicht, dass es eine universelle Antwort ist.

select ID, left(col1,1), left(col2,1), left(col3,1) from input_table 
union all 
select ID, right(col1,1), right(col2,1), right(col3,1) from input_table 
order by ID