Select queries
A select query is the most common type of query.
It retrieves data from one or more tables and displays the results in a datasheet where you can update the records (with some restrictions).
You can also use a select query to group records and calculate sums, counts, averages, and other types of totals.
Computer store example
Let’s consider the following database as an example. (More precisely, this is a database schema, or database layout, independent of the actual data it contains.)
It consists of 4 related tables, containing fields as indicated.
Let’s create a select query that shows only those records for customers in Miami.
We double-click “Create query in Design view” in the Database Window.
“Select Query” will be the default query type when we start in Design View, but we can go to the Query Type button to set it as desired.
Материалы на данной страницы взяты из открытых источников либо размещены пользователем в соответствии с договором-офертой сайта. Вы можете сообщить о нарушении.