I have 4 tables that I need to join in a single query where the result is:
%pre%
The tables look like this:
%pre%
I tried to do with INNER JOIN, but I'm still a beginner, and I could not, when I added the conversations went wrong, below what I tried:
%pre%
______ azszpr313556 ___
You can reach these values as follows:
%pre%
I was giving error because the %code% field was not in %code% .
The query would never give the result it expected because it had two %code% to two tables with associations other than the %code% table, and even correcting %code% would not be able to correctly count the occurrences in each of the tables. p>
______ azszpr313560 ___
If you are using %code% you can do this:
%pre%
Test: link
___