Hello All,
This is similar to a previous posting, but different enough that I can’t figure out how to make it work from an excellent reply to that posting from MrBill.
Here goes.
I have a simple 3-table report: MEMBER, SUBSCRIPTION and DETAIL.
The MEMBER table holds member info, the SUBSCRIPTION table holds the subscription info for the member and the DETAIL table holds info on the member’s subscription level.
The MEMBER and SUBSCRIPTION tables have a typical one-to-many relationship. The MEMBER and DETAIL tables have a one-to-one relationship
The MEMBER table has a field called ‘Type’ that indicates the member’s category. Members are either Individuals (IN), Companies (CO) or Branches (BR).
The MEMBER table also has a field called ‘Company_ID’. All records – with the exception of (CO) records – should have this field populated with the ID of the related (CO) records. The hierarchy being: CO -> BR -> IN.
A company’s branch (BR) may purchase a subscription to one of our products. Individuals (IN) who work for that branch may be granted access to an (on-line) subscription. If they are, it is indicated in the DETAIL table where the branch (BR) ID is entered --- this is the MEMBER.ID for a BR member category.
For example, ACME Company has a branch, “ACME New York” (ID #1234), that purchased one of our on-line subscription products. “ACME New York” then granted access to this product to 5 of it’s employees. Therefore if Jane Doe (ID #5678) is an employee of “ACME New York” and has been granted access to this product, she would then have #1234 populated in the DETAIL.Branch_ID field of her matching record giving her access to this product. ONLY branch (BR) records can do this!
I need to create a report that returns those branch (BR) records where they have purchased one of our on-line products but have NOT granted access to any of their employees. That is, like in the example above, Jane Doe (ID #5678) would NOT have #1234 populated in the DETAIL.Branch_ID field of her matching record.
How to do this?!?!?! Is it possible to search for NULL values? Am I making this more complicated than I need to?
Any/All help in this would be greatly appreciated!!!
Thanks,
Tom
This is similar to a previous posting, but different enough that I can’t figure out how to make it work from an excellent reply to that posting from MrBill.
Here goes.
I have a simple 3-table report: MEMBER, SUBSCRIPTION and DETAIL.
The MEMBER table holds member info, the SUBSCRIPTION table holds the subscription info for the member and the DETAIL table holds info on the member’s subscription level.
The MEMBER and SUBSCRIPTION tables have a typical one-to-many relationship. The MEMBER and DETAIL tables have a one-to-one relationship
The MEMBER table has a field called ‘Type’ that indicates the member’s category. Members are either Individuals (IN), Companies (CO) or Branches (BR).
The MEMBER table also has a field called ‘Company_ID’. All records – with the exception of (CO) records – should have this field populated with the ID of the related (CO) records. The hierarchy being: CO -> BR -> IN.
A company’s branch (BR) may purchase a subscription to one of our products. Individuals (IN) who work for that branch may be granted access to an (on-line) subscription. If they are, it is indicated in the DETAIL table where the branch (BR) ID is entered --- this is the MEMBER.ID for a BR member category.
For example, ACME Company has a branch, “ACME New York” (ID #1234), that purchased one of our on-line subscription products. “ACME New York” then granted access to this product to 5 of it’s employees. Therefore if Jane Doe (ID #5678) is an employee of “ACME New York” and has been granted access to this product, she would then have #1234 populated in the DETAIL.Branch_ID field of her matching record giving her access to this product. ONLY branch (BR) records can do this!
I need to create a report that returns those branch (BR) records where they have purchased one of our on-line products but have NOT granted access to any of their employees. That is, like in the example above, Jane Doe (ID #5678) would NOT have #1234 populated in the DETAIL.Branch_ID field of her matching record.
How to do this?!?!?! Is it possible to search for NULL values? Am I making this more complicated than I need to?
Any/All help in this would be greatly appreciated!!!
Thanks,
Tom