Sei sulla pagina 1di 5

declare

CURSOR cOrgs IS SELECT distinct a.org_id,a.revenue_source_primary_id wid


FROM member_finance_trans_history a
where a.trans_status='Successful' and todate(trans_date_time) between '0
1-JAN-08' and sysdate
and a.org_id in (19784,19802,20231,18536,1,22076,21180,
18297,11353,20034,19065,10052,18665)
order by a.org_id;
begin
For orgRec IN cOrgs loop
POP_DUE_INFO_BILLING(orgRec.org_id,orgRec.wid);
commit;
End loop;
end;
/
10027,10147,10063,19620,20035,20710,
11053,21788,18381,22086,19970,22105,
19871,21295,19076,20536,19203,19508,
12127,12151,20717,18609,19898,20976,
18758,18986,20608,20496,19328,12034,
20125,19867,19945,10867,22610,19183)

select count(*),org_id from due_information


where org_id in (19784,19802,20231,18536,1,22076,21180,
18297,11353,20034,19065,10052,18665)
group by org_id
order by org_id

Count
2633
2638
2639
2696
2725
2786
2815
2834
2837
2866
2882
2887
2921
2931
2939
2964
2966
2986
2999
3009
3021

Org_id
19784
19802
20231
18536
1
22076
21180
18297
11353
20034
19065
10052
18665
10027
10147
10063
19620
20035
20710
11053
21788

3027
3049
3051
3056
3057
3069
3104
3115
3124
3131
3194
3195
3198
3206
3235
3235
3236
3237
3243
3266
3293
3326
3339
3346
3356
3398
3408
3409
3419
3451
3458
3459
3463
3477
3507
3530
3555
3567
3583
3643
3676
3693
3712
3722
3727
3746
3754
3759
3810
3829
3846
3873
3879
3884
3890
3894
3952
3965
3971
3997

18381
22086
19970
22105
19871
21295
19076
20536
19203
19508
12127
12151
20717
18609
19898
20976
18758
18986
20608
20496
19328
12034
20125
19867
19945
10867
22610
19183
20266
11314
20142
19177
22118
11384
16300
10805
11910
18675
12095
21240
21782
20977
19978
11907
12163
19349
11444
19136
169
12177
10829
22093
18789
10524
19822
21894
19918
10219
22274
20228

3998
4051
4064
4065
4074
4093
4108
4139
4161
4187
4203
4236
4451
4481
4492
4519
4528
4550
4567
4576
4622
4636
4640
4648
4664
4675
4680
4702
4774
4918
4969
5003
5117
5150
5151
5264
5267
5283
5286
5290
5462
5500
5514
5549
5577
5634
5673
5696
5726
5773
5779
5856
5859
5983
6069
6071
6093
6125
6248
6301

10469
19570
11770
190
12152
10641
18825
18337
18834
20162
20323
18433
19305
20039
19231
20269
18399
19357
21631
11691
21118
20790
12157
20175
19392
11858
21455
21651
11167
11117
12150
21005
20252
20523
12277
20550
18490
16308
18749
20601
21352
36
21956
10620
20198
11408
21021
10651
10618
18591
20453
18564
11236
11100
18800
11414
22330
19485
106
10732

6402
6447
6493
6502
6508
6517
6576
6593
6702
6858
6931
6935
7066
7135
7141
7359
7446
7535
7614
7628
7823
7829
7899
7902
7902
7931
8242
8286
8348
8382
8415
8434
8489
8530
8584
8611
8683
8932
8942
8969
9038
9091
9292
9795
9821
9825
10131
10621
10860
11204
11330
11357
11743
11799
12202
12324
12345
12521
12523
12656

12268
18655
11734
18682
20259
18838
10623
19073
18753
18312
11966
18928
22171
51
11536
19295
12032
171
21713
21154
19700
29
10644
11513
21081
23727
183
11649
111
10559
10451
18919
22790
10216
18769
20734
108
10566
84
21366
20508
37
11800
11944
22687
20057
18295
67
21297
48
11843
10617
20990
10561
23
62
11902
10344
11197
11611

12679
12733
13027
13252
13285
13836
14417
14699
14990
15393
15617
16159
16680
17531
17585
17608
17789
19014
20396
22035
30014
32231
35262
35291
38738
43022
72082
98593
100236
107580
113680

20033
11235
10105
18949
10204
11720
19261
128
11410
10974
10897
103
10171
10057
18676
18697
11363
10538
19476
19217
11784
10273
184
10861
10125
10085
42
10799
88
180
10863

*************Need to check*******************
2512
188
2321
10225
2506
10297
2250
10806
2314
11608
2395
16299
2508
18706
2417
18782
2244
18873
2312
18878
2477
19813
2253
20072
2455
20477
2320
20954
2476
21255
2332
21496
2513
21503
2490
22131
2485
22203

Potrebbero piacerti anche