Skip to content

Possible discrepancy in 10.7 between SQL and Results #1518

Description

@evaripatis

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?

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions