I have a table and the columns are 'Name' 'Product' 'Type' 'Date' 'Type1' 'Date1' 'Type2' 'Date2'..... (till type23 date23)
I want to stack Type1, Type2 under Type column and similarly Date1, Date2 under Date column. I don't want to use UNION ALL, so I am looking for other alternatives such as unpivot.
This is how my data looks like:
Name Product Type Date Type1 Date1 Type2 Date2
John AA1 xx 12/31 yy 10/30 zz 7/30
This is how I want it to look:
Name Product Type Date
John AA1 xx 12/31
John AA1 yy 10/30
John AA1 zz 7/30
How can I achieve this using cursor for loop or any other effective way? I have connected DB2 table, and I am using Oracle SQL Developer to query my data.

UNPIVOTclause.