Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need unique id for each record

Hi All,

              I need unique id for each record in year field.

Eg:

Year                        ID

2009 - 2010              1

2010 - 2011              2

2011 - 2012              3

Can any one help me.

Thanks,

Antony.

8 Replies
SunilChauhan
Champion II
Champion II

can you be more specific with your requirement.

as u already have unique id.

Sunil Chauhan
Not applicable
Author

Hi,

Try with autonumber function

autonumber(expression[ , AutoID] )

Hope this will help you.

Thanks & Regards

Upendra

Not applicable
Author

II think Antony with the picture illustrates how he wants it to look like.

Try function:

rowno().

Load Year,

rowno() as ID;

FROM ......

/Danne

Not applicable
Author

I tried by autonumber an Rowno() but its not coming....

Not applicable
Author

Hi Sunil,

I have given an example on above....

Not applicable
Author

Hi Upendra/Danne,

         Can you send an example application.

Not applicable
Author

This should work:

LOAD RowNo() as ID,

          Num(Year(CREATED),'00','####') as Year;

SQL SELECT *

FROM  Table X;

Not applicable
Author

Hi,

try with this:

LOAD

RecNo() as ID,

...

regards