Hello !
SQ(x) is a query that return a single row (record).
The main query MQ(x,y, Calc:f(x,y)) use the value from "x" field in all rows (records) to compute values for "Calc" field.
Very simple data:
The question is:
SQ is executed for each row(record) in MQ or is calculated once then the value is used in each MQ's records ?
With other words, if I run SQ once and I store the value for x in a VBA variable (in order to use it in MQ) is a better approach than running nested queries ?
Or this does not matter (for speed) ?
SQ(x) is a query that return a single row (record).
The main query MQ(x,y, Calc:f(x,y)) use the value from "x" field in all rows (records) to compute values for "Calc" field.
Very simple data:
Code:
SQ: x MQ: x y Calc: [x]*[y] 3 3 1 3 3 2 6 3 3 9 3 4 12
The question is:
SQ is executed for each row(record) in MQ or is calculated once then the value is used in each MQ's records ?
With other words, if I run SQ once and I store the value for x in a VBA variable (in order to use it in MQ) is a better approach than running nested queries ?
Or this does not matter (for speed) ?
Comment