10.11 data manipulation 2 queries. you will need… specimen 2007 paper 2 task c (a pdf) q 43 read...

22
10.11 Data Manipulation 2 Queries

Upload: robyn-osborne

Post on 04-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

10.11 Data Manipulation

2 Queries

Page 2: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

You will need…• Specimen 2007 Paper 2 Task C (a PDF) q 43• Read this question carefully before you start• The database 2007_Specimen that you saved

from section 1 opened in Access 2007

Page 3: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Click on the Create tab

Page 4: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Click on the Query Design button

Page 5: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Add the Sites table and Close

Page 6: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Double-click on Code to include it in the queryYou could also drag it down into the first column

Page 7: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

The Code criteria should be OC or AS

Page 8: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Run the query…

Page 9: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

… to check that you only see OC and AS

Page 10: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Return to Design View

Page 11: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Also use Country, Current ~Area, Potential Area

Page 12: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Click in the Field row of the next available column

Page 13: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Type Growth:[Potential Area]-[Current Area]You always need square brackets around fieldnames that have spaces in

Page 14: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Run the query…

Page 15: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

… and check the mathsDoes Growth = Potential Area – Current Area for each field?

Page 16: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Back to Design View…

Page 17: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

… and set Growth to be sorted in ascending orderThis can also be done in the Report stage

Page 18: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Run the query to check it

Page 19: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

Save the query…

Page 20: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

…with a suitable name e.g. Q43…

Page 21: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

… and close

Page 22: 10.11 Data Manipulation 2 Queries. You will need… Specimen 2007 Paper 2 Task C (a PDF) q 43 Read this question carefully before you start The database

End of section 2