How to get row value to map with columns in sql : Table: fieldTable  (only one column "ColumnFileName")

    ColumnFileName: (Values are as below).    
        f1
        f2
        f3
        f4,
        f5

 
   Table: ValueTable  (9 columns as below).
  

      Columns: Id, f1, f2, f3, f4,f5,f6,f7,comments
        Values:  1, Name,Id,Salary,Interest,Offer,value,Salary,''

How to get result as below:  (to map Table 1 row's value to column value of Table2).

    f1,Name,
    f2,Id
    f3,Salary
    f4,Interest
    f5,Offer,
    f6,value,
    f7,Salary,




