0
How can I get the number of identical names from 2 tables, customer and suppliers.
Ex: the result is
Name. Qtd
Joao. 2
Peter. 15
Michael. 7
The code I have is this.
Select nome from fornecedores where ativo = 1
Union all
Select nome from clientes where ativo = 1
I tried the count
but it doesn’t work well.