Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello!
Help me please ...
I have the following table and need to create a new column with a numeric sequence according to the amount of photos of each product.
I wish the results were as shown below:
LOAD idProduct,
urlPhoto,
if( peek(idProduct) = idProduct, peek(Sequence)+1, 1) as Sequence
RESIDENT photos;
LOAD idProduct,
urlPhoto,
if( peek(idProduct) = idProduct, peek(Sequence)+1, 1) as Sequence
RESIDENT photos;
Thank you!
I think much easier is
autonumber(Recno(), idNumber) as Sequence
-Rob