SlideShare una empresa de Scribd logo
1 de 69
Database Management
Microsoft Access – Simplified
By: A. Vanhorne
Starting Microsoft Access
Click Blank Database

Getting Started Tables Queries
Creating a Database


For this tutorial you will be creating a database
name: “School”

Getting Started Tables Queries
Starting Microsoft Access
Write your database
name here

Getting Started Tables Queries
Starting Microsoft Access
Database Name

Getting Started Tables Queries
Starting Microsoft Access
Click Create

Getting Started Tables Queries
Starting Microsoft Access

Getting Started Tables Queries
Starting Microsoft Access

Click Create to see a list of
the objects that we can create
in Microsoft Access

Getting Started Tables Queries
Starting Microsoft Access

Our Focus will be on: Table

Form

Report Query

Getting Started Tables Queries
Closing Default Table
By default, Microsoft Access Create a table name
“table1”. We will start by closing this table:

Select Table 1

Click the “X” to the
right to close it

Getting Started Tables Queries
Creating a New Table

Click on
Create

Select Table Design from the table Tab.
This will open the table design view

Getting Started Tables Queries
Table Design View

Getting Started Tables Queries
Table Design View – Tool Bar

The view button will
be used to switch
between design and
datasheet view

The Primary key is a unique
field that is used to identify
each record in a table. E.g.
ID

Getting Started Tables Queries
Creating a Student Table


The table will have the following fields:
Idnumber, Firstname, Lastname, DOB, Gender
Fields

Data Types

Field Size

Idnumber

number

Firstname

Text

14

Lastname

Text

20

DOB

Date/Time

Gender

Lookup Wizard

Getting Started Tables Queries
Creating a Student Table

Whenever your create a text field, the database
reserve 255 character spaces. However we don’t
always need so much space.

Field

Field Size

Getting Started Tables Queries
Creating a Student Table


When you select look up wizard for gender- the
dialog below will appear

Click I will Type
in the values that I
want

Click Next

Getting Started Tables Queries
Creating a Student Table


Enter the look up items:

Type: Male and
Female

Click Finish

Getting Started Tables Queries
Setting Primary Key

Select Idnumber

Select Primary Key

Getting Started Tables Queries
Creating a Student Table

A Key appears beside Idnumber.

Getting Started Tables Queries
Save the Table

Click the save
button

Enter “Student”
for the table name
and click ok

Getting Started Tables Queries
Changing the View


In order to enter data into your table, you will
have to switch the view to datasheet view

Click on view and this will
take you to datasheet view

Getting Started Tables Queries
Datasheet View


Here you can populate the table

Click on view and this will
take you to datasheet view

Getting Started Tables Queries
Datasheet View


Populate the table as follows:

*Once you type the data in the table, they are saved automatically.

Getting Started Tables Queries
What is a query?


A query is a specific set of instructions for
retrieving data from a database and displaying,
printing, modifying or storing it.

Getting Started Tables Queries
Types of Query
 Select Query

 Action Query

Calculate Field

 Delete

Summary Options

 Update
 Append
 Make Table

Getting Started Tables Queries
 This type of query is designed to list

specific information in a database table.

 E.g. It could

be used to find and display all
the female students.

Main Menu
Creating a Select Query

Click on Create

Select Query Design

Getting Started Tables Queries
Creating a Select Query

Select Student
Click Add
Getting Started Tables Queries
Creating a Select Query

Select Student

Click Add

Click Close

Getting Started Tables Queries
Creating a Select Query
Selecting the fields from the table

Double Click each of
these fields to add
them to the query.

Getting Started Tables Queries
Viewing the Results of the Query


Click view to see the result of the query in
datasheet view

Click View

Getting Started Tables Queries
Viewing the Results of the Query


Query Results

Click View to return to
the design view

Getting Started Tables Queries
Viewing the Results of the Query



Save the Query Results
Press Ctrl + S or any other method

Type “StudentQuery”
as the Query Name

Getting Started Tables Queries
Viewing specific information




In order to produce a list of specific information
in a table; a criteria must be specified.
Criteria is a restriction that data must meet while
being retrieved.

Getting Started Tables Queries
Creating a Criteria


E.g: Create a query to view all “Male”
Type Male under Gender
in the Criteria row

The Criteria Row

Getting Started Tables Queries
View Information


Click on View to see the result

Click View

Result in Datasheet view

Getting Started Tables Queries
 Example: create a new field to calculate

employees’ pay after an increase of $1200.00.
 OR: Create a field call “Fullname” to display
students full name

Main Menu
Calculated Field Cont’d




To the right of Gender; enter the text
“Fullname”, followed by a colon ‘:’.
Enter the calculation for Fullname: [Firstname]+
[Lastname]

Getting Started Tables Queries
Calculated Field Cont’d


Click on View from the menu bar

IF you want space between the names, modify the calculation as following:

Fullname: [Firstname]+” “+[Lastname]
Getting Started Tables Queries


The following summary options are often
used in queries:
 Sum
 Average
 Maximum
 Minimum
 Count
Main Menu
Using Summary options


Example: create a query to Count the number of
students

Click on Total

The total bar is then activated

Getting Started Tables Queries
Using Summary options


Example: create a query to Count the number of
students

Click on Group By under
Idnumber and select “Count”

Getting Started Tables Queries
Summary option Cont’d


Delete all fields apart from “Idnumber”:


Highlight the fields



Press delete on your keyboard
Getting Started Tables Queries
Summary option Cont’d


Your design view now

Getting Started Tables Queries
Summary option – Cont’d


To view the result of the count, Click on View

Getting Started Tables Queries


An action query makes changes to or moves
many records in just one operation. There
are four types of action queries:
i. Delete
ii. Append

ii.
iv.

Update
Make-table

Main Menu
 This query deletes specific records from a

database table.
 Example: to delete the student with

Idnumber “113”.

Main Menu
Creating a Delete Query


Create a regular select query, using the fields in
the table (s) you wish to use.

Getting Started Tables Queries
Delete Query Cont’d


Select Delete from the query Tab

Enter your
criteria here.
i.e 113

Getting Started Tables Queries
Delete Query Cont’d


If Prompted, enable security

Click Options

Click Enable

Click Ok

Getting Started Tables Queries
Running the Query

Click on Run

Click on Yes

Once you click “Yes” your record will be permanently deleted.

Getting Started Tables Queries
Records after Deletion


The record has been removed from the table:

Getting Started Tables Queries
 An update query is used to modify a field (s)

within a database table.
 Example to Add the prefix “Mr.” to all Male
first name

Main Menu
Creating an Update Query


Select the field (s) you wishes to update from the
table (s). In this case we need “Firstname” and
“Gender”

Enter Male for the Criteria
Getting Started Tables Queries
Creating an Update Query


Select update from the query tab

TO add the prefix “Mr”; type the
following in the update To box:
“Mr.”+[Firstname]

Getting Started Tables Queries
Update Query Cont’d






In the “Update To Row”, enter the information
about the field you want to update.
The information should be below the field
name.
Field names should be in square brackets.

Getting Started Tables Queries
Creating an Update Query


Select Run from the Results tab

Click Yes
Getting Started Tables Queries
Update Query Cont’d


Table before update



Table after update

Getting Started Tables Queries
 An append query, is use to copy (move)

information from one table to another.
 Example moving all the records from the
New customer’s table to the customer table.

Main Menu
Append Query Cont’d


1.
2.

Since we do not have more than one table we
are going to make a copy of the student table.
Right Click on student and choose copy
Then paste it in a blank area

Copy
Paste here
Click Ok

Getting Started Tables Queries
Append Query Cont’d


1.

To prevent duplicated records, lets change the
Idnumbers in the “Copy of Student” table:
Create an update query as follows to add “4” to
each Idnumber

Click Run
Click Yes

Getting Started Tables Queries
Append Query Cont’d


Since the IDs are now different we can
continue:

Getting Started Tables Queries
Append Query Cont’d


To create this query, we will use the table from
which we are copying the data (in this case
Student).

Getting Started Tables Queries
Append Query Cont’d


Select “Append Query” from the query tab

Select “Copy
of Student”

Click OK

Getting Started Tables Queries
Append Query Cont’d


Select “Append Query” from the query tab

Getting Started Tables Queries
Append Query Cont’d


Run the Query

Click Run

Click Yes

Getting Started Tables Queries
Append query


“Copy of Student” table Before APPEND

Getting Started Tables Queries
Append Query Cont’d


“Copy of Student” table After APPEND

Getting Started Tables Queries
Append Query - Activity






Using an update query change the Idnumber for
Daniel from 187 to 200 in the Student table
Create a query to append the record for Daniel
to the “Copy of Student” table.
HINT: Criteria may be needed.

Getting Started Tables Queries

Más contenido relacionado

La actualidad más candente

PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |Umesh Kumar
 
Office 2010 windows
Office 2010 windowsOffice 2010 windows
Office 2010 windowspatf719
 
Pagelayout & data tab of ms excel 2010
Pagelayout & data tab of ms excel 2010Pagelayout & data tab of ms excel 2010
Pagelayout & data tab of ms excel 2010Nitish Kumar
 
Tutorial Microsoft Excel 2007
Tutorial Microsoft Excel 2007Tutorial Microsoft Excel 2007
Tutorial Microsoft Excel 2007dhafinnaviansyah
 
Uses of Excel
Uses of ExcelUses of Excel
Uses of Exceljarleewil
 
Lession 4 the tables of a database
Lession 4 the tables of a databaseLession 4 the tables of a database
Lession 4 the tables of a databaseĐỗ Đức Hùng
 
01 microsoft excel 2007 (introduction)
01 microsoft excel 2007 (introduction)01 microsoft excel 2007 (introduction)
01 microsoft excel 2007 (introduction)benchhood
 
Learn Basic Excel options within 15 minutes
Learn Basic Excel options within 15 minutesLearn Basic Excel options within 15 minutes
Learn Basic Excel options within 15 minutesMohammad rasoolbaig
 
Uses & applications of microsoft excel in vph research
Uses & applications of microsoft excel in vph researchUses & applications of microsoft excel in vph research
Uses & applications of microsoft excel in vph researchDr Alok Bharti
 
Access2007 part1
Access2007 part1Access2007 part1
Access2007 part1jigeno
 
Ms Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 WorkshopMs Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 WorkshopCA Aditya Singhal
 

La actualidad más candente (20)

PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |
 
Office 2010 windows
Office 2010 windowsOffice 2010 windows
Office 2010 windows
 
Pagelayout & data tab of ms excel 2010
Pagelayout & data tab of ms excel 2010Pagelayout & data tab of ms excel 2010
Pagelayout & data tab of ms excel 2010
 
Tutorial Microsoft Excel 2007
Tutorial Microsoft Excel 2007Tutorial Microsoft Excel 2007
Tutorial Microsoft Excel 2007
 
Uses of Excel
Uses of ExcelUses of Excel
Uses of Excel
 
Lession 4 the tables of a database
Lession 4 the tables of a databaseLession 4 the tables of a database
Lession 4 the tables of a database
 
01 microsoft excel 2007 (introduction)
01 microsoft excel 2007 (introduction)01 microsoft excel 2007 (introduction)
01 microsoft excel 2007 (introduction)
 
Learn Basic Excel options within 15 minutes
Learn Basic Excel options within 15 minutesLearn Basic Excel options within 15 minutes
Learn Basic Excel options within 15 minutes
 
Uses & applications of microsoft excel in vph research
Uses & applications of microsoft excel in vph researchUses & applications of microsoft excel in vph research
Uses & applications of microsoft excel in vph research
 
Computer packages
Computer packagesComputer packages
Computer packages
 
Excel lesson01
Excel lesson01Excel lesson01
Excel lesson01
 
Office session9
Office session9Office session9
Office session9
 
Access 2007-Get to know Access
Access 2007-Get to know AccessAccess 2007-Get to know Access
Access 2007-Get to know Access
 
Access2007 part1
Access2007 part1Access2007 part1
Access2007 part1
 
Data Validation
Data ValidationData Validation
Data Validation
 
Ms Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 WorkshopMs Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 Workshop
 
Proposal template
Proposal templateProposal template
Proposal template
 
Excel 2007 for inset final copy
Excel 2007 for inset final copyExcel 2007 for inset final copy
Excel 2007 for inset final copy
 
Learn excel 2010
Learn excel 2010Learn excel 2010
Learn excel 2010
 
Basics excel 20102
Basics excel 20102Basics excel 20102
Basics excel 20102
 

Destacado

Workshop poland
Workshop polandWorkshop poland
Workshop polandAEAnadia
 
Ms word tutorial tec 537.pptx
Ms word tutorial tec 537.pptxMs word tutorial tec 537.pptx
Ms word tutorial tec 537.pptxDrE-TEC
 
IMPORT AND EXPORT UTILITIES IN MS-ACCESS
IMPORT AND EXPORT UTILITIES IN MS-ACCESSIMPORT AND EXPORT UTILITIES IN MS-ACCESS
IMPORT AND EXPORT UTILITIES IN MS-ACCESS23HARSHU
 
Importing MS Word Documents in AuthorIT
Importing MS Word Documents in AuthorITImporting MS Word Documents in AuthorIT
Importing MS Word Documents in AuthorITRaghuram Pandurangan
 
01 access howtointroduction
01 access howtointroduction01 access howtointroduction
01 access howtointroductionRebecca Jones
 
Step by step wudu guide
Step by step wudu guideStep by step wudu guide
Step by step wudu guideaatiqah nyla
 
Coasts CSEC Geography
Coasts    CSEC GeographyCoasts    CSEC Geography
Coasts CSEC Geographyry_moore
 
MS Access and Database Fundamentals
MS Access and Database FundamentalsMS Access and Database Fundamentals
MS Access and Database FundamentalsAnanda Gupta
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms accessjigeno
 
Access presentation
Access presentationAccess presentation
Access presentationDUSPviz
 
Key Components of Cost Estimation in construction
Key Components of Cost Estimation in constructionKey Components of Cost Estimation in construction
Key Components of Cost Estimation in constructionWaleed Liaqat
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 
Cape caribbean studies pp2 2011
Cape caribbean studies pp2 2011Cape caribbean studies pp2 2011
Cape caribbean studies pp2 2011Deighton Gooden
 

Destacado (20)

Assessment criteria
Assessment criteriaAssessment criteria
Assessment criteria
 
Workshop poland
Workshop polandWorkshop poland
Workshop poland
 
Ms word tutorial tec 537.pptx
Ms word tutorial tec 537.pptxMs word tutorial tec 537.pptx
Ms word tutorial tec 537.pptx
 
IMPORT AND EXPORT UTILITIES IN MS-ACCESS
IMPORT AND EXPORT UTILITIES IN MS-ACCESSIMPORT AND EXPORT UTILITIES IN MS-ACCESS
IMPORT AND EXPORT UTILITIES IN MS-ACCESS
 
Importing MS Word Documents in AuthorIT
Importing MS Word Documents in AuthorITImporting MS Word Documents in AuthorIT
Importing MS Word Documents in AuthorIT
 
Ms access
Ms accessMs access
Ms access
 
6
66
6
 
01 access howtointroduction
01 access howtointroduction01 access howtointroduction
01 access howtointroduction
 
Step by step wudu guide
Step by step wudu guideStep by step wudu guide
Step by step wudu guide
 
Ms access 2010
Ms access 2010Ms access 2010
Ms access 2010
 
Coasts CSEC Geography
Coasts    CSEC GeographyCoasts    CSEC Geography
Coasts CSEC Geography
 
2017 CXC Year Planner
2017 CXC Year Planner2017 CXC Year Planner
2017 CXC Year Planner
 
MS Access and Database Fundamentals
MS Access and Database FundamentalsMS Access and Database Fundamentals
MS Access and Database Fundamentals
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
Geogaphy sba
Geogaphy sbaGeogaphy sba
Geogaphy sba
 
It sba 2015
It sba 2015It sba 2015
It sba 2015
 
Access presentation
Access presentationAccess presentation
Access presentation
 
Key Components of Cost Estimation in construction
Key Components of Cost Estimation in constructionKey Components of Cost Estimation in construction
Key Components of Cost Estimation in construction
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
Cape caribbean studies pp2 2011
Cape caribbean studies pp2 2011Cape caribbean studies pp2 2011
Cape caribbean studies pp2 2011
 

Similar a Master database management for cxc

Database as information system
Database as information systemDatabase as information system
Database as information systemKAZEMBETVOnline
 
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
 
Microsoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlMicrosoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlRichard Butler
 
Access 2007-Datasheets 1-Create a table by entering data
Access 2007-Datasheets 1-Create a table by entering dataAccess 2007-Datasheets 1-Create a table by entering data
Access 2007-Datasheets 1-Create a table by entering dataOklahoma Dept. Mental Health
 
Splitter Pro X version Tutorial June 2020 English
Splitter Pro X version Tutorial June 2020 EnglishSplitter Pro X version Tutorial June 2020 English
Splitter Pro X version Tutorial June 2020 EnglishAdhi Wikantyoso
 
Lesson Four Setting Up Tables And Fields
Lesson Four   Setting Up Tables And FieldsLesson Four   Setting Up Tables And Fields
Lesson Four Setting Up Tables And Fieldsguevarra_2000
 
Lesson 11 Formatting Tables
Lesson 11   Formatting TablesLesson 11   Formatting Tables
Lesson 11 Formatting Tablesguevarra_2000
 
Microsoft excel training module
Microsoft excel training moduleMicrosoft excel training module
Microsoft excel training moduleJeff Piontek
 
Chapter 7 - Finalizing a Worksheet
Chapter 7 - Finalizing a WorksheetChapter 7 - Finalizing a Worksheet
Chapter 7 - Finalizing a WorksheetBeverly Murphy
 

Similar a Master database management for cxc (20)

Ms Access
Ms AccessMs Access
Ms Access
 
Pivot Tables
Pivot TablesPivot Tables
Pivot Tables
 
Database as information system
Database as information systemDatabase as information system
Database as information system
 
Ms access
Ms accessMs access
Ms access
 
Pivot Tables
Pivot TablesPivot Tables
Pivot Tables
 
Access p3
Access p3Access p3
Access p3
 
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)
 
Microsoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlMicrosoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 Ecdl
 
Access 2007-Datasheets 1-Create a table by entering data
Access 2007-Datasheets 1-Create a table by entering dataAccess 2007-Datasheets 1-Create a table by entering data
Access 2007-Datasheets 1-Create a table by entering data
 
Splitter Pro X version Tutorial June 2020 English
Splitter Pro X version Tutorial June 2020 EnglishSplitter Pro X version Tutorial June 2020 English
Splitter Pro X version Tutorial June 2020 English
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
 
Lesson Four Setting Up Tables And Fields
Lesson Four   Setting Up Tables And FieldsLesson Four   Setting Up Tables And Fields
Lesson Four Setting Up Tables And Fields
 
004.action query
004.action query004.action query
004.action query
 
Excel2007
Excel2007Excel2007
Excel2007
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
Lesson 11 Formatting Tables
Lesson 11   Formatting TablesLesson 11   Formatting Tables
Lesson 11 Formatting Tables
 
Ms Access
Ms AccessMs Access
Ms Access
 
Microsoft excel training module
Microsoft excel training moduleMicrosoft excel training module
Microsoft excel training module
 
Chapter.07
Chapter.07Chapter.07
Chapter.07
 
Chapter 7 - Finalizing a Worksheet
Chapter 7 - Finalizing a WorksheetChapter 7 - Finalizing a Worksheet
Chapter 7 - Finalizing a Worksheet
 

Último

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Último (20)

YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 

Master database management for cxc

  • 1. Database Management Microsoft Access – Simplified By: A. Vanhorne
  • 2. Starting Microsoft Access Click Blank Database Getting Started Tables Queries
  • 3. Creating a Database  For this tutorial you will be creating a database name: “School” Getting Started Tables Queries
  • 4. Starting Microsoft Access Write your database name here Getting Started Tables Queries
  • 5. Starting Microsoft Access Database Name Getting Started Tables Queries
  • 6. Starting Microsoft Access Click Create Getting Started Tables Queries
  • 7. Starting Microsoft Access Getting Started Tables Queries
  • 8. Starting Microsoft Access Click Create to see a list of the objects that we can create in Microsoft Access Getting Started Tables Queries
  • 9. Starting Microsoft Access Our Focus will be on: Table Form Report Query Getting Started Tables Queries
  • 10. Closing Default Table By default, Microsoft Access Create a table name “table1”. We will start by closing this table: Select Table 1 Click the “X” to the right to close it Getting Started Tables Queries
  • 11. Creating a New Table Click on Create Select Table Design from the table Tab. This will open the table design view Getting Started Tables Queries
  • 12. Table Design View Getting Started Tables Queries
  • 13. Table Design View – Tool Bar The view button will be used to switch between design and datasheet view The Primary key is a unique field that is used to identify each record in a table. E.g. ID Getting Started Tables Queries
  • 14. Creating a Student Table  The table will have the following fields: Idnumber, Firstname, Lastname, DOB, Gender Fields Data Types Field Size Idnumber number Firstname Text 14 Lastname Text 20 DOB Date/Time Gender Lookup Wizard Getting Started Tables Queries
  • 15. Creating a Student Table Whenever your create a text field, the database reserve 255 character spaces. However we don’t always need so much space. Field Field Size Getting Started Tables Queries
  • 16. Creating a Student Table  When you select look up wizard for gender- the dialog below will appear Click I will Type in the values that I want Click Next Getting Started Tables Queries
  • 17. Creating a Student Table  Enter the look up items: Type: Male and Female Click Finish Getting Started Tables Queries
  • 18. Setting Primary Key Select Idnumber Select Primary Key Getting Started Tables Queries
  • 19. Creating a Student Table A Key appears beside Idnumber. Getting Started Tables Queries
  • 20. Save the Table Click the save button Enter “Student” for the table name and click ok Getting Started Tables Queries
  • 21. Changing the View  In order to enter data into your table, you will have to switch the view to datasheet view Click on view and this will take you to datasheet view Getting Started Tables Queries
  • 22. Datasheet View  Here you can populate the table Click on view and this will take you to datasheet view Getting Started Tables Queries
  • 23. Datasheet View  Populate the table as follows: *Once you type the data in the table, they are saved automatically. Getting Started Tables Queries
  • 24. What is a query?  A query is a specific set of instructions for retrieving data from a database and displaying, printing, modifying or storing it. Getting Started Tables Queries
  • 25. Types of Query  Select Query  Action Query Calculate Field  Delete Summary Options  Update  Append  Make Table Getting Started Tables Queries
  • 26.  This type of query is designed to list specific information in a database table.  E.g. It could be used to find and display all the female students. Main Menu
  • 27. Creating a Select Query Click on Create Select Query Design Getting Started Tables Queries
  • 28. Creating a Select Query Select Student Click Add Getting Started Tables Queries
  • 29. Creating a Select Query Select Student Click Add Click Close Getting Started Tables Queries
  • 30. Creating a Select Query Selecting the fields from the table Double Click each of these fields to add them to the query. Getting Started Tables Queries
  • 31. Viewing the Results of the Query  Click view to see the result of the query in datasheet view Click View Getting Started Tables Queries
  • 32. Viewing the Results of the Query  Query Results Click View to return to the design view Getting Started Tables Queries
  • 33. Viewing the Results of the Query   Save the Query Results Press Ctrl + S or any other method Type “StudentQuery” as the Query Name Getting Started Tables Queries
  • 34. Viewing specific information   In order to produce a list of specific information in a table; a criteria must be specified. Criteria is a restriction that data must meet while being retrieved. Getting Started Tables Queries
  • 35. Creating a Criteria  E.g: Create a query to view all “Male” Type Male under Gender in the Criteria row The Criteria Row Getting Started Tables Queries
  • 36. View Information  Click on View to see the result Click View Result in Datasheet view Getting Started Tables Queries
  • 37.  Example: create a new field to calculate employees’ pay after an increase of $1200.00.  OR: Create a field call “Fullname” to display students full name Main Menu
  • 38. Calculated Field Cont’d   To the right of Gender; enter the text “Fullname”, followed by a colon ‘:’. Enter the calculation for Fullname: [Firstname]+ [Lastname] Getting Started Tables Queries
  • 39. Calculated Field Cont’d  Click on View from the menu bar IF you want space between the names, modify the calculation as following: Fullname: [Firstname]+” “+[Lastname] Getting Started Tables Queries
  • 40.  The following summary options are often used in queries:  Sum  Average  Maximum  Minimum  Count Main Menu
  • 41. Using Summary options  Example: create a query to Count the number of students Click on Total The total bar is then activated Getting Started Tables Queries
  • 42. Using Summary options  Example: create a query to Count the number of students Click on Group By under Idnumber and select “Count” Getting Started Tables Queries
  • 43. Summary option Cont’d  Delete all fields apart from “Idnumber”:  Highlight the fields  Press delete on your keyboard Getting Started Tables Queries
  • 44. Summary option Cont’d  Your design view now Getting Started Tables Queries
  • 45. Summary option – Cont’d  To view the result of the count, Click on View Getting Started Tables Queries
  • 46.  An action query makes changes to or moves many records in just one operation. There are four types of action queries: i. Delete ii. Append ii. iv. Update Make-table Main Menu
  • 47.  This query deletes specific records from a database table.  Example: to delete the student with Idnumber “113”. Main Menu
  • 48. Creating a Delete Query  Create a regular select query, using the fields in the table (s) you wish to use. Getting Started Tables Queries
  • 49. Delete Query Cont’d  Select Delete from the query Tab Enter your criteria here. i.e 113 Getting Started Tables Queries
  • 50. Delete Query Cont’d  If Prompted, enable security Click Options Click Enable Click Ok Getting Started Tables Queries
  • 51. Running the Query Click on Run Click on Yes Once you click “Yes” your record will be permanently deleted. Getting Started Tables Queries
  • 52. Records after Deletion  The record has been removed from the table: Getting Started Tables Queries
  • 53.  An update query is used to modify a field (s) within a database table.  Example to Add the prefix “Mr.” to all Male first name Main Menu
  • 54. Creating an Update Query  Select the field (s) you wishes to update from the table (s). In this case we need “Firstname” and “Gender” Enter Male for the Criteria Getting Started Tables Queries
  • 55. Creating an Update Query  Select update from the query tab TO add the prefix “Mr”; type the following in the update To box: “Mr.”+[Firstname] Getting Started Tables Queries
  • 56. Update Query Cont’d    In the “Update To Row”, enter the information about the field you want to update. The information should be below the field name. Field names should be in square brackets. Getting Started Tables Queries
  • 57. Creating an Update Query  Select Run from the Results tab Click Yes Getting Started Tables Queries
  • 58. Update Query Cont’d  Table before update  Table after update Getting Started Tables Queries
  • 59.  An append query, is use to copy (move) information from one table to another.  Example moving all the records from the New customer’s table to the customer table. Main Menu
  • 60. Append Query Cont’d  1. 2. Since we do not have more than one table we are going to make a copy of the student table. Right Click on student and choose copy Then paste it in a blank area Copy Paste here Click Ok Getting Started Tables Queries
  • 61. Append Query Cont’d  1. To prevent duplicated records, lets change the Idnumbers in the “Copy of Student” table: Create an update query as follows to add “4” to each Idnumber Click Run Click Yes Getting Started Tables Queries
  • 62. Append Query Cont’d  Since the IDs are now different we can continue: Getting Started Tables Queries
  • 63. Append Query Cont’d  To create this query, we will use the table from which we are copying the data (in this case Student). Getting Started Tables Queries
  • 64. Append Query Cont’d  Select “Append Query” from the query tab Select “Copy of Student” Click OK Getting Started Tables Queries
  • 65. Append Query Cont’d  Select “Append Query” from the query tab Getting Started Tables Queries
  • 66. Append Query Cont’d  Run the Query Click Run Click Yes Getting Started Tables Queries
  • 67. Append query  “Copy of Student” table Before APPEND Getting Started Tables Queries
  • 68. Append Query Cont’d  “Copy of Student” table After APPEND Getting Started Tables Queries
  • 69. Append Query - Activity    Using an update query change the Idnumber for Daniel from 187 to 200 in the Student table Create a query to append the record for Daniel to the “Copy of Student” table. HINT: Criteria may be needed. Getting Started Tables Queries