I am trying to do the following problem but it's not giving me the right result
I have two tables:-
Table A (5460 records)
Table B (9670 records)
Both the tables have one common key - i.e. charttype
Now, I want to populate the rate type from Table A in Table B by looking up on the basis of charttype.
My end result should be - Table B should have 9670 records with additional column TableA_ratetype for all the charttypes that were a match with table A.
However, when I use join with Table A on the left and table B on the right, and add the 'Join' and 'Right' result to union, I am getting 12907 records. How do I apply the join properly?