SlideShare una empresa de Scribd logo
1 de 10
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

Más contenido relacionado

La actualidad más candente

MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.ppt
1520lakshyagupta
 
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
Aram SE
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
ahfiki
 
Database Design
Database DesignDatabase Design
Database Design
learnt
 
Access 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationAccess 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentation
dgdotson
 

La actualidad más candente (20)

Introduction to ms access
Introduction to ms accessIntroduction to ms access
Introduction to ms access
 
Access ppt
Access ppt Access ppt
Access ppt
 
Ms access
Ms accessMs access
Ms access
 
SQL Basics
SQL BasicsSQL Basics
SQL Basics
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.ppt
 
Ms access
Ms accessMs access
Ms access
 
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
 
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
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 
Class viii ch-2 log on to access
Class  viii ch-2 log on to accessClass  viii ch-2 log on to access
Class viii ch-2 log on to access
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
 
001.general
001.general001.general
001.general
 
Sql queries presentation
Sql queries presentationSql queries presentation
Sql queries presentation
 
Ms access
Ms accessMs access
Ms access
 
Database Design
Database DesignDatabase Design
Database Design
 
Microsoft Office Package: Practical Questions
Microsoft Office Package: Practical QuestionsMicrosoft Office Package: Practical Questions
Microsoft Office Package: Practical Questions
 
Access 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationAccess 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentation
 
Microsoft Excel Tutorial
Microsoft Excel TutorialMicrosoft Excel Tutorial
Microsoft Excel Tutorial
 
Creating a table in ms access
Creating a table in ms accessCreating a table in ms access
Creating a table in ms access
 
Ms excel ppt
Ms excel pptMs excel ppt
Ms excel ppt
 

Similar a Class viii ch-4 working with queries

MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
virtualMaryam
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
Esubalew21
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
jigeno
 
D I T211 Chapter 5 ( Lab 3)
D I T211    Chapter 5 ( Lab 3)D I T211    Chapter 5 ( Lab 3)
D I T211 Chapter 5 ( Lab 3)
askme
 

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

MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
 
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
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
Database as information system
Database as information systemDatabase as information system
Database as information system
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.ppt
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
Lecture2 slides
Lecture2 slidesLecture2 slides
Lecture2 slides
 
MS Access 2010 tutorial 5
MS Access 2010 tutorial 5MS Access 2010 tutorial 5
MS Access 2010 tutorial 5
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01
 
Microsoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlMicrosoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 Ecdl
 
Management of database information system
Management of database information systemManagement of database information system
Management of database information system
 
06.ms acess
06.ms acess06.ms acess
06.ms acess
 
Ms access
Ms accessMs access
Ms access
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
Chapter.10
Chapter.10Chapter.10
Chapter.10
 
Chapter.10
Chapter.10Chapter.10
Chapter.10
 
Relational models
Relational modelsRelational models
Relational models
 
D I T211 Chapter 5 ( Lab 3)
D I T211    Chapter 5 ( Lab 3)D I T211    Chapter 5 ( Lab 3)
D I T211 Chapter 5 ( Lab 3)
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
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
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Último (20)

Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
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
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
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
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
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
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

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