I have two tables:
Table 1: Formulas
FormulaId Formula Text 1 [Qty] * [Rect] 2 [Qty] * [Al] 3 [Mt] * [Cat]
You can use the Cartesian Product of the two tables as follows:
SELECT * FROM Formulas, Context
This would result in M * N rows.
M * N