Darren Duncan schreef:
> If you take ...
> ... and divide it by ...
> ... the result is ...
> I'm not sure if Divide has an equivalent in SQL.
A verbose way to do it:
FROM T_abc_xyz NATURAL INNER JOIN T_xz
GROUP BY C_abc
= (SELECT Count(*) FROM T_xz);
This basically filters the INNER JOIN result-set to only keep those
subsets that have the required number of rows.
It requires that the rows of each table are unique, so there can not be
another (b,x) in T_abc_xyz.
That is a normal requirement.