amortillaro
Programmer
Hi guys: I have this query:
UPDATE EachPercent
SET (BlankPercentAlloc) = (
Select PercentAlloc From AllPercents
WHERE (EachPercent.Lx_Date >=
To_Date('01/04/2004', 'MM/DD/YYYY'))
And (EachPercent.Lx_Date <=
To_Date('01/18/2004', 'MM/DD/YYYY'))
AND (EachPercent.Lx_SeqNum = AllPercents.SeqNum)
);
The table EachPercent have about 100k records, and when the statement is processed I receive the msg that 100k rows processed.
How can I rewrite the update query in order to limit the processed rows to the ones who meet the Lx_Date condition?
UPDATE EachPercent
SET (BlankPercentAlloc) = (
Select PercentAlloc From AllPercents
WHERE (EachPercent.Lx_Date >=
To_Date('01/04/2004', 'MM/DD/YYYY'))
And (EachPercent.Lx_Date <=
To_Date('01/18/2004', 'MM/DD/YYYY'))
AND (EachPercent.Lx_SeqNum = AllPercents.SeqNum)
);
The table EachPercent have about 100k records, and when the statement is processed I receive the msg that 100k rows processed.
How can I rewrite the update query in order to limit the processed rows to the ones who meet the Lx_Date condition?