I have two tables.
Table A has a1, a2 and a3 fields[columns].
Table B has b1, and b2 fields[columns].
Columns a1 and b1 are related.
Column a1 has 1000 rows while b1 has 600 rows.
{The number of rows like 1000 and 600 are just examples, I can find the number of rows for Table A and B using the function "COUNT", but this may/not be needed!}
Column b1 has distinct records while a1 doesn't.
Objective:
I want to find out the number of repetition of each values in b1 which are repeated in a1 and store it in a new Table C which will have the following columns b1, b2 and NumberOfRepetition.
Note: Not all values of b1 are in a1, some rows of C.NumberOfRepetition can be zero.