ejlwolf
12/5/2005 8:50:00 PM
Is there a way to build a QueryBuildRange with an OR on 2 tables (see sql
statement below for better description)?
I want to create a query dynamically with the same results as the sql
statement in the code below. Basically if InventSum.OnOrder == 0 OR
InventDim.InventLocationID == some location.
void GetOnHand(InventLocationId loc)
{
InventSum invSum;
InventDim invDim;
while select invSum join invDim
where invSum.InventDimId == invDim.inventDimId &&
invSum.AvailPhysical > 0 &&
(invSum.OnOrder == 0 || invDim.InventLocationId == loc)
{
print invDim.inventSerialId + ' ' + invDim.InventLocationId + '
' + int2str(invSum.OnOrder);
}
}
Thanks,