sql: improve join loop readability
sql: improve join loop readability

Introduce some useful boolean variables that encapsulate whether or not
nulls are desired on each side of the join.

petermattis/cockroach,maxlang/cockroach,maxlang/cockroach,maxlang/cockroach,glycerine/cockroach,glycerine/cockroach,paperstreet/cockroach,petermattis/cockroach,glycerine/cockroach,paperstreet/cockroach,vaibhavarora/cockroach,vaibhavarora/cockroach,petermattis/cockroach,paperstreet/cockroach,glycerine/cockroach,paperstreet/cockroach,paperstreet/cockroach,vaibhavarora/cockroach,petermattis/cockroach,maxlang/cockroach,vaibhavarora/cockroach,vaibhavarora/cockroach,vaibhavarora/cockroach,petermattis/cockroach,glycerine/cockroach,petermattis/cockroach,glycerine/cockroach,glycerine/cockroach,petermattis/cockroach,paperstreet/cockroach,vaibhavarora/cockroach,maxlang/cockroach,vaibhavarora/cockroach,maxlang/cockroach,maxlang/cockroach,petermattis/cockroach,paperstreet/cockroach,maxlang/cockroach,paperstreet/cockroach,glycerine/cockroach