How to link queries


I have two differents set of data with an identical value on both set but without the same keyname.

How is it possible to join them to add data from the second set of data in the first one ?

Set A :
A_name: xxx
A_data: dataA

Set B:
B_name: xxx
B_data: dataB

I would like to create a query to get for A_name equal B_ name the information A_data and B_data.

Is it possible ?