Hello everyone,
I have a table with data on household members and their relationship to the head of the household.
Each record has a field ABHID which comprises of the AREA CODE [2], BUILDING NO[4] and HOUSEHOLD NO[2]
eg. 02014401 where AREACODE="02" , BUILDING NO ="0144" and HOUSEHOLD NO ="01"
Each record stores the relationship to Head which can be HEAD, SPOUSE, CHILD, PARTNER, RELATIVE or NON-RELATIVE
I would like to create a query to select only the household with nuclear families WITHIN AREA CODE i.e. those households with the relationship being either HEAD, SPOUSE, PARTNER and CHILD.
For example, if a household has 6 members - HEAD, SPOUSE and FOUR CHILDREN, the ABHID number should be counted once for that particular AREA CODE.
As long as a member of that household is a RELATIVE or NON-RELATIVE that household is not counted
Any suggestions on how I can do this??
Many thanks in advance
Will
I have a table with data on household members and their relationship to the head of the household.
Each record has a field ABHID which comprises of the AREA CODE [2], BUILDING NO[4] and HOUSEHOLD NO[2]
eg. 02014401 where AREACODE="02" , BUILDING NO ="0144" and HOUSEHOLD NO ="01"
Each record stores the relationship to Head which can be HEAD, SPOUSE, CHILD, PARTNER, RELATIVE or NON-RELATIVE
I would like to create a query to select only the household with nuclear families WITHIN AREA CODE i.e. those households with the relationship being either HEAD, SPOUSE, PARTNER and CHILD.
For example, if a household has 6 members - HEAD, SPOUSE and FOUR CHILDREN, the ABHID number should be counted once for that particular AREA CODE.
As long as a member of that household is a RELATIVE or NON-RELATIVE that household is not counted
Any suggestions on how I can do this??
Many thanks in advance
Will