I have a table which has following columns
Question Answer
What is your role? Leader
what is your qualification? MBA
what training did you go through? SQL Server
Who is your manager? XYZ
What is your role? Supervisor
what is your qualification? BS
what training did you go through? Excel
Who is your manager? ABC
I want to create another column which would take the value in the "Answer" column corresponding to "What is your role?" in the Question column and repeat for all the questions in the table. So it should look something like as below.
Result:
Question Answer ColumnX
What is your role? Leader Leader
what is your qualification? MBA Leader
what training did you go through? SQL Server Leader
Who is your manager? XYZ Leader
What is your role? Supervisor Supervisor
what is your qualification? BS Supervisor
what training did you go through? Excel Supervisor
Who is your manager? ABC Supervisor