I created several tables:
Users:
chave primária
email
senha
Physical Detail:
user_id
altura
Personal Information:
user_id
estado_civil
Now I'm having trouble fetching cross-results.
Example: Find users with altura = 170
and at the same time estado_civil = casado
.
I tried to group the wheres
, but it's getting a bit complex, and worse, the results only bring values from the first table.