Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit b3f2d38

Browse files
dmessingskyhit
authored andcommitted
removed outer joins to address table and connected country code to comp_country_code in coder table by linking user id = coder id
1 parent f812d57 commit b3f2d38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/resources/sql/challenge-feeder/detail/get_registrants.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ select
2020
, outer resource_info ri4
2121
, outer resource_info ri5
2222
, outer informixoltp\:algo_rating ar
23-
, outer(common_oltp\:user_address_xref uax, common_oltp\:address adr, common_oltp\:country ct)
23+
, common_oltp\:country ct
24+
, coder c
2425
where
2526
p.project_id = rur.project_id
2627
and rur.resource_id = ri1.resource_id
@@ -34,7 +35,6 @@ select
3435
and pcl.project_category_id = p.project_category_id
3536
and ar.coder_id = u.user_id
3637
and ar.algo_rating_type_id=3
37-
and uax.user_id = u.user_id
38-
and uax.address_id = adr.address_id
39-
and adr.country_code = ct.country_code
38+
and c.coder_id = u.user_id
39+
and c.comp_country_code = ct.country_code
4040
and {filter}

0 commit comments

Comments
 (0)