ACC: Using Criteria to Simulate Non-Equal Joins in QueriesLast reviewed: April 2, 1997Article ID: Q109956 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. Microsoft Access allows equi-joins and outer joins between tables. These joins show only rows where the values in the join fields match exactly, or there isn't a match at all in one of the tables (in the case of an outer join). This article describes how to create a query to show unequal (less than or greater than) data comparisons using the query grid's Criteria row when there is no join between the tables.
MORE INFORMATIONThe following example demonstrates how to find out if a set of buildings has square footage greater than or equal to the square footage requirements of a list of companies:
Client Min Sq Footage Building Sq Name Required Name Footage Address ---------------------------------------------------------------------- ABC Company 10000 The Emporium 10000 East Avenue ABC Company 10000 Twin Peaks 20000 401 4th Place Cats, Inc. 2500 Paragon Towers 4500 123 South St Cats, Inc. 2500 The Emporium 10000 East Avenue Cats, Inc. 2500 Twin Peaks 20000 401 4th Place XYZ Company 5000 The Emporium 10000 East Avenue XYZ Company 5000 Twin Peaks 20000 401 4th PlaceOnly buildings that have square footage greater than or equal to the minimum required by each company satisfy the expression in the Criteria row in the query. |
Keywords : kbusage QryJoin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |