M
Mark
I'm trying to run a single query that will give me the count of records in
each of three one-to-many tables. The first table consists of claims, the
second of invoices and the third of line items. The relationship is such
that one claim will consist of several invoices and each invoices will
consist of several line items. I've built a totals query to give me a count
of claims, a count of invoices and a count of line items. The problem is
that each column pulls the same count. I changed the query to a Select
Distinct, but I still get the same results. Is there a way to get the three
distinct counts in one query, or do I need to run separate query for each set?
I run into this type of problem often, so if there's an efficient way to
handle it, I'd sure like to know.
Thanks in advance. I already REALLY appreciate it.
each of three one-to-many tables. The first table consists of claims, the
second of invoices and the third of line items. The relationship is such
that one claim will consist of several invoices and each invoices will
consist of several line items. I've built a totals query to give me a count
of claims, a count of invoices and a count of line items. The problem is
that each column pulls the same count. I changed the query to a Select
Distinct, but I still get the same results. Is there a way to get the three
distinct counts in one query, or do I need to run separate query for each set?
I run into this type of problem often, so if there's an efficient way to
handle it, I'd sure like to know.
Thanks in advance. I already REALLY appreciate it.