1
I created several tables:
Users:
chave primária
email
senha
Physical Detail:
user_id
altura
Personal Data:
user_id
estado_civil
Now I’m having a hard time getting mixed results.
Example: find users with altura = 170
and at the same time with estado_civil = casado
.
I tried to group the wheres
, but it’s getting a little complex, and worse, the results only bring values from the first table.
I could post what you’ve tried ?
– gmsantos
You must pass the 3 Models to the 3 Tables and the result expected by the visa is very simple your doubt are
join
and aselect
with the fields you want to bring, By Usurarioprincipal Model you can bring all the information. So that I do not edit answer pass the models and tables please!– Maria