@@ -19,7 +19,13 @@ LEFT OUTER JOIN project_info pi1 ON pi1.project_id = p.project_id and pi1.proj
19
19
WHERE p .project_status_id = 1
20
20
and p .project_category_id in (7 ,14 ,39 ) -- exclude UI Prototype track as well
21
21
and p .project_id not in (select project_id from contest_project_xref where contest_id in (673 , 583 )) -- make sure we exclude from tco
22
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
22
+ and p .project_id not in
23
+ ( SELECT contest_id FROM contest_eligibility
24
+ WHERE contest_id NOT IN
25
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
26
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
27
+ AND group_id = 20000002 )
28
+ ) -- include challenges from Anemoi
23
29
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
24
30
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 ) -- exclude projects for fun and university challenges
25
31
and p .project_id not in (30070720 , 30070724 , 30070725 , 30070727 ) -- IBM Hackathon Challenges to be excluded
@@ -42,7 +48,13 @@ LEFT OUTER JOIN project_info pi1 ON pi1.project_id = p.project_id and pi1.proj
42
48
WHERE p .project_status_id = 1
43
49
and p .project_category_id in (7 ,14 ,39 ) -- exclude UI Prototype track as well
44
50
and p .project_id not in (select project_id from contest_project_xref where contest_id in (674 , 583 )) -- make sure we exclude from tco
45
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
51
+ and p .project_id not in
52
+ ( SELECT contest_id FROM contest_eligibility
53
+ WHERE contest_id NOT IN
54
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
55
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
56
+ AND group_id = 20000002 )
57
+ ) -- include challenges from Anemoi
46
58
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
47
59
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 ) -- exclude projects for fun and university challenges
48
60
-- and mod(p.project_id, 2) = 0
@@ -65,7 +77,13 @@ LEFT OUTER JOIN project_info pi1 ON pi1.project_id = p.project_id and pi1.proj
65
77
WHERE p .project_status_id = 1
66
78
and p .project_category_id in (7 ,14 ,39 ) -- exclude UI Prototype track as well
67
79
and p .project_id not in (select project_id from contest_project_xref where contest_id in (675 , 583 )) -- make sure we exclude from tco
68
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
80
+ and p .project_id not in
81
+ ( SELECT contest_id FROM contest_eligibility
82
+ WHERE contest_id NOT IN
83
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
84
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
85
+ AND group_id = 20000002 )
86
+ ) -- include challenges from Anemoi
69
87
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
70
88
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 ) -- exclude projects for fun and university challenges
71
89
-- and mod(p.project_id, 2) = 0
@@ -87,7 +105,13 @@ LEFT OUTER JOIN project_info pi1 ON pi1.project_id = p.project_id and pi1.proj
87
105
WHERE p .project_status_id = 1
88
106
and p .project_category_id in (7 ,14 ,39 ) -- exclude UI Prototype track as well
89
107
and p .project_id not in (select project_id from contest_project_xref where contest_id in (676 , 583 )) -- make sure we exclude from tco
90
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
108
+ and p .project_id not in
109
+ ( SELECT contest_id FROM contest_eligibility
110
+ WHERE contest_id NOT IN
111
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
112
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
113
+ AND group_id = 20000002 )
114
+ ) -- include challenges from Anemoi
91
115
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
92
116
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
93
117
-- and mod(p.project_id, 2) = 0
@@ -120,7 +144,13 @@ WHERE p.project_status_id = 1
120
144
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- if the challlenge is tagged as QA
121
145
)
122
146
and p .project_id not in (select project_id from contest_project_xref where contest_id in (668 , 583 )) -- make sure we exclude from tco
123
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
147
+ and p .project_id not in
148
+ ( SELECT contest_id FROM contest_eligibility
149
+ WHERE contest_id NOT IN
150
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
151
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
152
+ AND group_id = 20000002 )
153
+ ) -- include challenges from Anemoi
124
154
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
125
155
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
126
156
-- and mod(p.project_id, 2) = 0
@@ -148,7 +178,14 @@ WHERE p.project_status_id = 1
148
178
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- if the challlenge is tagged as QA
149
179
)
150
180
and p .project_id not in (select project_id from contest_project_xref where contest_id in (669 , 583 )) -- make sure we exclude from tco
151
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
181
+ and p .project_id not in
182
+ ( SELECT contest_id FROM contest_eligibility
183
+ WHERE contest_id NOT IN
184
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
185
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
186
+ AND group_id = 20000002 )
187
+ ) -- include challenges from Anemoi
188
+
152
189
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
153
190
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
154
191
-- and mod(p.project_id, 2) = 0
@@ -176,7 +213,14 @@ WHERE p.project_status_id = 1
176
213
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- if the challlenge is tagged as QA
177
214
)
178
215
and p .project_id not in (select project_id from contest_project_xref where contest_id in (670 , 583 )) -- make sure we exclude from tco
179
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
216
+ and p .project_id not in
217
+ ( SELECT contest_id FROM contest_eligibility
218
+ WHERE contest_id NOT IN
219
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
220
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
221
+ AND group_id = 20000002 )
222
+ ) -- include challenges from Anemoi
223
+
180
224
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
181
225
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
182
226
-- and mod(p.project_id, 2) = 0
@@ -204,7 +248,13 @@ WHERE p.project_status_id = 1
204
248
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- if the challlenge is tagged as QA
205
249
)
206
250
and p .project_id not in (select project_id from contest_project_xref where contest_id in (671 , 583 )) -- make sure we exclude from tco
207
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
251
+ and p .project_id not in
252
+ ( SELECT contest_id FROM contest_eligibility
253
+ WHERE contest_id NOT IN
254
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
255
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
256
+ AND group_id = 20000002 )
257
+ ) -- include challenges from Anemoi
208
258
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
209
259
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
210
260
-- and mod(p.project_id, 2) = 0
@@ -226,7 +276,13 @@ LEFT OUTER JOIN project_info pi82 ON pi82.project_id = p.project_id and pi82.pro
226
276
WHERE p .project_status_id = 1
227
277
and p .project_category_id in (16 , 17 , 20 , 21 , 30 , 32 , 34 )
228
278
and p .project_id not in (select project_id from contest_project_xref where contest_id in (663 , 583 )) -- make sure we exclude from tco
229
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
279
+ and p .project_id not in
280
+ ( SELECT contest_id FROM contest_eligibility
281
+ WHERE contest_id NOT IN
282
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
283
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
284
+ AND group_id = 20000002 )
285
+ ) -- include challenges from Anemoi
230
286
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
231
287
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
232
288
-- and mod(p.project_id, 2) = 0
@@ -244,7 +300,13 @@ LEFT OUTER JOIN project_info pi82 ON pi82.project_id = p.project_id and pi82.pro
244
300
WHERE p .project_status_id = 1
245
301
and p .project_category_id in (16 , 17 , 20 , 21 , 30 , 32 , 34 )
246
302
and p .project_id not in (select project_id from contest_project_xref where contest_id in (664 , 583 )) -- make sure we exclude from tco
247
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
303
+ and p .project_id not in
304
+ ( SELECT contest_id FROM contest_eligibility
305
+ WHERE contest_id NOT IN
306
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
307
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
308
+ AND group_id = 20000002 )
309
+ ) -- include challenges from Anemoi
248
310
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
249
311
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
250
312
-- and mod(p.project_id, 2) = 0
@@ -262,7 +324,13 @@ LEFT OUTER JOIN project_info pi82 ON pi82.project_id = p.project_id and pi82.pro
262
324
WHERE p .project_status_id = 1
263
325
and p .project_category_id in (16 , 17 , 20 , 21 , 30 , 32 , 34 )
264
326
and p .project_id not in (select project_id from contest_project_xref where contest_id in (665 , 583 )) -- make sure we exclude from tco
265
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
327
+ and p .project_id not in
328
+ ( SELECT contest_id FROM contest_eligibility
329
+ WHERE contest_id NOT IN
330
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
331
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
332
+ AND group_id = 20000002 )
333
+ ) -- include challenges from Anemoi
266
334
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
267
335
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
268
336
-- and mod(p.project_id, 2) = 0
@@ -282,7 +350,13 @@ LEFT OUTER JOIN project_info pi82 ON pi82.project_id = p.project_id and pi82.pro
282
350
WHERE p .project_status_id = 1
283
351
and p .project_category_id in (16 , 17 , 20 , 21 , 30 , 32 , 34 )
284
352
and p .project_id not in (select project_id from contest_project_xref where contest_id in (666 , 583 )) -- make sure we exclude from tco
285
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
353
+ and p .project_id not in
354
+ ( SELECT contest_id FROM contest_eligibility
355
+ WHERE contest_id NOT IN
356
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
357
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
358
+ AND group_id = 20000002 )
359
+ ) -- include challenges from Anemoi
286
360
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
287
361
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 ) -- exclude projects for fun and university challenges
288
362
-- and mod(p.project_id, 2) = 0
@@ -303,7 +377,13 @@ LEFT OUTER JOIN project_info pi82 ON pi82.project_id = p.project_id and pi82.pro
303
377
WHERE p .project_status_id = 1
304
378
and p .project_category_id in (38 ,40 )
305
379
and p .project_id not in (select project_id from contest_project_xref where contest_id in (658 , 583 )) -- make sure we exclude from tco
306
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
380
+ and p .project_id not in
381
+ ( SELECT contest_id FROM contest_eligibility
382
+ WHERE contest_id NOT IN
383
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
384
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
385
+ AND group_id = 20000002 )
386
+ ) -- include challenges from Anemoi
307
387
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
308
388
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
309
389
-- and mod(p.project_id, 2) = 0
@@ -321,7 +401,13 @@ LEFT OUTER JOIN project_info pi82 ON pi82.project_id = p.project_id and pi82.pro
321
401
WHERE p .project_status_id = 1
322
402
and p .project_category_id in (38 ,40 )
323
403
and p .project_id not in (select project_id from contest_project_xref where contest_id in (659 , 583 )) -- make sure we exclude from tco
324
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
404
+ and p .project_id not in
405
+ ( SELECT contest_id FROM contest_eligibility
406
+ WHERE contest_id NOT IN
407
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
408
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
409
+ AND group_id = 20000002 )
410
+ ) -- include challenges from Anemoi
325
411
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
326
412
and p .tc_direct_project_id not in (16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
327
413
-- and mod(p.project_id, 2) = 0
@@ -339,7 +425,13 @@ LEFT OUTER JOIN project_info pi82 ON pi82.project_id = p.project_id and pi82.pro
339
425
WHERE p .project_status_id = 1
340
426
and p .project_category_id in (38 ,40 )
341
427
and p .project_id not in (select project_id from contest_project_xref where contest_id in (660 , 583 )) -- make sure we exclude from tco
342
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
428
+ and p .project_id not in
429
+ ( SELECT contest_id FROM contest_eligibility
430
+ WHERE contest_id NOT IN
431
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
432
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
433
+ AND group_id = 20000002 )
434
+ ) -- include challenges from Anemoi
343
435
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
344
436
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
345
437
-- and mod(p.project_id, 2) = 0
@@ -357,7 +449,13 @@ LEFT OUTER JOIN project_info pi82 ON pi82.project_id = p.project_id and pi82.pro
357
449
WHERE p .project_status_id = 1
358
450
and p .project_category_id in (38 ,40 )
359
451
and p .project_id not in (select project_id from contest_project_xref where contest_id in (661 , 583 )) -- make sure we exclude from tco
360
- and p .project_id not in (select ce .contest_id from contest_eligibility ce)
452
+ and p .project_id not in
453
+ ( SELECT contest_id FROM contest_eligibility
454
+ WHERE contest_id NOT IN
455
+ (select contest_id from contest_eligibility ce inner join common_oltp:group_contest_eligibility gce
456
+ ON ce .contest_eligibility_id = gce .contest_eligibility_id
457
+ AND group_id = 20000002 )
458
+ ) -- include challenges from Anemoi
361
459
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
362
460
and mod(p .project_id , 2 ) = 0
363
461
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 ) -- exclude projects for fun and university challenges
0 commit comments