I have two tables, A1 and A2. I want to compare these two tables. I tried inner join but it doesn't give the required result.
These are the data in these tables,
Table A1
No. Address
1 abc
1 abc
1 def
1 def
Table A2
No. Address
1 def
1 abc
1 abc
1 def
These two tables can only be joined by using No.
column. So if I use INNER JOIN it gives 16 rows. I don't want that, I want only 4 rows to be displayed. This should be the output:
No. Address eq
1 abc #
1 abc *
1 abc #
1 abc #
Last column is displayed if address in A1 is equal to A2