for ( Var v : left.getIdScope().getVars() )
{
if ( right.getIdScope().hasColumnForVar(v) )
{
ScopeEntry sLeft = left.getIdScope().findScopeForVar(v) ;
ScopeEntry sRight = right.getIdScope().findScopeForVar(v) ;
SqlExpr c = joinCondition(joinType, sLeft, sRight) ;
conditions.add(c) ;
c.addNote("Join var: "+v) ;
}