I have two sql tables :
table_A :
ID VALUE
1 a
2 b
3 c
4 d
table_B :
ID VALUE
2 oA
4 oB
1 oC
3 oD
I'm looking for an sql query for get this php array :
$myarray = (
"a" => "oC",
"b" => "oA",
"c" => "oD",
"d" => "oB",
);
Is it possible to get this result with one query ? Can you help me ?