Hi,
There are different ways you can do that. One would be to use a Chunk Loop Start with a chunk size equal to the number of rows that should be repeated, then inside the loop you use a Column Appender to add your extra column. Then you add a Loop End to collect everything.
Kind regards,
Alexander
If your database is extremely large for a loop solution (or you dislike loops in general), then you should be able to use the rank node to generate a grouped row count then reference those numbers to fill the values in via an if expression or the Value Lookup node.