Presentation is loading. Please wait.

Presentation is loading. Please wait.

CPSC 203 Introduction to Computers Tutorial 03 & 29 By Jie (Jeff) Gao.

Similar presentations


Presentation on theme: "CPSC 203 Introduction to Computers Tutorial 03 & 29 By Jie (Jeff) Gao."— Presentation transcript:

1 CPSC 203 Introduction to Computers Tutorial 03 & 29 By Jie (Jeff) Gao

2 19 & 20 October 2004CPSC 203 Tutorials by Jie Gao 2 Queries A view of your data showing records (that meet some criteria) from one or more tables. A query itself does not contain data. Data comes from a table or some related tables. A query only contain the criteria.

3 19 & 20 October 2004CPSC 203 Tutorials by Jie Gao 3 Query Wizard An easy step by step interface to create a query –Can create queries with (part of the) fields from one or multiple tables –Limited functionality: cannot set criteria about fields’ values

4 19 & 20 October 2004CPSC 203 Tutorials by Jie Gao 4 Query Design View Powerful interface to create all kinds of queries –Add tables –Drag fields to grids –Set criteria –Decide how to sort –Show a field or not –Build custom fields

5 19 & 20 October 2004CPSC 203 Tutorials by Jie Gao 5 Use Both Wizard and Design View In the last step of the wizard, choose “Open in design view” It’s faster to select fields in the wizard; but criteria can only be set in design view

6 19 & 20 October 2004CPSC 203 Tutorials by Jie Gao 6 Build Custom Fields Use the expression builder –Right click in the field box and choose “Build …” –You can construct a field from existing objects, built-in functions and operators Make sure you choose the fields from current query –The query has to be saved before you can see existing fields in Expression Builder

7 19 & 20 October 2004CPSC 203 Tutorials by Jie Gao 7 Queries in Assignment 3 You need to figure out which table(s) the fields are from. 1. Some fields from Employee table, no criteria 2. Fields from both Employee and Account, Description in Account table should be “Savings” 3. Fields from Employee, Project and WorksOn, you need to build a custom field 4. Fields from Employee, Project, WorksOn and Department, Hours Worked in WorksOn should be greater than 80


Download ppt "CPSC 203 Introduction to Computers Tutorial 03 & 29 By Jie (Jeff) Gao."

Similar presentations


Ads by Google