We have a question regarding the sample SQL and sample results, with respect to Step 10.7 (10 LSACalculated Data Quality.sql). Line 161 of the sample SQL states that RelationshipToHoH is either Null or not between 1 and 5. When the original Enrollment.csv file is filtered for this, 5 rows are returned (EnrollmentIDs NXS10221157, NXS11021257, NXS11427925, RRH15826969, and RRH15826987). Line 158 of the sample SQL has Enrollment.csv data joined on HouseholdID and EnrollmentCoC. In the original Enrollment.csv file, there are no values for EnrollmentCoC for these 5 individuals, likely because they are NOT heads of household. It seems as if EnrollmentCoC, from the HoH, should first be getting applied to ALL members of the same HouseholdID. Is this perhaps something SQL is inherently doing, or is this a discrepancy between the sample SQL and the sample results?

We have a question regarding the sample SQL and sample results, with respect to Step 10.7 (10 LSACalculated Data Quality.sql). Line 161 of the sample SQL states that RelationshipToHoH is either Null or not between 1 and 5. When the original Enrollment.csv file is filtered for this, 5 rows are returned (EnrollmentIDs NXS10221157, NXS11021257, NXS11427925, RRH15826969, and RRH15826987). Line 158 of the sample SQL has Enrollment.csv data joined on HouseholdID and EnrollmentCoC. In the original Enrollment.csv file, there are no values for EnrollmentCoC for these 5 individuals, likely because they are NOT heads of household. It seems as if EnrollmentCoC, from the HoH, should first be getting applied to ALL members of the same HouseholdID. Is this perhaps something SQL is inherently doing, or is this a discrepancy between the sample SQL and the sample results?