Hello, I am new at this, so bare with me. I am trying to retrieve data from my Microsoft Query set up. I have the following SQL statement:
What I want to do is retrieve cases that have a case party action of 'AD' and if not 'AD' then 'OI'...not both on the same case. How do I create my criteria to help retrieve the data that I am requesting? Also, I do not want all information that comes along with the case...I just want to see only the cases that have the case party action of 'AD' or 'OI' and that is all on the case...no further info.
I hope this makes sense. I hope that I am in the right forum for my question. Any suggestions will help.
Thanks!
Code:
SELECT Case_party_PHYSICAL_TABLE.JEboA, Case_party_PHYSICAL_TABLE.PARTY_TYPE_CODE, Case_party_PHYSICAL_TABLE.CP_NAME_LAST_BUSINESS, Case_party_PHYSICAL_TABLE.CP_NAME_FIRST, Case_party_PHYSICAL_TABLE.CP_NAME_MIDDLE, ((CASE_PARTY_ACTION_PHYT.CTmsA='AD') AND (Case_party_PHYSICAL_TABLE.PARTY_TYPE_CODE='DEF') AND
ORDER BY Case_party_PHYSICAL_TABLE.CP_NAME_LAST_BUSINESS
What I want to do is retrieve cases that have a case party action of 'AD' and if not 'AD' then 'OI'...not both on the same case. How do I create my criteria to help retrieve the data that I am requesting? Also, I do not want all information that comes along with the case...I just want to see only the cases that have the case party action of 'AD' or 'OI' and that is all on the case...no further info.
I hope this makes sense. I hope that I am in the right forum for my question. Any suggestions will help.
Thanks!