- You can find distinct name (create a view or table)
- Loop through each value
2a) As you are looping make a insert "name" | transation_Date | code
Not sure if you can do alone in Hive but with a combination of Python/Spark/Scala you can do this. Hope it helps in some ways.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…