office.name = $l
- attach table to each field
{table=location, column=office, alias="a", pk="id"}.{leaf=name}
-
join
on . = ?. join location a on a.id = user.office -
select .
select a.name
- attach table to each field
-
join
-
select <parent.alias>.
select a.name
office.manager.name = $l
{table=user, alias="user"}.{table=location, column=office, alias="a", pk="id"}.{table=user, column=manager, alias="b", pk="id"}.{leaf=name}