SlideShare une entreprise Scribd logo
1  sur  52
PowerPoint Presentation to Accompany GO! with Microsoft® Access 2010 Chapter 2 Sort and Query a Database
Objectives Open an Existing Database Create Table Relationships Sort Records in a Table Create a Query in Design View Create a New Query from an Existing Query
Objectives Sort Query Results Specify Criteria in a Query Specify Numeric Criteria in a Query Use Compound Criteria Create a Query Based on More Than One Table
Objectives Use Wildcards in a Query Use Calculated Fields in a Query  Calculate Statistics and Group Data in a Query Create a Crosstab Query
Open an Existing Database You can open a database file and save it with a new name. The Message Bar is the area below the Ribbon that displays information such as security alerts. The Enable Content button—when you know the database is safe to use on your computer
Open an Existing Database
Create Table Relationships Access databases are relational databases, they connect to other tables through common fields. Common fields are fields that contain the same data in more than one table. After you have a table for each subject in your database, you must provide a way to connect the data in the tables when you need meaningful information.
Create Table Relationships To connect the data in your tables, create common fields in related tables, and then define table relationships. A relationship is an association established between two tables based on common fields. Once established, you create a query, a form, or a report that displays information from more than one table.
Create Table Relationships
Create Table Relationships ,[object Object],[object Object],[object Object]
Create Table Relationships ,[object Object]
Foreign key—field in the related table that connects the primary key in another table
The one side—typically the primary key
Referential integrity—set of rules to ensure that the data between related tables is valid,[object Object]
Displays between the two tables,[object Object]
Sort Records in a Table Sort records on two or more fields: Outermost sort field—first level of sorting Innermost sort field—second level of sorting For example, you might want to sort first by the Last Name field (outermost sort field), and then by the First Name field (innermost sort field).
Sort Records in a Table Sorting records: Ascending order sorts text alphabetically (A to Z) and sorts numbers from the lowest number to the highest number. Descending order sorts text in reverse.
Create a Query in Design View Query Answers a question Creates a subset of records, according to your specifications Select query—database object that retrieves (selects) specific data from one or more tables Query Design view—creates complex queries
Create a Query in Design View Data source—table or tables where a query selects its data
Create a Query in Design View ,[object Object]
Table area (upper area)—displays field lists for tables used in the query
Design grid (lower area)—displays design for the query,[object Object],[object Object]
Sort Query Results Sort results of a query in ascending or descending order in either Datasheet view or Design view.
Sort Query Results Design view—results displayed in a specified sort order, or for sorted results in a report Fields with a Sort designation are sorted from left to right. Sorted field on left becomes the outermost sort field. Sorted field on right becomes the innermost sort field. Sorted results not what you intended? Be sure fields are displayed from left to right according to the groupings desired.
Sort Query Results
Specify Criteria in a Query Queries locate information based on criteria. Criteria  Are conditions that identify the specific records you are looking for Enable you to ask specific questions to get specific results
Specify Criteria in a Query
Specify Criteria in a Query Locate records where data is missing Missing records can be located using Is Null—empty—as the criteria the field Is Not Null—displays only records where a value has been entered as the criteria
Specify Numeric Criteria in a Query Numeric data can be set as fields. Design your table setting using data type for fields that will contain numbers, currency, or dates so mathematical calculations can be performed.
Specify Numeric Criteria in a Query
Specify Numeric Criteria in a Query Comparison operators—symbols that evaluate each field value Can determine if it is the same (=), greater than (>), less than (<), or in between a range of values as specified by the criteria. Equal (=) is assumed, if no comparison operator is specified.
Specify Numeric Criteria in a Query Between . . . And operator—a comparison operator that looks for values within a range
Use Compound Criteria Compound criteria—to specify more than one condition—criteria—in a query Compound criteria use AND and OR logical operators. AND condition requires records to meet all parts of the specified criteria. OR condition specifies multiple criteria for a single field, or multiple criteria for different fields and displays records that meet any of the conditions. Logical operators enable entry of criteria for the same field or different fields.
Use Compound Criteria
Create a Query Based on More Than One Table Relational database—retrieve information from more than one table Tables are joined by relating the primary key field in one table to a foreign key field in another.  Creates a relationship Enables inclusion of data from more than one table in a query When extracting data from multiple tables, the information on the Table row is helpful, especially when different tables include the same field names.
Create a Query Based on More Than One Table
Use Wildcards in a Query Wildcard characters—serve as a placeholder for one or more unknown characters in the criteria Use wildcard characters in place of the characters: Asterisk (*) is a placeholder to match one or more characters. Question mark (?) is a wildcard that is used to search for unknown single characters.
Use Wildcards in a Query
Use Calculated Fields in a Query Calculated field—queries created from calculated values are stored here A calculated field stores the value of a mathematical operation. Multiply two fields together without having to include a specific field for this amount in the table, which reduces the size of the database and provides more flexibility.
Use Calculated Fields in a Query Calculated field query two steps: Name the field that will store the calculated values. Write the expression—the formula—that performs the calculation. Each field name used in the calculation must be enclosed within its own pair of square brackets.
Use Calculated Fields in a Query Zoom dialog box—more working space enables you to see the entire calculation
Use Calculated Fields in a Query ,[object Object],[object Object]
Calculate Statistics and Group Data in a Query
Calculate Statistics and Group Data in a Query
Calculate Statistics and Group Data in a Query Using aggregate functions in a query
Create a Crosstab Query A crosstab query: Uses an aggregate function for data that can be grouped by two types of information  Displays data in a compact, spreadsheet-like format Always has at least one row heading, one column heading, and one summary field Use a crosstab query to summarize a large amount of data in a small space so that is easy to read
Create a Crosstab Query
Covered Objectives Open an Existing Database Create Table Relationships Sort Records in a Table Create a Query in Design View Create a New Query from an Existing Query
Covered Objectives Sort Query Results Specify Criteria in a Query Specify Numeric Criteria in a Query Use Compound Criteria Create a Query Based on More Than One Table
Covered Objectives Use Wildcards in a Query Use Calculated Fields in a Query  Calculate Statistics and Group Data in a Query Create a Crosstab Query
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2011 Pearson Education, Inc.   Publishing as Prentice Hall
MS Access Ch 2 PPT

Contenu connexe

Tendances (20)

MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
Microsoft excel
Microsoft excelMicrosoft excel
Microsoft excel
 
Intro to Excel Basics: Part I
Intro to Excel Basics: Part IIntro to Excel Basics: Part I
Intro to Excel Basics: Part I
 
Introduction to microsoft word 2007
Introduction to microsoft word 2007Introduction to microsoft word 2007
Introduction to microsoft word 2007
 
Ms access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal sahaMs access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal saha
 
MS Word Advanced Training
MS Word Advanced TrainingMS Word Advanced Training
MS Word Advanced Training
 
Database Keys & Relationship
Database Keys & RelationshipDatabase Keys & Relationship
Database Keys & Relationship
 
Ms powerpoint 2013
Ms powerpoint 2013Ms powerpoint 2013
Ms powerpoint 2013
 
use and create spreadsheet.ppt
use and create spreadsheet.pptuse and create spreadsheet.ppt
use and create spreadsheet.ppt
 
Word Processing
Word ProcessingWord Processing
Word Processing
 
Word for Beginners
Word for BeginnersWord for Beginners
Word for Beginners
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
Ms access 2010
Ms access 2010Ms access 2010
Ms access 2010
 
Ms powerpoint
Ms powerpointMs powerpoint
Ms powerpoint
 
Access lesson 04 Creating and Modifying Forms
Access lesson 04 Creating and Modifying FormsAccess lesson 04 Creating and Modifying Forms
Access lesson 04 Creating and Modifying Forms
 
Windows 7: The Basics
Windows 7:  The BasicsWindows 7:  The Basics
Windows 7: The Basics
 
Ms access
Ms accessMs access
Ms access
 
Ms word 2010
Ms word 2010Ms word 2010
Ms word 2010
 
Ms Access
Ms AccessMs Access
Ms Access
 
Microsoft Word PPT.pdf
Microsoft Word PPT.pdfMicrosoft Word PPT.pdf
Microsoft Word PPT.pdf
 

En vedette

MS Access Ch 1 PPT
MS Access Ch 1 PPTMS Access Ch 1 PPT
MS Access Ch 1 PPTprsmith72
 
D I T211 Chapter 2 ( Lab 1)
D I T211    Chapter 2 ( Lab 1)D I T211    Chapter 2 ( Lab 1)
D I T211 Chapter 2 ( Lab 1)askme
 
MS Word Chapter 3 PPT
MS Word Chapter 3 PPTMS Word Chapter 3 PPT
MS Word Chapter 3 PPTprsmith72
 
computer virus and related legal issues
computer virus and related legal issuescomputer virus and related legal issues
computer virus and related legal issuesShweta Ghate
 
MS Word Chapter 2 PPT
MS Word Chapter 2 PPTMS Word Chapter 2 PPT
MS Word Chapter 2 PPTprsmith72
 
MS Word Chapter 1 PPT
MS Word Chapter 1 PPTMS Word Chapter 1 PPT
MS Word Chapter 1 PPTprsmith72
 
Access lesson05
Access lesson05Access lesson05
Access lesson05Aram SE
 
presentation on computer virus
presentation on computer viruspresentation on computer virus
presentation on computer virusYogesh Singh Rawat
 
Access lesson 03 Creating Queries
Access lesson 03 Creating QueriesAccess lesson 03 Creating Queries
Access lesson 03 Creating QueriesAram SE
 
Microsoft word ppt presentation
 Microsoft word  ppt presentation Microsoft word  ppt presentation
Microsoft word ppt presentationvethics
 
ANTIVIRUS AND VIRUS Powerpoint presentation
ANTIVIRUS AND VIRUS Powerpoint presentationANTIVIRUS AND VIRUS Powerpoint presentation
ANTIVIRUS AND VIRUS Powerpoint presentationabhijit chintamani
 
Word 2007 Presentation
Word 2007 PresentationWord 2007 Presentation
Word 2007 PresentationKristen T
 
Microsoft word basics ppt
Microsoft word basics pptMicrosoft word basics ppt
Microsoft word basics pptjdbutler13
 

En vedette (17)

MS Access Ch 1 PPT
MS Access Ch 1 PPTMS Access Ch 1 PPT
MS Access Ch 1 PPT
 
D I T211 Chapter 2 ( Lab 1)
D I T211    Chapter 2 ( Lab 1)D I T211    Chapter 2 ( Lab 1)
D I T211 Chapter 2 ( Lab 1)
 
MS Word Chapter 3 PPT
MS Word Chapter 3 PPTMS Word Chapter 3 PPT
MS Word Chapter 3 PPT
 
computer virus and related legal issues
computer virus and related legal issuescomputer virus and related legal issues
computer virus and related legal issues
 
MS Word Chapter 2 PPT
MS Word Chapter 2 PPTMS Word Chapter 2 PPT
MS Word Chapter 2 PPT
 
COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)
 
Types of Virus & Anti-virus
Types of Virus & Anti-virusTypes of Virus & Anti-virus
Types of Virus & Anti-virus
 
MS Word Chapter 1 PPT
MS Word Chapter 1 PPTMS Word Chapter 1 PPT
MS Word Chapter 1 PPT
 
Access lesson05
Access lesson05Access lesson05
Access lesson05
 
presentation on computer virus
presentation on computer viruspresentation on computer virus
presentation on computer virus
 
Access lesson 03 Creating Queries
Access lesson 03 Creating QueriesAccess lesson 03 Creating Queries
Access lesson 03 Creating Queries
 
Microsoft word ppt presentation
 Microsoft word  ppt presentation Microsoft word  ppt presentation
Microsoft word ppt presentation
 
Ms access
Ms accessMs access
Ms access
 
Ms access 2007
Ms access 2007Ms access 2007
Ms access 2007
 
ANTIVIRUS AND VIRUS Powerpoint presentation
ANTIVIRUS AND VIRUS Powerpoint presentationANTIVIRUS AND VIRUS Powerpoint presentation
ANTIVIRUS AND VIRUS Powerpoint presentation
 
Word 2007 Presentation
Word 2007 PresentationWord 2007 Presentation
Word 2007 Presentation
 
Microsoft word basics ppt
Microsoft word basics pptMicrosoft word basics ppt
Microsoft word basics ppt
 

Similaire à MS Access Ch 2 PPT (20)

Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010
 
Cis145 Final Review
Cis145 Final ReviewCis145 Final Review
Cis145 Final Review
 
MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
 
CIS145 Final Review
CIS145 Final ReviewCIS145 Final Review
CIS145 Final Review
 
Cis145 Final Review
Cis145 Final ReviewCis145 Final Review
Cis145 Final Review
 
Excel 2007 Unit H
Excel 2007 Unit HExcel 2007 Unit H
Excel 2007 Unit H
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
003.query
003.query003.query
003.query
 
1 Week 6 - What Well Be Working On This Week In th.docx
1 Week 6 - What Well Be Working On This Week  In th.docx1 Week 6 - What Well Be Working On This Week  In th.docx
1 Week 6 - What Well Be Working On This Week In th.docx
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
 
Module 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxModule 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptx
 
New slides access
New slides accessNew slides access
New slides access
 
10359485
1035948510359485
10359485
 
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docx
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docxAB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docx
AB Database Assignment 1 –FOR STUDENTS TO COMPLETEFirst create .docx
 
MS Access 2010 tutorial 5
MS Access 2010 tutorial 5MS Access 2010 tutorial 5
MS Access 2010 tutorial 5
 
Ppt Lesson 13
Ppt Lesson 13Ppt Lesson 13
Ppt Lesson 13
 
Queries
QueriesQueries
Queries
 
AIA101.2.Access Queries Accelerated
AIA101.2.Access Queries AcceleratedAIA101.2.Access Queries Accelerated
AIA101.2.Access Queries Accelerated
 
Advanced Excel ppt
Advanced Excel pptAdvanced Excel ppt
Advanced Excel ppt
 
Access.05
Access.05Access.05
Access.05
 

Plus de prsmith72

MS PowerPoint Ch 3 PPT
MS PowerPoint Ch 3 PPTMS PowerPoint Ch 3 PPT
MS PowerPoint Ch 3 PPTprsmith72
 
MS PowerPoint Ch 2 PPT
MS PowerPoint Ch 2 PPTMS PowerPoint Ch 2 PPT
MS PowerPoint Ch 2 PPTprsmith72
 
MS PowerPoint Ch 1 PPT
MS PowerPoint Ch 1 PPTMS PowerPoint Ch 1 PPT
MS PowerPoint Ch 1 PPTprsmith72
 
MS Access Ch 3 PPT
MS Access Ch 3 PPTMS Access Ch 3 PPT
MS Access Ch 3 PPTprsmith72
 
MS Excel Ch 3 PPT
MS Excel Ch 3 PPTMS Excel Ch 3 PPT
MS Excel Ch 3 PPTprsmith72
 
MS Excel Ch 2 PPT
MS Excel Ch 2 PPTMS Excel Ch 2 PPT
MS Excel Ch 2 PPTprsmith72
 
MS Excel Ch 1 PPT
MS Excel Ch 1 PPTMS Excel Ch 1 PPT
MS Excel Ch 1 PPTprsmith72
 
Common Features PPT
Common Features PPTCommon Features PPT
Common Features PPTprsmith72
 

Plus de prsmith72 (8)

MS PowerPoint Ch 3 PPT
MS PowerPoint Ch 3 PPTMS PowerPoint Ch 3 PPT
MS PowerPoint Ch 3 PPT
 
MS PowerPoint Ch 2 PPT
MS PowerPoint Ch 2 PPTMS PowerPoint Ch 2 PPT
MS PowerPoint Ch 2 PPT
 
MS PowerPoint Ch 1 PPT
MS PowerPoint Ch 1 PPTMS PowerPoint Ch 1 PPT
MS PowerPoint Ch 1 PPT
 
MS Access Ch 3 PPT
MS Access Ch 3 PPTMS Access Ch 3 PPT
MS Access Ch 3 PPT
 
MS Excel Ch 3 PPT
MS Excel Ch 3 PPTMS Excel Ch 3 PPT
MS Excel Ch 3 PPT
 
MS Excel Ch 2 PPT
MS Excel Ch 2 PPTMS Excel Ch 2 PPT
MS Excel Ch 2 PPT
 
MS Excel Ch 1 PPT
MS Excel Ch 1 PPTMS Excel Ch 1 PPT
MS Excel Ch 1 PPT
 
Common Features PPT
Common Features PPTCommon Features PPT
Common Features PPT
 

Dernier

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 

Dernier (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 

MS Access Ch 2 PPT

  • 1. PowerPoint Presentation to Accompany GO! with Microsoft® Access 2010 Chapter 2 Sort and Query a Database
  • 2. Objectives Open an Existing Database Create Table Relationships Sort Records in a Table Create a Query in Design View Create a New Query from an Existing Query
  • 3. Objectives Sort Query Results Specify Criteria in a Query Specify Numeric Criteria in a Query Use Compound Criteria Create a Query Based on More Than One Table
  • 4. Objectives Use Wildcards in a Query Use Calculated Fields in a Query Calculate Statistics and Group Data in a Query Create a Crosstab Query
  • 5. Open an Existing Database You can open a database file and save it with a new name. The Message Bar is the area below the Ribbon that displays information such as security alerts. The Enable Content button—when you know the database is safe to use on your computer
  • 6. Open an Existing Database
  • 7. Create Table Relationships Access databases are relational databases, they connect to other tables through common fields. Common fields are fields that contain the same data in more than one table. After you have a table for each subject in your database, you must provide a way to connect the data in the tables when you need meaningful information.
  • 8. Create Table Relationships To connect the data in your tables, create common fields in related tables, and then define table relationships. A relationship is an association established between two tables based on common fields. Once established, you create a query, a form, or a report that displays information from more than one table.
  • 10.
  • 11.
  • 12. Foreign key—field in the related table that connects the primary key in another table
  • 13. The one side—typically the primary key
  • 14.
  • 15.
  • 16. Sort Records in a Table Sort records on two or more fields: Outermost sort field—first level of sorting Innermost sort field—second level of sorting For example, you might want to sort first by the Last Name field (outermost sort field), and then by the First Name field (innermost sort field).
  • 17. Sort Records in a Table Sorting records: Ascending order sorts text alphabetically (A to Z) and sorts numbers from the lowest number to the highest number. Descending order sorts text in reverse.
  • 18. Create a Query in Design View Query Answers a question Creates a subset of records, according to your specifications Select query—database object that retrieves (selects) specific data from one or more tables Query Design view—creates complex queries
  • 19. Create a Query in Design View Data source—table or tables where a query selects its data
  • 20.
  • 21. Table area (upper area)—displays field lists for tables used in the query
  • 22.
  • 23. Sort Query Results Sort results of a query in ascending or descending order in either Datasheet view or Design view.
  • 24. Sort Query Results Design view—results displayed in a specified sort order, or for sorted results in a report Fields with a Sort designation are sorted from left to right. Sorted field on left becomes the outermost sort field. Sorted field on right becomes the innermost sort field. Sorted results not what you intended? Be sure fields are displayed from left to right according to the groupings desired.
  • 26. Specify Criteria in a Query Queries locate information based on criteria. Criteria Are conditions that identify the specific records you are looking for Enable you to ask specific questions to get specific results
  • 28. Specify Criteria in a Query Locate records where data is missing Missing records can be located using Is Null—empty—as the criteria the field Is Not Null—displays only records where a value has been entered as the criteria
  • 29. Specify Numeric Criteria in a Query Numeric data can be set as fields. Design your table setting using data type for fields that will contain numbers, currency, or dates so mathematical calculations can be performed.
  • 31. Specify Numeric Criteria in a Query Comparison operators—symbols that evaluate each field value Can determine if it is the same (=), greater than (>), less than (<), or in between a range of values as specified by the criteria. Equal (=) is assumed, if no comparison operator is specified.
  • 32. Specify Numeric Criteria in a Query Between . . . And operator—a comparison operator that looks for values within a range
  • 33. Use Compound Criteria Compound criteria—to specify more than one condition—criteria—in a query Compound criteria use AND and OR logical operators. AND condition requires records to meet all parts of the specified criteria. OR condition specifies multiple criteria for a single field, or multiple criteria for different fields and displays records that meet any of the conditions. Logical operators enable entry of criteria for the same field or different fields.
  • 35. Create a Query Based on More Than One Table Relational database—retrieve information from more than one table Tables are joined by relating the primary key field in one table to a foreign key field in another. Creates a relationship Enables inclusion of data from more than one table in a query When extracting data from multiple tables, the information on the Table row is helpful, especially when different tables include the same field names.
  • 36. Create a Query Based on More Than One Table
  • 37. Use Wildcards in a Query Wildcard characters—serve as a placeholder for one or more unknown characters in the criteria Use wildcard characters in place of the characters: Asterisk (*) is a placeholder to match one or more characters. Question mark (?) is a wildcard that is used to search for unknown single characters.
  • 38. Use Wildcards in a Query
  • 39. Use Calculated Fields in a Query Calculated field—queries created from calculated values are stored here A calculated field stores the value of a mathematical operation. Multiply two fields together without having to include a specific field for this amount in the table, which reduces the size of the database and provides more flexibility.
  • 40. Use Calculated Fields in a Query Calculated field query two steps: Name the field that will store the calculated values. Write the expression—the formula—that performs the calculation. Each field name used in the calculation must be enclosed within its own pair of square brackets.
  • 41. Use Calculated Fields in a Query Zoom dialog box—more working space enables you to see the entire calculation
  • 42.
  • 43. Calculate Statistics and Group Data in a Query
  • 44. Calculate Statistics and Group Data in a Query
  • 45. Calculate Statistics and Group Data in a Query Using aggregate functions in a query
  • 46. Create a Crosstab Query A crosstab query: Uses an aggregate function for data that can be grouped by two types of information Displays data in a compact, spreadsheet-like format Always has at least one row heading, one column heading, and one summary field Use a crosstab query to summarize a large amount of data in a small space so that is easy to read
  • 48. Covered Objectives Open an Existing Database Create Table Relationships Sort Records in a Table Create a Query in Design View Create a New Query from an Existing Query
  • 49. Covered Objectives Sort Query Results Specify Criteria in a Query Specify Numeric Criteria in a Query Use Compound Criteria Create a Query Based on More Than One Table
  • 50. Covered Objectives Use Wildcards in a Query Use Calculated Fields in a Query Calculate Statistics and Group Data in a Query Create a Crosstab Query
  • 51. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2011 Pearson Education, Inc.   Publishing as Prentice Hall

Notes de l'éditeur

  1. Figure 2.2
  2. Figure 2.4
  3. Figure 2.5
  4. Figure 2.6
  5. Figure 2.8
  6. Figure 2.13
  7. Figure 2.14
  8. Figure 2.15
  9. Figure 2.17
  10. Figure 2.18
  11. Figure 2.19
  12. Figure 2.22
  13. Figure 2.27
  14. Figure 2.29
  15. Figure 2.31
  16. Figure 2.32
  17. Figure 2.36
  18. Figure 2.37
  19. Figure 2.40
  20. Figure 2.41
  21. Figure 2.42
  22. Figure 2.44
  23. Figure 2.45