SlideShare a Scribd company logo
4
Most read
5
Most read
7
Most read
Ch-4
Working with Queries
Made by:
Sandhya Jeswani Panjwani
1
1. Relationships & Linking Tables
2. Query & its types
3. Creating a Select Query
Contents
4. Forms & its views
5. Creating a Form
6. Working with Reports
7. Let’s Know more
8. Career in IT
2
Relationships are links between the tables. Relationship works by matching data
in key fields (a field with the same name in both the tables). These matching
fields are the Primary key from one table and a Foreign key in other table.
Relationship between Tables
Foreign key is a value in one table that must match the Primary key in another table.
Example:- The given tables can be
linked using Roll No field.
 After creating relationships, you can create queries, forms and reports to display
information from several tables at once.
 After working with relationships, you must delete the relationship before you make
changes to the fields on which Relationship is based (Ex-Roll No fields).
 To delete relationships, select the Link line Press DELETE key. 3
Linking Tables (Making Relationships)
1) Open one of the table
Click Database Tools tab
in Show/Hide group
click Relationships button.
2) Show table dialog box opens
Select Students Personal Record table
click Add Select Result table click Add
 click Close button
3) Drag the Primary key of the
parent table over the Foreign
key in Child table (Roll No).
Parent
Table
Child
Table
4) A link line will join the tables
Edit Relationships dialog box
opens click Create button.
4
Query
A Query is like a simple question that displays specific records from a table that meet
a certain criteria. Example, who lives in Gwalior, Who is Fail in Exam etc.
?
?
Accessprovidesfourtypesofqueries:SelectQuery,UpdateQuery,CrosstabQuery,AppendQuery.
Creating Select Query
We can create Select Query by using: 1) Query Design option, 2) Query Wizard.
Creating Select Query using ‘Query Design’
1) Open the Result table.
5
5) Double click the field names to add them to ‘Query Design grid.’
Or Drag the field names from field list to query design grid to add them.
YoucansavethequeryforfutureusealsobypressingCTRL+S.
Creating Select Query using ‘Query Design’
Field List
Query
Design
Grid
6) You can apply sort also. Type the condition in the Criteria row of the required field.
=“Fail”>60
7) Run the query from Design tab to see its result.
6
Forms
A form resembles a fill-in-the-blanks sheet. It is a way to enter data into a database.
Access links the form to the table and stores the information of the form into the table.
 Data can be inserted, updated and deleted from a table using a form.
Three View of the Forms
1) Form View
(by default)
2) Layout View
3) Design View
7
Creating a Form
1) Open the Students Personal Record table.
2)
3) The form opens in Layout view.
4) Use Format tab to change its appearance.
5) To edit/enter data in the form, Open
form in Form View.
New(blank)Recordbutton,to enternewdata.8
Report
1) Open the Students Personal Record table.
2)
3) Use Format tab to change its
appearance print it.
A Report is an effective way to present your data in a printed format.
To create a report:-
9
Career in IT
A Database Administrator designs, implements and
maintains the database system in an organization.
How to become:- Bachelor’s degree in Computer
Science/Information Technology.
Skills:- Knowledge of database theory and design along with
RDBMS (Access, MySQL), Logical reasoning, critical thinking,
strong problem solving skills.
10

More Related Content

PPT
Introduction to Excel
PPTX
Basic Ms excel
PPTX
Class viii ch-2 log on to access
PPT
ms excel for mba first sem students of dr hs gour university sagar(m.p)
PPTX
Class viii ch-3 working with tables
PPT
Ms excel basic about Data, graph and pivot table
PPTX
Excel PowerPoint
PPTX
ch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javed
Introduction to Excel
Basic Ms excel
Class viii ch-2 log on to access
ms excel for mba first sem students of dr hs gour university sagar(m.p)
Class viii ch-3 working with tables
Ms excel basic about Data, graph and pivot table
Excel PowerPoint
ch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javed

What's hot (20)

PPTX
Excel lesson01
PPT
Training On Microsoft Excel
PPT
Unit 4 ms excel of class 8
PPTX
PPTX
Ppt on ms excel
PPTX
Ms excel ppt presentation
PPT
Charts in EXCEL
PDF
Formulas and functions - By Amresh Tiwari
PPSX
Conditional formatting in excel v2
PDF
Excel Tutorials - VLOOKUP and HLOOKUP Functions
PDF
Excel Shortcuts & Formulas
PPTX
Microsoft Excel Basics
PPTX
Windows, MS office.pptx
PPTX
Excel training
PPTX
Microsoft Excel Basics
PPTX
Excel for beginner
PPT
Ms excel (page layout)
PPTX
Excel for kids
PPTX
Ms access
Excel lesson01
Training On Microsoft Excel
Unit 4 ms excel of class 8
Ppt on ms excel
Ms excel ppt presentation
Charts in EXCEL
Formulas and functions - By Amresh Tiwari
Conditional formatting in excel v2
Excel Tutorials - VLOOKUP and HLOOKUP Functions
Excel Shortcuts & Formulas
Microsoft Excel Basics
Windows, MS office.pptx
Excel training
Microsoft Excel Basics
Excel for beginner
Ms excel (page layout)
Excel for kids
Ms access
Ad

Similar to Class viii ch-4 working with queries (20)

PPTX
Sorting, Filtering, and Creating Relationships.pptx
PDF
Microsoft Access Notes 2007 Ecdl
PPTX
Chapter 4 microsoft access 2010
PPTX
dbms ms access basics and introduction to ms access
PPT
D I T211 Chapter 5 ( Lab 3)
DOCX
Ms access
PPT
Microsoft Office Access 2003 Tutorial for Beginners
DOC
Acccesss notes
PPTX
Access essential training framework
PPT
Mic office access tutorial for beginners
PPTX
Ms access 1
PPT
HARJOT.ppt
PPT
Master database management for cxc
PPTX
Week 07 working with queries
PPT
Access07 l1 ch2
PPTX
MS Office Access Tutorial
PPT
HARJOT.ppt gggggggggggggggggggggggggggggggggggggggg
PPT
access1.ppt
PPTX
MS ACCESS PPT.pptx
PPTX
Introduction - Database (MS Access)
Sorting, Filtering, and Creating Relationships.pptx
Microsoft Access Notes 2007 Ecdl
Chapter 4 microsoft access 2010
dbms ms access basics and introduction to ms access
D I T211 Chapter 5 ( Lab 3)
Ms access
Microsoft Office Access 2003 Tutorial for Beginners
Acccesss notes
Access essential training framework
Mic office access tutorial for beginners
Ms access 1
HARJOT.ppt
Master database management for cxc
Week 07 working with queries
Access07 l1 ch2
MS Office Access Tutorial
HARJOT.ppt gggggggggggggggggggggggggggggggggggggggg
access1.ppt
MS ACCESS PPT.pptx
Introduction - Database (MS Access)
Ad

Recently uploaded (20)

PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
master seminar digital applications in india
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
01-Introduction-to-Information-Management.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Classroom Observation Tools for Teachers
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
VCE English Exam - Section C Student Revision Booklet
Renaissance Architecture: A Journey from Faith to Humanism
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Supply Chain Operations Speaking Notes -ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
TR - Agricultural Crops Production NC III.pdf
Cell Structure & Organelles in detailed.
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
master seminar digital applications in india
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPH.pptx obstetrics and gynecology in nursing
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
01-Introduction-to-Information-Management.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Week 4 Term 3 Study Techniques revisited.pptx
Classroom Observation Tools for Teachers
Abdominal Access Techniques with Prof. Dr. R K Mishra

Class viii ch-4 working with queries

  • 1. Ch-4 Working with Queries Made by: Sandhya Jeswani Panjwani 1
  • 2. 1. Relationships & Linking Tables 2. Query & its types 3. Creating a Select Query Contents 4. Forms & its views 5. Creating a Form 6. Working with Reports 7. Let’s Know more 8. Career in IT 2
  • 3. Relationships are links between the tables. Relationship works by matching data in key fields (a field with the same name in both the tables). These matching fields are the Primary key from one table and a Foreign key in other table. Relationship between Tables Foreign key is a value in one table that must match the Primary key in another table. Example:- The given tables can be linked using Roll No field.  After creating relationships, you can create queries, forms and reports to display information from several tables at once.  After working with relationships, you must delete the relationship before you make changes to the fields on which Relationship is based (Ex-Roll No fields).  To delete relationships, select the Link line Press DELETE key. 3
  • 4. Linking Tables (Making Relationships) 1) Open one of the table Click Database Tools tab in Show/Hide group click Relationships button. 2) Show table dialog box opens Select Students Personal Record table click Add Select Result table click Add  click Close button 3) Drag the Primary key of the parent table over the Foreign key in Child table (Roll No). Parent Table Child Table 4) A link line will join the tables Edit Relationships dialog box opens click Create button. 4
  • 5. Query A Query is like a simple question that displays specific records from a table that meet a certain criteria. Example, who lives in Gwalior, Who is Fail in Exam etc. ? ? Accessprovidesfourtypesofqueries:SelectQuery,UpdateQuery,CrosstabQuery,AppendQuery. Creating Select Query We can create Select Query by using: 1) Query Design option, 2) Query Wizard. Creating Select Query using ‘Query Design’ 1) Open the Result table. 5
  • 6. 5) Double click the field names to add them to ‘Query Design grid.’ Or Drag the field names from field list to query design grid to add them. YoucansavethequeryforfutureusealsobypressingCTRL+S. Creating Select Query using ‘Query Design’ Field List Query Design Grid 6) You can apply sort also. Type the condition in the Criteria row of the required field. =“Fail”>60 7) Run the query from Design tab to see its result. 6
  • 7. Forms A form resembles a fill-in-the-blanks sheet. It is a way to enter data into a database. Access links the form to the table and stores the information of the form into the table.  Data can be inserted, updated and deleted from a table using a form. Three View of the Forms 1) Form View (by default) 2) Layout View 3) Design View 7
  • 8. Creating a Form 1) Open the Students Personal Record table. 2) 3) The form opens in Layout view. 4) Use Format tab to change its appearance. 5) To edit/enter data in the form, Open form in Form View. New(blank)Recordbutton,to enternewdata.8
  • 9. Report 1) Open the Students Personal Record table. 2) 3) Use Format tab to change its appearance print it. A Report is an effective way to present your data in a printed format. To create a report:- 9
  • 10. Career in IT A Database Administrator designs, implements and maintains the database system in an organization. How to become:- Bachelor’s degree in Computer Science/Information Technology. Skills:- Knowledge of database theory and design along with RDBMS (Access, MySQL), Logical reasoning, critical thinking, strong problem solving skills. 10