I am trying to devise a query such that I can produce
rows that are similar. An example should give an idea
of what I am trying to accomplish.
My prospective data set is similar to the following:
FName Address InvoiceFlag BusPartner
---------------------------------------------
Bob 123 Main COMPLETE 1234567
Joe W Elm St PENDING 1234588
Bob 123 Main BEGINNING 1234567
Sue Foxwood St COMPLETE 1234599
What I would like to do is grab all the records that are flagged as COMPLETE but also the records that are linked by Business Partner. I presume some form of subselect will be required grabbing the BusPartner where InvoiceFlag is COMPLETE?
rows that are similar. An example should give an idea
of what I am trying to accomplish.
My prospective data set is similar to the following:
FName Address InvoiceFlag BusPartner
---------------------------------------------
Bob 123 Main COMPLETE 1234567
Joe W Elm St PENDING 1234588
Bob 123 Main BEGINNING 1234567
Sue Foxwood St COMPLETE 1234599
What I would like to do is grab all the records that are flagged as COMPLETE but also the records that are linked by Business Partner. I presume some form of subselect will be required grabbing the BusPartner where InvoiceFlag is COMPLETE?