I have a table, with each record being a separate person. The fields I have are:
I need to write a query that returns all records that have people aged both under 18 AND over 18 living in the same address.
Just to clarify, I need the records to have the same address, and to have someone under 18 living there as well as someone over 18 living there. If two records have the same address but only under 18s living there, they shouldn't be returned.
I know I can use AND criteria for the Age field, but not sure how to specify that the Address field has to be the same too.
Any help is much apppreciated
- Name
- Age
- Address
I need to write a query that returns all records that have people aged both under 18 AND over 18 living in the same address.
Just to clarify, I need the records to have the same address, and to have someone under 18 living there as well as someone over 18 living there. If two records have the same address but only under 18s living there, they shouldn't be returned.
I know I can use AND criteria for the Age field, but not sure how to specify that the Address field has to be the same too.
Any help is much apppreciated