@@ -21,8 +21,9 @@ WHERE p.project_status_id = 1
21
21
and p .project_id not in (select project_id from contest_project_xref where contest_id in (698 , 697 )) -- make sure we exclude from tco
22
22
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
23
23
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 ) -- exclude projects for fun and university challenges
24
- and p .project_id not in (30070720 , 30070724 , 30070725 , 30070727 ) -- IBM Hackathon Challenges to be excluded
24
+ -- and p.project_id not in (30070720, 30070724, 30070725, 30070727) -- IBM Hackathon Challenges to be excluded
25
25
-- and mod(p.project_id, 2) = 0
26
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
26
27
and not exists (SELECT 1 FROM comp_technology
27
28
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- exclude QA Challenges from Dev
28
29
and 1 = 1 ;
@@ -44,6 +45,7 @@ WHERE p.project_status_id = 1
44
45
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
45
46
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 ) -- exclude projects for fun and university challenges
46
47
-- and mod(p.project_id, 2) = 0
48
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
47
49
and not exists (SELECT 1 FROM comp_technology
48
50
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- exclude QA Challenges from Dev
49
51
and 1 = 1 ;
@@ -66,6 +68,7 @@ WHERE p.project_status_id = 1
66
68
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
67
69
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 ) -- exclude projects for fun and university challenges
68
70
-- and mod(p.project_id, 2) = 0
71
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
69
72
and not exists (SELECT 1 FROM comp_technology
70
73
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- exclude QA Challenges from Dev
71
74
and 1 = 1 ;
@@ -98,6 +101,7 @@ WHERE p.project_status_id = 1
98
101
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
99
102
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
100
103
-- and mod(p.project_id, 2) = 0
104
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
101
105
and 1 = 1 ;
102
106
103
107
-- Stage 2
@@ -124,6 +128,7 @@ WHERE p.project_status_id = 1
124
128
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
125
129
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
126
130
-- and mod(p.project_id, 2) = 0
131
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
127
132
and 1 = 1 ;
128
133
129
134
-- Stage 3
@@ -151,6 +156,7 @@ WHERE p.project_status_id = 1
151
156
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
152
157
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
153
158
-- and mod(p.project_id, 2) = 0
159
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
154
160
and 1 = 1 ;
155
161
156
162
@@ -172,6 +178,7 @@ WHERE p.project_status_id = 1
172
178
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
173
179
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
174
180
-- and mod(p.project_id, 2) = 0
181
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
175
182
and 1 = 1 ;
176
183
177
184
-- Stage 2
@@ -189,6 +196,7 @@ WHERE p.project_status_id = 1
189
196
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
190
197
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
191
198
-- and mod(p.project_id, 2) = 0
199
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
192
200
and 1 = 1 ;
193
201
194
202
-- Stage 3
@@ -206,6 +214,7 @@ WHERE p.project_status_id = 1
206
214
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
207
215
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
208
216
-- and mod(p.project_id, 2) = 0
217
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
209
218
and 1 = 1 ;
210
219
211
220
@@ -231,6 +240,7 @@ WHERE p.project_status_id = 1
231
240
-- and mod(p.project_id, 2) = 0
232
241
and not exists (SELECT 1 FROM comp_technology
233
242
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- exclude QA Challenges from F2F
243
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
234
244
and 1 = 1 ;
235
245
236
246
-- Stage 2
@@ -252,6 +262,7 @@ WHERE p.project_status_id = 1
252
262
-- and mod(p.project_id, 2) = 0
253
263
and not exists (SELECT 1 FROM comp_technology
254
264
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- exclude QA Challenges from F2F
265
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
255
266
and 1 = 1 ;
256
267
257
268
-- Stage 3
@@ -272,6 +283,7 @@ WHERE p.project_status_id = 1
272
283
-- and mod(p.project_id, 2) = 0
273
284
and not exists (SELECT 1 FROM comp_technology
274
285
WHERE comp_vers_id = pi1 .value AND technology_type_id = 78 ) -- exclude QA Challenges from F2F
286
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
275
287
and 1 = 1 ;
276
288
277
289
@@ -292,6 +304,7 @@ WHERE p.project_status_id = 1
292
304
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
293
305
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
294
306
-- and mod(p.project_id, 2) = 0
307
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
295
308
and 1 = 1 ;
296
309
297
310
-- Stage 2
@@ -309,6 +322,7 @@ WHERE p.project_status_id = 1
309
322
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
310
323
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
311
324
-- and mod(p.project_id, 2) = 0
325
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
312
326
and 1 = 1 ;
313
327
314
328
-- Stage 3
@@ -326,4 +340,5 @@ WHERE p.project_status_id = 1
326
340
and NVL(pi82 .value , 0 ) = 0 -- No TCO if these are tasks
327
341
and p .tc_direct_project_id not in (8943 , 16411 , 16412 , 16413 , 16406 , 16399 , 16407 )-- exclude projects for fun and university challenges
328
342
-- and mod(p.project_id, 2) = 0
343
+ and p .project_id not in (select ce .contest_id from contest_eligibility ce) -- excluding private challenges
329
344
and 1 = 1 ;
0 commit comments