I am pulling my hair out trying to figure out how to make this work in a query so thought I would ask for any suggestions.
I have 2 queries, lets call one "Cats" and one "Dogs", the only key is "address". I am trying to build another query that will produce one row that combines the data results from both the "Cats" and "Dogs" queires. What I want to wind up with is a row of data for an address that has both "Cat" data and "Dog" data on it. In the situation I have, I have data in the "Cats" query when I run it separatly and no data in the "Dogs" query. So when I run the new query to combine the data, I get nothing. If I put data in the "Dogs" tables, I will get results, BUT, I will not always have data in both of them so I need to have the query.
I have tried a union of the 2 but that doesn't work because the data for each is different. Also, if I have "Cat" data but no "Dog" data, I get nothing. I want to get a row if I have either exist. It seems like it should be so simple, however, I just can't get the results I want. Hope this makes sense!!
I have 2 queries, lets call one "Cats" and one "Dogs", the only key is "address". I am trying to build another query that will produce one row that combines the data results from both the "Cats" and "Dogs" queires. What I want to wind up with is a row of data for an address that has both "Cat" data and "Dog" data on it. In the situation I have, I have data in the "Cats" query when I run it separatly and no data in the "Dogs" query. So when I run the new query to combine the data, I get nothing. If I put data in the "Dogs" tables, I will get results, BUT, I will not always have data in both of them so I need to have the query.
I have tried a union of the 2 but that doesn't work because the data for each is different. Also, if I have "Cat" data but no "Dog" data, I get nothing. I want to get a row if I have either exist. It seems like it should be so simple, however, I just can't get the results I want. Hope this makes sense!!
Comment