I have these tables
AssigenmentList –linksto —School,AgeGroup
Users will have birthday attached to it
- AgeGroup in turn linked to many ages like AgeGroup 3-4 is linked to
one to manywith 3,4 in numerical format
Now i want all the Assignment list which are linked to particular SCHOOL belong to same age as the age of Child
As a general rule:
You use
inner joinifa.idBmust have match to add the row to the resultset. Left outer join if the mere presence ofa.idB(left side) is enough to project the row.The trick is to navigate from the starting table to the last joining the columns that ties them.