Hi ksummers,
I can understand your question but before i propose some solution/advice, i need to understand as to how did you arrive at the below.
in work_records table, you have 7 records for state GA and you have two employees working in that state namely 5919 and 2335 but
1) how did you decide that first 4 records should go to 5919 and the remaining 3 records should go to 2335 ? any rationale behind this ?
OR
2) it is just that you have 7 recoreds and 2 emps, you gave some 4 to one emp say 5919 and the remaining 3 to emp 2335
So can you answer whether you pick 1 ) or 2) from this.
Main Topics
Browse All Topics





by: sdstuberPosted on 2008-12-02 at 21:56:10ID: 23083544
you don't need pl/sql, you can do it purely with sql.
This won't necessarily create the same sorting in the distribution, but it will create an even distribution.
If sorting is important, it can be modified with the row_number "order by" clauses
Select allOpen in new window