My experience with Access 2010 is quite limited but I am trying to learn of course. The attached Access 2010 database contains three tables: 1) a Clients table that includes First, Last, and AcctNum, 2) a Securities table that contains SecSymbol, SecName, Coupon, MatDate, and Price, and 3) a Positions table that includes ClientID, SecuritiesID, and Quantity.
The database also includes 3 select queries: 1) tysonQ that shows all records that include the ticker symbol TSN, 2) a notTSNQ that excludes all records that do not include the ticker symbol TSN, and 3) a fullQ that is a table of all securities in the database.
My problem is this: the query that selects records that include the ticker symbol TSN works as I expect. The query that excludes the ticker symbol TSN works mathematically as I expect because it does exclude records with ticker TSN, but it also includes other clients that own other securities in addition to TSN.
What I am trying to accomplish is to develop a query that shows all clients who DO NOT own TSN. When comparing the tysonQ and the notTSNQ, I want to exclude the two portfolios that own TSN (Carla and Nubli) entirely from the notTSNQ. Carla and Nubli are included in the notTSNQ, even though their TSN positions are not, simply because they own other securities that are not TSN. I would like to eliminate the entire Carla and Nubli portfolios from the notTSNQ because they already own TSN. They are showing up in the notTSNQ because they also own other securities.
What I am trying to do in this example is find the portfolios that do not contain a position in the security TSN.
I have tried this a million different ways but am not smart enough to figure it out. Any help would be greatly appreciated. Thanks in advance.
Glenn