I have two tables with one column each, containing names. Names can have duplicates. One name can be found on every table or only in one. I want to make an query that count duplicates, for each name in every table an list these values like this:
| name | table1 | table2 |
| john | 12 | 23 |
| mark | 2 | 5 |
| mary | | 10 |
| luke | 4 | |
I tried different strategies using UNION
but no luck.
Thanks in advance!!!