2
I would like to do a query that adds for example the name of the equals by date (here I will put the period, for example 01/03
to 22/03
), the problem that I have two tables, one of individuals where I have the name and one occurrences where I have the date, but I’m not succeeding in my attempts.
I tried something below, but it didn’t work out so well:
select COUNT(*), individuos.nome, ocorrencias.data_comunicacao
from ocorrencias, individuos
group by individuos.nome
There is a relationship between tables?
– Marciano Machado
Has the id_occuren_ind in the table individuals which is foreign key of the table occurrences. Link 0.. N
– Marcelo C. França
@Marceloc.France approves the answer by marking if it is correct.
– Andrei Coelho