Reputation: 125
So i have multiple Columns with the same data type entry but i need to combine them into a single column. i have 25 columns id like to list in one column in the same order
D1 D2 D3 D4
15 19 16 22
Ds
15
19
16
22
Upvotes: 0
Views: 394
Reputation: 1269553
I think you jus want union all
, as your tags suggest:
select d1 as ds from t union all
select d2 as ds from t union all
select d3 as ds from t union all
select d4 as ds from t ;
Upvotes: 3