how to do a query
DESCRIPTION
How to do a Query. Database. Copy the Cars2 Database from ICT_STUD/GCSE Short Course/Mr C Cars Database. Example : Find all the Red Cars. 1 Click on the Query TAB. Click Here. 2 Double Click on ‘Create Query in Design View’. Double Click Here. 3 Choose the Table. Double Click on Cars. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/1.jpg)
How to do a Query
![Page 2: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/2.jpg)
Database
• Copy the Cars2 Database from ICT_STUD/GCSE Short Course/Mr C Cars Database
Example : Find all the Red Cars
![Page 3: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/3.jpg)
1 Click on the Query TAB
Click Here
![Page 4: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/4.jpg)
2 Double Click on ‘Create Query in Design View’
Double Click Here
![Page 5: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/5.jpg)
3 Choose the Table
Double Click on
Cars
![Page 6: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/6.jpg)
4 Close the ‘Show Table’ Dialogue Box
Click on the ‘Close’
Button
![Page 7: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/7.jpg)
5 Rearrange the ‘Query’ Window to look like below
![Page 8: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/8.jpg)
6 Select Fields
Double Click on each of the fields in turn (Car Reg, Make,Model, Colour,
Engine Size, Seats,Price so they appear in the ‘table’ below
![Page 9: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/9.jpg)
7 Choose Selection
We want ‘Red’ cars, so type in Red here.
![Page 10: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/10.jpg)
8 Save Query
Click on the ‘Save’ Icon
Then type in a suitable name into the dialogue box
![Page 11: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/11.jpg)
9 Close Design View
Click Here
![Page 12: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/12.jpg)
10 Test Query
Double Click on ‘Red Cars’ to Test
![Page 13: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/13.jpg)
11 Happy Days
Hopefully we can only see Red cars
![Page 14: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/14.jpg)
12 An ‘AND’ Query : Silver Cars Greater than 1300cc
![Page 15: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/15.jpg)
13 An ‘OR’ Query : Ford or Vauxhall Cars
![Page 16: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/16.jpg)
Questions 1
1. Nissan (NI) Cars
2. Cars with Leather Seats (L)
3. Cars more than 1300cc
4. Cars costing less than £4000
5. Cars with 3 Doors
6. Saloon (S) Cars
7. Cars with an ‘Automatic’ Gearbox
![Page 17: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/17.jpg)
Questions 2 (AND)
8. Ford Cars (FO) with Leather Seats (L)
9. Red Cars with 3 doors
10.Renault (RE) cars costing more than £7500
11.Silver Cars with an ‘Automatic’ Gear Box
12.Cars with an Engine greater than 1600cc and Leather Seats
13.Silver Micras
![Page 18: How to do a Query](https://reader036.vdocuments.mx/reader036/viewer/2022062314/56813d22550346895da6e6a2/html5/thumbnails/18.jpg)
Questions 3 (OR)
14.Cars with Leather (L) or Velour (V) Seats15.Silver or Blue Cars16.Ka or Micra cars17.Nissan (NI) or Renault (RE) cars18.4 or 5 door cars19.Cars registered in 2005 or 200620.Cars registered before 2005 or costing
less than £4000