Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a name field COM_NM .To each distinct COM_NM we need to assign sequential numbers --001,002,.......till the count of distinct COM_NM.
Can anybody give me exp:
Thanks
In the script, try this:
AutoNumber(COM_NM) as SEQ_NUM
nope
How about:
Test:
LOAD DISTINCT
Num( AutoNumber( COM_NM , 'COM_NMs' ) , '000' ) AS COM_NMs
RESIDENT
SomeSourceTable
ORDER BY
COM_NM;
Or ...
Load Distinct
Recno() as Sequential,
COM_NM
Resdent SomeTable;
What kind of reply is "nope"? Do you mean it gives an incorrect result, throws a script error, what?
-Rob
hi petter ,
Ur script is working but still has some problem .
i Will find it out and let u know . Thank u for script
HI Petter,
It is giving sequential numbers to all rows not to unique name.
Could any one tell for unique COM_NM
Petter's script should give you unique number for each distinct COM_NM. Would you mind sharing a sample???
It gives me sequential numbers for all COM_NM ,but not unique ...(sharing is not possible) ....
IF COM_NM is njjhuihjhbhjbhj,,,,it is repeated 35 times it gives me 001 to 035 number but not
001 for all..
Any help is appreciated