Access Query Types

Access supports a variety of query types. Here is a list, along with a brief description of each:

  • Select Query. These queries return data from one or more tables and display the results in a result table. The table is (usually) updatable, which means that we can change the data in the table and the changes will be reflected in the underlying tables. Select queries can also be used to group rows and calculate sums, counts, averages, and other types of totals for these groups.

  • Action Queries. These are queries that take some form of action. The action queries are:

    • Make-Table Query. A query that is designed to create a new table with data from existing tables.

    • Delete Query. A query that is used to delete rows from a given table or tables.

    • Append Query. A query that is used to append additional rows to the bottom of an existing table.

    • Update Query. A query that is used to make changes to one or more rows in a table.

  • SQL Queries. These are queries that must be entered in SQL View. The SQL queries are:

    • Union Query. A query that creates the union of two or more tables.

    • Pass-Through Query. A query that passes the uninterpreted SQL statement through to an external database server. (We will not discuss these queries in this book.)

    • Data-Definition Query. These are queries that use the DDL component of SQL, such as CREATE TABLE or CREATE INDEX.

  • Crosstab Query. This is a special type of select query that displays values in a spreadsheet format, with both row and column ...

Get Access Database Design and Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.