sam2929
asked on
matching two tables
I have a table
AA
aa_id lang englishdesc otherdesc
101 O BBBB
101 E hello
102 O KKK
102 E OTHER
103 O HHHH
103 E TEST
BB
bb_ID level1_id
101 102
102 102
103 101
I WANT to join aa with bb based upon aa_id and bb_id and want to have final level1_id get englishdesc and other desc
based upon leve11_id
so final results should look like AA will be master table
final table
aa_id lang englishdesc otherdesc level1_id englishlevel1desc otherlevel1desc
101 O BBBB 102 kkk
101 E hello 102 other
102 O KKK 102 kkkk other
102 E OTHER 102
103 O HHHH 101 BBB
103 E TEST 101 hello
so leve1_id will match with aa_id to get englishlevel1desc and otherleve1desc
AA
aa_id lang englishdesc otherdesc
101 O BBBB
101 E hello
102 O KKK
102 E OTHER
103 O HHHH
103 E TEST
BB
bb_ID level1_id
101 102
102 102
103 101
I WANT to join aa with bb based upon aa_id and bb_id and want to have final level1_id get englishdesc and other desc
based upon leve11_id
so final results should look like AA will be master table
final table
aa_id lang englishdesc otherdesc level1_id englishlevel1desc otherlevel1desc
101 O BBBB 102 kkk
101 E hello 102 other
102 O KKK 102 kkkk other
102 E OTHER 102
103 O HHHH 101 BBB
103 E TEST 101 hello
so leve1_id will match with aa_id to get englishlevel1desc and otherleve1desc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window