Need help on a query to generate a two incremental values on below table.
Both the BatchNo and BatchSequenceNo should begin at 1.
The BatchSequenceNo should increment by 1, upto 500 rows.
At 501 row, the BatchNo should be incremented by 1,(ie
Both the BatchNo and BatchSequenceNo should begin at 1.
The BatchSequenceNo should increment by 1, upto 500 rows.
At 501 row, the BatchNo should be incremented by 1,(ie