November 23, 2005, 05:26 PM
TryFocusDuplication of Records
Hi guys,
Iam kind of novice in focus code.
Situation: -
HOLD <--
Field1 || Field2 || Field3
1 || A || john
1 || B || Mary
2 || C || Lisa
2 || D || Lori
2 || E || Sophy
3 || F || Kate
What I want is
SOME_HOLD1 <--
Field1 || Field2 || Field3
1 || A || john
2 || C || Lisa
3 || F || Kate
SOME_HOLD2 <--
Field1 || Field2 || Field3
1 || B || Mary
2 || D || Lori
I know one way of doing this with
Table file HOLD1
LIST Field2
bY Field1
End
I would appreciate some more efficient way attaching this problem
Thanks in Advance
November 23, 2005, 07:48 PM
StanSince noone else is biting, I'll ask if you can clarify this question a bit more. I'm not sure I understand what you are trying to do.
November 24, 2005, 03:39 AM
Tony AWould I be correct in thinking that you want the first occurence in hold file 1, the second in hold file 2 .. etc.?
If so you can use basically what you have -
TABLE FILE CAR
LIST CAR
BY COUNTRY
ON TABLE HOLD AS MYDATA
END
TABLE FILE MYDATA
PRINT *
IF LIST EQ 1
END
TABLE FILE MYDATA
PRINT *
IF LIST EQ 2
END
November 25, 2005, 10:59 AM
TryFocusTony A -
U r Perfect.
Actually I have a hold file of Huge Size.
Like
TABLE FILE CAR
LIST CAR
BY COUNTRY
ON TABLE HOLD AS MYDATA
END
List for CAR'S can go up to 40 and
Country's can go up to 20.
So Generating 40 Hold files dynamically and presenting all these 40 hold files in EXL2K wouldn't it be a Problem...?
I Wanted to know is there any better approach rather than this..?
Thanks in Advance