I have 2 tables in my database, one call pessoas
and another call resultado
, I am filling the result table with the draws made by mega sena, the result table has the fields:
data, dez1, dez2, dez3, dez4, dez5, dez6
The people table already has the fields:
nome, dez1, dez1, dez3, dez4, dez5, dez6
I would like to make a select where it shows me exactly which balls people have hit, in case they show the tens that are the same in both tables, they do not have a foreign key.