Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a table with Member ID as field name. Now I want to flag those Member ID's which are repeated in the table (More than once) while loading the table.
Regards,
H
Hi
Something like this:
LOAD MemberID,
If(Exists(MemberID), 1, 0) As RepeatFlag,
...
From Table;
Regards
Jonathan
While loading the table, order by Member ID, assign 1 to Flag, peek previous Member ID, if it matches the current Member ID, increment Flag by 1 else next Member ID.
Hi
Something like this:
LOAD MemberID,
If(Exists(MemberID), 1, 0) As RepeatFlag,
...
From Table;
Regards
Jonathan
Or something like this (after having loaded the data into a resident table):
Join(Table)
LOAD MemberID,
Count(MemberID) As IDCount,
Resident Table
Group By MemberID;
Regards
Jonathan