Well, you have to do it yourself.
Suggestion: Keep a list of the indices processed and skip all followers
For the list you need a small Stored Procedure that you add to
your SQL SELECT in the WHERE clause.
CREATE PROCEDURE SQLUSER.DUPL(value VARCHAR, id INTEGER)
RETURNS INTEGER
LANGUAGE OBJECTSCRIPT
{
set used=$d(^||dupl(value))
set ^||dupl(value,id)=$i(^||dupl(value))
quit used
}And in the SELECT
SELECT id, sickindex, . . . . .
FROM your.data
WHERE DUPL(sickindex,id) < 1As a side effect, you create a list of affected indices.
I used a PPG to avoid the need to clear it before use.
If you are interested in the duplicate, you need to change the global name
and add some cleanup before use
- Log in to post comments
.png)