Currently I am doing this query:
select a.x, b.x, c.x from number as a, customer as b, numbergroup as c where a.b = b.b and a.c = c.c and c.b = b.b
select a.x, b.x, c.x from number as a left join customer as b on a.b = b.b left join numbergroup as c on a.c = c.c and c.b = b.b