Hi thanks for your reply. Here is one point I am not really sure, the first table is not the original one, I got it by using the unpivoting function, so how can I write the script to make sure I read this one not the original one? Or, I need to write another script to finish the unpivoting first? Thanks!
And one more question, for the index table, actually it has several type of survey, each type has different question no and question content, in relation to different table. So when I want to achieve this similar function, could you give some suggestions? I kind of don't know how to start .......Thanks!