Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 11 - (Databases) – Queries and Reports This is a typical exam question. You will be asked to create a Report. However before you make the report.

Similar presentations


Presentation on theme: "Chapter 11 - (Databases) – Queries and Reports This is a typical exam question. You will be asked to create a Report. However before you make the report."— Presentation transcript:

1 Chapter 11 - (Databases) – Queries and Reports This is a typical exam question. You will be asked to create a Report. However before you make the report you have to make the query. The first step is to identify which of the following tasks are query and report based. Below I have identified the Query (Red) and Report Tasks (Green). Produce a report which: Shows only the records where the Model is MicroSE and the car has not been sold Shows only the fields VIN, Model, Power, Engine_size, Price, Colour, Location and Sold with their labels in full Fits on a single page wide Has a page orientation of landscape Sorts the data into ascending order of Location (Query also) Calculates the total number of MicroSE cars for sale Has the label Hybrid power cars for the total Includes the heading List of MicroSE cars in stock at the top of the report Has your name, Centre number and candidate number at the top of each page. www.yahmad.co.uk

2 Chapter 11 - (Databases) – Queries and Reports Query Task Includes the heading List of MicroSE cars in stock at the top of the report Shows only the records where the Model is MicroSE and the car has not been sold Search Criteria – MicroSE (Model) and No (Sold) 12 3 4 1) Click on Create >> Query Wizard. 2) Click OK and the Select all Fields. 3)Click Next * 2 4)Call the Query MicroSE cars in stock. Then click on Modify the query design.

3 Chapter 11 - (Databases) – Queries and Reports Query Task Includes the heading List of MicroSE cars in stock at the top of the report Shows only the records where the Model is MicroSE and the car has not been sold Search Criteria – MicroSE (Model) and No (Sold) 5 6 7 5) Enter the search criteria (MicroSE – in the Model field) and (No – in the Sold Field). 6) Click on Run. 7) View and Save the Query.

4 Chapter 11 - (Databases) – Queries and Reports Now Create the Report Shows only the fields VIN, Model, Power, Engine_size, Price, Colour, Location and Sold with their labels in full Sorts the data into ascending order of Location (Query also) Has a page orientation of landscape Fits on a single page wide Calculates the total number of MicroSE cars for sale Has the label Hybrid power cars for the total Has your name, Centre number and candidate number at the top of each page. 8) Select the fields shown in the question. VIN, Model, Power, Engine_size, Price, Colour, Location and Sold 9) Click Next 7) Sort by Location. 89 10

5 Chapter 11 - (Databases) – Queries and Reports Now Create the Report Has a page orientation of landscape Fits on a single page wide Calculates the total number of MicroSE cars for sale Has the label Hybrid power cars for the total Has your name, Centre number and candidate number at the top of each page. 11) Select the page orientation to Landscape and then click on Next. 12) Click on Finnish. 13) Click on View >> Layout View. 14) Format the sheet so all the labels and records are shown on a single page wide. 111312 14

6 Chapter 11 - (Databases) – Queries and Reports Now Create the Report Calculates the total number of MicroSE cars for sale Has the label Hybrid power cars for the total Has your name, Centre number and candidate number at the top of each page. 15) Click on View >> Design View. 16) Select Model and then the function tool. Click on Count Records. 17) Click on View >> Layout View. 18) Add the Label - Hybrid power cars 15 17 16 18

7 Chapter 11 - (Databases) – Queries and Reports Now Create the Report (2 nd Method of Formulas in Reports) Calculates the total number of MicroSE cars for sale Has the label Hybrid power cars for the total Has your name, Centre number and candidate number at the top of each page. Manual Entry of Formulas (Must be entered in the Report Footer) 1.Click on the Text Box Tool. Enter the relevant label and formula. Formulas =Sum([Field]) =Max([Field]) =Min([Field]) =Avg([Field])

8 Chapter 11 - (Databases) – Queries and Reports Now Create the Report (2 nd Method of Formulas in Reports) Has your name, Centre number and candidate number at the top of each page. 19) If you want your details to appear at top of each page you to insert a Label in the Page Header. Then write your details. 19


Download ppt "Chapter 11 - (Databases) – Queries and Reports This is a typical exam question. You will be asked to create a Report. However before you make the report."

Similar presentations


Ads by Google