S
Stefan
I have an external medical billing database I am linking to.
I am working with 3 tables Deposit, Payment, Transaction
When creating a transaction (medical procedure for billing) a unique charge
entry# is created.
You post the payments through the deposit table (unique deposit#) which
stores them in the payment table. There are typically payments for many
patients on the same check.
In the payment table a unique payment entry# is created. In the payment
table there is also a charge entry# field for reference to the corresponding
charge entry#.
Each charge item(medical procedure) typically has an insurance payment a
discount or disallowed amount.
In the transaction table an entry of each these fields is also created. So
there is a unique charge entry# and unique payment entry#.
So without being too confusing for every charge entry# in the transaction
table there can be many related payment entry# (payments, discounts etc....)
In my query I only want the charge entry# to appear 1 time but I am getting
the same charge entry# for each related payment entry#. (So I will get the
same 2 charges if there is a payment and a discount.)
I tried to group by but this doesn't work since the fields are all in the
same transaction table.
I appreciate any Help!
Stefan
I am working with 3 tables Deposit, Payment, Transaction
When creating a transaction (medical procedure for billing) a unique charge
entry# is created.
You post the payments through the deposit table (unique deposit#) which
stores them in the payment table. There are typically payments for many
patients on the same check.
In the payment table a unique payment entry# is created. In the payment
table there is also a charge entry# field for reference to the corresponding
charge entry#.
Each charge item(medical procedure) typically has an insurance payment a
discount or disallowed amount.
In the transaction table an entry of each these fields is also created. So
there is a unique charge entry# and unique payment entry#.
So without being too confusing for every charge entry# in the transaction
table there can be many related payment entry# (payments, discounts etc....)
In my query I only want the charge entry# to appear 1 time but I am getting
the same charge entry# for each related payment entry#. (So I will get the
same 2 charges if there is a payment and a discount.)
I tried to group by but this doesn't work since the fields are all in the
same transaction table.
I appreciate any Help!
Stefan