ITEC5 Lec5.5
ITEC5 Lec5.5
ITEC5 Lec5.5
APPLICATIONS
ITEC 5A – Lecture 5.5
Query Data
• Query data is used in the following:
• Queries that being used to retrieve data from a table or to make
calculation are called select queries.
• As tables grow in size they can have hundreds of thousands of
records, which makes it impossible for the user to pick out specific
records from that specific table.
• Queries that add, change, or delete data are called action queries.
• Queries can be used to supply data for a form or report.
• In a well-designed database, the data that presented by using a
form or report is often located in different tables.
Query Data
• Create a Simple Query
1. Select Create ribbon, under the category Queries, select Query
Design.
Query Data
• Create a Simple Query
2. In the Tables tab, on the Show Table dialog, double-click the
desired table/s and then close the dialog box.
Query Data
• Create a Simple Query
3. In the selected table, double-click all the fields which you want to
see as result of the query.
Query Data
• Create a Simple Query
4. All the selected data will be added to the Query Design Grid
that consists of:
• Field: Field name.
• Table: Current table selected.
• Sort: Either Ascending/Descending.
• Show: To show in the Query.
• Criteria: Specific criteria you want to do in the specific field (such as
calculations, sorting, etc.)
Query Data
• Create a Simple Query
5. Once all the necessary data is selected, save Query and click
run under Design Ribbon.
Query Data and Criteria
• Concatenation in Query
• To concatenate text (String data) in Query, under the Query
Design Grid. In Field, add (expr: [fieldname] + [fieldname2]. . . .).