Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

RecNo()

Hi,

I have the below

distinct %B

usinessDate,

RecNo() as Rowid

//Group by %BusinessDate

Resident SMI_Collateral;

What I need to do is get unique days from the table and then assign an id so

1 01 jab 2015

2 02 jan 2015

Unfortunately, it duplicates the data, I need something a group by. I know I can do it i first get the unique date and then second step do the insertion into second temp table but should be way just to get the unique values with an incremental id next?

Thank you.

3 Replies
marcus_sommer

Maybe you need rowno - RecNo or RowNo?

- Marcus

TKendrick20
Partner - Specialist
Partner - Specialist

Try RowNo. Or, depending on where your data is coming from in the first place you could use IDENTITY(1,1) in a SQL SELECT to get similar functionality.

hic
Former Employee
Former Employee

It sounds like you should use Autonumber()... See Counters in the Load

HIC