Skip to Content

Generate key by specific number in BODS

Hello, I would like to ask on what is the best way to generate a key based on scenario below

Let's say I have 1000 records with ID of 01A, I want to group this into 199 items each. So it will be like

01A 1(199 times)

01A 2(199 times)

01A 3(199 times) etc.

how do we achieve this in BODS?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 28, 2019 at 11:55 AM

    Please do not post simultaneously on multiple platforms. The answer you've received in the DS Learning Room is also valid here :)

    In a Query transform add an extra column of type int and map it to (gen_row_num()-1) / 199 + 1

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 29, 2019 at 12:33 AM

    Thanks and that's noted Dirk. I added an additional scenario in the learning room. Hope you can check again

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.