Presentation is loading. Please wait.

Presentation is loading. Please wait.

5.02 Understand database queries, forms, and reports used in business.

Similar presentations


Presentation on theme: "5.02 Understand database queries, forms, and reports used in business."— Presentation transcript:

1 5.02 Understand database queries, forms, and reports used in business.
Forms and Subforms 5.02 Understand database queries, forms, and reports used in business.

2 United Grocers Database
Four Tables 5.02 Understand database queries, forms, and reports used in business.

3 Diagram of Query Relationships
The primary key of the Grocery Products table (ISBN) is linked to the foreign key of the Purchase Orders table (ISBN). The primary key of the Purchase Orders table (Order No.) is linked to the primary key of the Orders table. The foreign key of the Orders table (Store ID) is linked to the primary key of the Customers table. 5.02 Understand queries, forms, and reports.

4 5.02 Understand queries, forms, and reports.
Query Logic The mission of the query is to find out what products were ordered by each customer. View the chart to follow the process used by the query to accomplish its mission. 5.02 Understand queries, forms, and reports.

5 5.02 Understand queries, forms, and reports.
Required Information Orders Table Store ID Order No. Purchase Orders Table Product ID. Quantity Grocery Products Table Product ID Product name Unit Price 5.02 Understand queries, forms, and reports.

6 Connection to Main Form
In order for the subform to communicate with the main form, a relationship between common fields must be established. Include the Store ID field from the Customers Table in the query 5.02 Understand queries, forms, and reports.

7 5.02 Understand queries, forms, and reports.
Query Results 5.02 Understand queries, forms, and reports.

8 5.02 Understand queries, forms, and reports.
Customers Form 5.02 Understand queries, forms, and reports.

9 5.02 Understand queries, forms, and reports.
Subform in Design View 5.02 Understand queries, forms, and reports.

10 5.02 Understand queries, forms, and reports.
Property Sheet 5.02 Understand queries, forms, and reports.

11 Form View of Orders for Store #410432
5.02 Understand queries, forms, and reports.

12 Form View of Order for Store #410474
5.02 Understand queries, forms, and reports.


Download ppt "5.02 Understand database queries, forms, and reports used in business."

Similar presentations


Ads by Google