Unmatched query multiple criteria

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tlou5831
    New Member
    • Feb 2008
    • 8

    Unmatched query multiple criteria

    I am attempting to compare 2 tables in my DB and find unmatched criteria.

    There are 2 different fields in each database that need to be compared.

    Tbl_AppUsers

    Role Settings
    INQ INQS
    INQ INQSO
    BASIC BALQU
    BASIC ENTRY

    Tbl_RoleSetting s

    Role Settings
    INQ INQS
    INQ INQSO
    BASIC BALQU
    BASIC ENTRY

    I would like to perform a query that the fields that basically says If TBL_APPUsers.Ro le + TBLAPPUsers.Set tings <> TBL_RoleSetting s.Role + TBL_.Settings show in the results in the query.

    I attempted to do this in the unmatched query wizard but you are only able to compare 1 field.

    Thanks for the help.
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Originally posted by Tlou5831
    I am attempting to compare 2 tables in my DB and find unmatched criteria.

    There are 2 different fields in each database that need to be compared.

    Tbl_AppUsers

    Role Settings
    INQ INQS
    INQ INQSO
    BASIC BALQU
    BASIC ENTRY

    Tbl_RoleSetting s

    Role Settings
    INQ INQS
    INQ INQSO
    BASIC BALQU
    BASIC ENTRY

    I would like to perform a query that the fields that basically says If TBL_APPUsers.Ro le + TBLAPPUsers.Set tings <> TBL_RoleSetting s.Role + TBL_.Settings show in the results in the query.

    I attempted to do this in the unmatched query wizard but you are only able to compare 1 field.

    Thanks for the help.
    Try this:

    Code:
    select * from Tbl_AppUsers where TBL_APPUsers.Role + TBLAPPUsers.Settings  not in (select TBL_RoleSettings.Role + TBL_.Settings from Tbl_RoleSettings)
    -- CK

    Comment

    • Tlou5831
      New Member
      • Feb 2008
      • 8

      #3
      Originally posted by ck9663
      Try this:

      Code:
      select * from Tbl_AppUsers where TBL_APPUsers.Role + TBLAPPUsers.Settings  not in (select TBL_RoleSettings.Role + TBL_.Settings from Tbl_RoleSettings)
      -- CK
      I receive the Enter Parameter value for the TBLRoleSettings table

      Comment

      Working...