Hi All,
I have a container that has multiple salesId and i added a field to the salesTable let's say called booleanFlag.
i want to update all records in salesTable where the booleanFlag = false and where salesId is not equal to sales Ids in the container to booleanFlag = true
so let's say container has these salesId = 1,2 and 3
i want sth similar like this but instead i want to put values of container and i want to be efficient cause there might be alot of records.
update_recordset salesTable
setting booleanFlag= true
where salesTable.BooleanFalg == false
&& (salesTable.SaledId = 1
|| and salesTable.SaledId = 2
|| and salesTable.SaledId = 3);
Would this be considered effecient?
for (int i = 1; i <= conLen(cont); i )
{
ttsbegin;
SalesTable salesTable;
update_recordset salesTable
setting booleanFlag = false
where salesInvoice.SalesId == conPeek(cont, i)
&& booleanFlag != false;
ttscommit;
}