I have received a data request that I think will require 2 queries to complete. I have been asked to provide a list of accounts and insurance payments. The list will be limited to accounts that have SC Medicaid as a secondary insurance. That part is easy and the pertinent criteria and data elements are exampled as follows:
InsType InsuranceOrder InsRcpt
MDCD.SC 2 $3,273.59
I created the query to pull the above information by using MDCD.SC and 2 as criteria to get just those records. However, the requestor also wants to see from the record set produced above the primary InsType and the InsRcpt from it. Of course the InsuranceOrder for it would be 1. How might I accomplish this using what I have? Thanks in advance!
InsType InsuranceOrder InsRcpt
MDCD.SC 2 $3,273.59
I created the query to pull the above information by using MDCD.SC and 2 as criteria to get just those records. However, the requestor also wants to see from the record set produced above the primary InsType and the InsRcpt from it. Of course the InsuranceOrder for it would be 1. How might I accomplish this using what I have? Thanks in advance!