|
liangtp@hotmail.com
Starting Member
27 Posts |
Posted - 2008-08-06 : 03:47:10
|
| Hi, I wonder if my problem can be solved by SQL statements, without using client code. Thanks in advance.In table tblA, I have below.----------------------------Field1, Field2, Field3, Field4The Hulk,1970-07-31 11:25:13,M,2008-07-31 11:25:13The Champ,1970-07-31 11:25:13,M,2008-07-31 11:25:13Rocky,1970-07-31 11:25:13,M,2008-07-31 11:25:13The Rock,1970-07-31 11:25:13,M,2008-07-31 11:25:13In table tblB, I have the below:--------------------------------RecNo, FieldName, 1 Name 2 MemberSince 3 Sex 4 DOB The actual field names of tblA can be found in tblB, where Field1 in tblA maps to Recno 1 of tblB, Field2 maps to Recno 2, and so on.I wish to have the final result to be as such:Name, MemberSince, Sex, DOBThe Hulk,1970-07-31 11:25:13,M,2008-07-31 11:25:13The Champ,1970-07-31 11:25:13,M,2008-07-31 11:25:13Rocky,1970-07-31 11:25:13,M,2008-07-31 11:25:13The Rock,1970-07-31 11:25:13,M,2008-07-31 11:25:13Can you help? |
|