Hello All,
I am trying to Join the 2 Select Queries below and not sure on how to. What i would like the results to show is a Fail for any user who has unapproved access.
The first Select statement checks the tbl named AAL_Matrix against the Tableau table and provides a "Fail" for anything with a null.
Second select statement, does the same check for the tbl named TblApprovedExceptions.
I would like to combine the results for both queries and only keep results where the user access was not found in both queries.
SELECT Tableau.*, "Fail" AS AccessVerification, Tableau.Access AS CurrentAccessRights
FROM Tableau LEFT JOIN AAL_Matrix ON (Tableau.Access=AAL_Matrix.[PrimaryRole]) AND (Tableau.AAL=AAL_Matrix.AAL)
WHERE (((AAL_Matrix.AAL) Is Null) AND ((AAL_Matrix.PrimaryRole) Is Null));
SELECT Tableau.*, "Fail" AS AccessVerification, Tableau.Access AS CurrentAccessRights
FROM Tableau LEFT JOIN TblApprovedExceptions ON (Tableau.Access = TblApprovedExceptions.Role) AND (Tableau.EID = TblApprovedExceptions.[EID])
WHERE (((TblApprovedExceptions.EID) Is Null) AND ((TblApprovedExceptions.Role) Is Null));
I am trying to Join the 2 Select Queries below and not sure on how to. What i would like the results to show is a Fail for any user who has unapproved access.
The first Select statement checks the tbl named AAL_Matrix against the Tableau table and provides a "Fail" for anything with a null.
Second select statement, does the same check for the tbl named TblApprovedExceptions.
I would like to combine the results for both queries and only keep results where the user access was not found in both queries.
SELECT Tableau.*, "Fail" AS AccessVerification, Tableau.Access AS CurrentAccessRights
FROM Tableau LEFT JOIN AAL_Matrix ON (Tableau.Access=AAL_Matrix.[PrimaryRole]) AND (Tableau.AAL=AAL_Matrix.AAL)
WHERE (((AAL_Matrix.AAL) Is Null) AND ((AAL_Matrix.PrimaryRole) Is Null));
SELECT Tableau.*, "Fail" AS AccessVerification, Tableau.Access AS CurrentAccessRights
FROM Tableau LEFT JOIN TblApprovedExceptions ON (Tableau.Access = TblApprovedExceptions.Role) AND (Tableau.EID = TblApprovedExceptions.[EID])
WHERE (((TblApprovedExceptions.EID) Is Null) AND ((TblApprovedExceptions.Role) Is Null));