XP
XP
XP
INTRODUCTION TO DATABASE
MANAGEMENT
LECTURE THREE
CREATING DATABASE
INTRODUCTION TO DATABASE MANAGEMENT 1
XP
XP
XP
Objectives
• Learn the guidelines for designing databases
and setting field properties
• Modify the format of a field in Datasheet view
• Create a table in Design view
• Define fields and specify a table’s primary key
• Modify the structure of a table
INTRODUCTION TO DATABASE MANAGEMENT 2
XP
XP
XP
Objectives
• Import data from an Excel worksheet
• Create a table by importing an existing table
structure
• Add fields to a table with the Data Type gallery
• Delete, rename, and move fields
• Add data to a table by importing a text file
• Define a relationship between two tables
INTRODUCTION TO DATABASE MANAGEMENT 3
XP
XP
XP
Guidelines for Designing Databases
• Identify all the fields needed to produce the
required information
• Organize each piece of data into its smallest
useful part
• Group related fields into tables
• Determine each table’s primary key
• Include a common field in related tables
• Avoid data redundancy
• Determine the properties of each field
INTRODUCTION TO DATABASE MANAGEMENT 4
XP
XP
XP
Guidelines for Setting Field
Properties
• You must name each field, table, and other object
• Choose an appropriate data type
INTRODUCTION TO DATABASE MANAGEMENT 5
XP
XP
XP
Guidelines for Setting Field Properties
• The Field Size property defines a field value’s
maximum storage size for Text, Number, and
AutoNumber fields only
–Byte
–Integer
–Long Integer
–Single
–Double
–Replication ID
–Decimal
INTRODUCTION TO DATABASE MANAGEMENT 6
XP
XP
XP
Changing the Format of a Field
in Datasheet View
INTRODUCTION TO DATABASE MANAGEMENT 7
XP
XP
XP
Creating a Table in Design View
• Creating a table in Design view involves
entering the field names and defining the
properties for the fields, specifying the
primary key, and saving the table structure
INTRODUCTION TO DATABASE MANAGEMENT 8
XP
XP
XP
Defining a Field in Design View
• In the Field Name box, type the name for the
field, and then press the Tab key
• Accept the default Text data type, or click the
arrow and select a different data type for the
field. Press the Tab key
• Enter an optional description for the field, if
necessary
• Use the Field Properties pane to type or select
other field properties, as appropriate
INTRODUCTION TO DATABASE MANAGEMENT 9
XP
XP
XP
Defining a Field in Design View
INTRODUCTION TO DATABASE MANAGEMENT 10
XP
XP
XP
Specifying the Primary Key
in Design View
• Display the table in Design view
• Click in the row for the field you’ve chosen to be
the primary key to make it the active field. If the
primary key will consist of two or more fields,
click the row selector for the first field, press
and hold down the Ctrl key, and then click the
row selector for each additional primary key
field
• In the Tools group on the Design tab, click the
Primary Key button
INTRODUCTION TO DATABASE MANAGEMENT 11
XP
XP
XP
Specifying the Primary Key
in Design View
INTRODUCTION TO DATABASE MANAGEMENT 12
XP
XP
XP
Moving a Field
• To move a field, you use the mouse to drag it
to a new location in the Table window in the
Table Design grid
INTRODUCTION TO DATABASE MANAGEMENT 13
XP
XP
XP
Adding a Field
Between Two Existing Fields
• In the Table window in Design view, select the
row below where you want the new field to be
inserted
• In the Tools group on the Design tab, click the
Insert Rows button
• Define the new field by entering the field
name, data type, optional description, and any
property specifications
INTRODUCTION TO DATABASE MANAGEMENT 14
XP
XP
XP
Adding a Field
Between Two Existing Fields
INTRODUCTION TO DATABASE MANAGEMENT 15
XP
XP
XP
Table Relationship
INTRODUCTION TO DATABASE MANAGEMENT 16
XP
XP
XP
Importing Data from an Excel
Worksheet
• The import process allows you to copy the
data from a source without having to open the
source file
• Click External Data on the Ribbon
• Click the Excel button in the Import & Link
group to start the wizard
INTRODUCTION TO DATABASE MANAGEMENT 17
XP
XP
XP
Importing Data from an Excel
Worksheet
INTRODUCTION TO DATABASE MANAGEMENT 18
XP
XP
XP
Importing Data from an Excel
Worksheet
INTRODUCTION TO DATABASE MANAGEMENT 19
XP
XP
XP
Importing Data from an Excel
Worksheet
INTRODUCTION TO DATABASE MANAGEMENT 20
XP
XP
XP
Creating a Table by Importing
an Existing Table Structure
• Make sure the External Data tab is the active tab on
the Ribbon
• In the Import & Link group, click the Access button
• Click the Browse button
• Navigate to the file
• Make sure the Import tables, queries, forms,
reports, macros, and modules into the current
database option button is selected, and then click the
OK button
• Click the Options button
INTRODUCTION TO DATABASE MANAGEMENT 21
XP
XP
XP
Creating a Table by Importing
an Existing Table Structure
INTRODUCTION TO DATABASE MANAGEMENT 22
XP
XP
XP
Adding Fields to a Table Using
the Data Type Gallery
• The Data Type gallery, available in the Add &
Delete group on the Fields tab, allows you to
add a group of related fields to a table at the
same time, rather than adding each field to
the table individually
• The group of fields you add is called a Quick
Start selection
INTRODUCTION TO DATABASE MANAGEMENT 23
XP
XP
XP
Adding Fields to a Table Using
the Data Type Gallery
INTRODUCTION TO DATABASE MANAGEMENT 24
XP
XP
XP
Deleting a Field from a Table
Structure
• In Datasheet view, click the column heading
for the field you want to delete
• In the Add & Delete group on the Fields tab,
click the Delete button
or
• In Design view, click the Field Name box for
the field you want to delete
• In the Tools group on the Design tab, click the
Delete Rows button
INTRODUCTION TO DATABASE MANAGEMENT 25
XP
XP
XP
Deleting a Field from a Table
Structure
INTRODUCTION TO DATABASE MANAGEMENT 26
XP
XP
XP
Adding Data to a Table
by Importing a Text File
• Click the External Data tab on the Ribbon
• In the Import & Link group, click the Text File
button
• Click the Browse button
• Navigate to the file
• Click the Append a copy of the records to the
table option button
• Select the table
• Click the OK button
INTRODUCTION TO DATABASE MANAGEMENT 27
XP
XP
XP
Adding Data to a Table
by Importing a Text File
INTRODUCTION TO DATABASE MANAGEMENT 28
XP
XP
XP
Defining Table Relationships
• One of the most powerful features of a
relational database management system is its
ability to define relationships between tables
• You use a common field to relate one table to
another
INTRODUCTION TO DATABASE MANAGEMENT 29
XP
XP
XP
Defining Table Relationships
INTRODUCTION TO DATABASE MANAGEMENT 30
XP
XP
XP
Defining Table Relationships
• A one-to-many relationship exists between
two tables when one record in the first table
matches zero, one, or many records in the
second table, and when one record in the
second table matches at most one record in
the first table
–The Primary table is the “one” in a one-to-
many relationship
–The Related table is the “many” table
INTRODUCTION TO DATABASE MANAGEMENT 31
XP
XP
XP
Defining Table Relationships
• Referential integrity is a set of rules that
Access enforces to maintain consistency
between related tables when you update data
in a database
• The Relationships window illustrates the
relationships among a database’s tables
• Click the Database Tools tab on the Ribbon
• In the Relationships group on the Database
Tools tab, click the Relationships button
INTRODUCTION TO DATABASE MANAGEMENT 32
XP
XP
XP
Defining Table Relationships
INTRODUCTION TO DATABASE MANAGEMENT 33
XP
XP
XP
Defining Table Relationships
INTRODUCTION TO DATABASE MANAGEMENT 34
XP
XP
XP
Defining Table Relationships
INTRODUCTION TO DATABASE MANAGEMENT 35

More Related Content

PPTX
New Perspectives: Access.02
PPT
a2-110.ppt
PPT
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
PPT
ms access tutorial regarding database management and training
PPT
Access Introduction
PDF
M0DULE 1-MS ACCESS Databases and Database Objects.pdf
PDF
New Perspectives: Access.09
PPTX
Access Chapter 01
New Perspectives: Access.02
a2-110.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
ms access tutorial regarding database management and training
Access Introduction
M0DULE 1-MS ACCESS Databases and Database Objects.pdf
New Perspectives: Access.09
Access Chapter 01

Similar to LECTURE THREE ON DATABASE MANAGEMENT.pptx (20)

PPT
Access.01.ppt
PPTX
Lecture2 slides
PDF
Word.t03
PPTX
Access2013 ch03
PPTX
New Perspectives: Access.03
PPTX
basic database concepts
PPTX
Access Chapter 01
PPT
Access.01
PPTX
Excel chapter 05
PPTX
Excel2010 05-130206153751-phpapp01
PDF
New Perspectives: Access.01
PPTX
Defining Table Relationships
PPTX
Class viii ch-3 working with tables
PPTX
MS OFFICE INTRODUCTION...........................
PPT
Ms Access ppt
PPT
Excel Basics
PPTX
Excel ch06
PPT
Chapter 7 -DescriptiveStatistics and Pivot Table
PPTX
Access Chapter 02
PPTX
MIS 226: Chapter 4
Access.01.ppt
Lecture2 slides
Word.t03
Access2013 ch03
New Perspectives: Access.03
basic database concepts
Access Chapter 01
Access.01
Excel chapter 05
Excel2010 05-130206153751-phpapp01
New Perspectives: Access.01
Defining Table Relationships
Class viii ch-3 working with tables
MS OFFICE INTRODUCTION...........................
Ms Access ppt
Excel Basics
Excel ch06
Chapter 7 -DescriptiveStatistics and Pivot Table
Access Chapter 02
MIS 226: Chapter 4
Ad

Recently uploaded (20)

PDF
A biomechanical Functional analysis of the masitary muscles in man
PPTX
chrmotography.pptx food anaylysis techni
PPTX
recommendation Project PPT with details attached
PDF
Navigating the Thai Supplements Landscape.pdf
PPTX
Lesson-01intheselfoflifeofthekennyrogersoftheunderstandoftheunderstanded
DOCX
Factor Analysis Word Document Presentation
PPT
PROJECT CYCLE MANAGEMENT FRAMEWORK (PCM).ppt
PPTX
retention in jsjsksksksnbsndjddjdnFPD.pptx
PDF
Votre score augmente si vous choisissez une catégorie et que vous rédigez une...
PPT
Image processing and pattern recognition 2.ppt
PDF
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
PPT
expt-design-lecture-12 hghhgfggjhjd (1).ppt
PDF
Jean-Georges Perrin - Spark in Action, Second Edition (2020, Manning Publicat...
PPTX
DS-40-Pre-Engagement and Kickoff deck - v8.0.pptx
PDF
Global Data and Analytics Market Outlook Report
PPTX
Machine Learning and working of machine Learning
PPTX
Copy of 16 Timeline & Flowchart Templates – HubSpot.pptx
PPTX
CHAPTER-2-THE-ACCOUNTING-PROCESS-2-4.pptx
PPTX
New ISO 27001_2022 standard and the changes
PPTX
eGramSWARAJ-PPT Training Module for beginners
A biomechanical Functional analysis of the masitary muscles in man
chrmotography.pptx food anaylysis techni
recommendation Project PPT with details attached
Navigating the Thai Supplements Landscape.pdf
Lesson-01intheselfoflifeofthekennyrogersoftheunderstandoftheunderstanded
Factor Analysis Word Document Presentation
PROJECT CYCLE MANAGEMENT FRAMEWORK (PCM).ppt
retention in jsjsksksksnbsndjddjdnFPD.pptx
Votre score augmente si vous choisissez une catégorie et que vous rédigez une...
Image processing and pattern recognition 2.ppt
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
expt-design-lecture-12 hghhgfggjhjd (1).ppt
Jean-Georges Perrin - Spark in Action, Second Edition (2020, Manning Publicat...
DS-40-Pre-Engagement and Kickoff deck - v8.0.pptx
Global Data and Analytics Market Outlook Report
Machine Learning and working of machine Learning
Copy of 16 Timeline & Flowchart Templates – HubSpot.pptx
CHAPTER-2-THE-ACCOUNTING-PROCESS-2-4.pptx
New ISO 27001_2022 standard and the changes
eGramSWARAJ-PPT Training Module for beginners
Ad

LECTURE THREE ON DATABASE MANAGEMENT.pptx

  • 1. XP XP XP INTRODUCTION TO DATABASE MANAGEMENT LECTURE THREE CREATING DATABASE INTRODUCTION TO DATABASE MANAGEMENT 1
  • 2. XP XP XP Objectives • Learn the guidelines for designing databases and setting field properties • Modify the format of a field in Datasheet view • Create a table in Design view • Define fields and specify a table’s primary key • Modify the structure of a table INTRODUCTION TO DATABASE MANAGEMENT 2
  • 3. XP XP XP Objectives • Import data from an Excel worksheet • Create a table by importing an existing table structure • Add fields to a table with the Data Type gallery • Delete, rename, and move fields • Add data to a table by importing a text file • Define a relationship between two tables INTRODUCTION TO DATABASE MANAGEMENT 3
  • 4. XP XP XP Guidelines for Designing Databases • Identify all the fields needed to produce the required information • Organize each piece of data into its smallest useful part • Group related fields into tables • Determine each table’s primary key • Include a common field in related tables • Avoid data redundancy • Determine the properties of each field INTRODUCTION TO DATABASE MANAGEMENT 4
  • 5. XP XP XP Guidelines for Setting Field Properties • You must name each field, table, and other object • Choose an appropriate data type INTRODUCTION TO DATABASE MANAGEMENT 5
  • 6. XP XP XP Guidelines for Setting Field Properties • The Field Size property defines a field value’s maximum storage size for Text, Number, and AutoNumber fields only –Byte –Integer –Long Integer –Single –Double –Replication ID –Decimal INTRODUCTION TO DATABASE MANAGEMENT 6
  • 7. XP XP XP Changing the Format of a Field in Datasheet View INTRODUCTION TO DATABASE MANAGEMENT 7
  • 8. XP XP XP Creating a Table in Design View • Creating a table in Design view involves entering the field names and defining the properties for the fields, specifying the primary key, and saving the table structure INTRODUCTION TO DATABASE MANAGEMENT 8
  • 9. XP XP XP Defining a Field in Design View • In the Field Name box, type the name for the field, and then press the Tab key • Accept the default Text data type, or click the arrow and select a different data type for the field. Press the Tab key • Enter an optional description for the field, if necessary • Use the Field Properties pane to type or select other field properties, as appropriate INTRODUCTION TO DATABASE MANAGEMENT 9
  • 10. XP XP XP Defining a Field in Design View INTRODUCTION TO DATABASE MANAGEMENT 10
  • 11. XP XP XP Specifying the Primary Key in Design View • Display the table in Design view • Click in the row for the field you’ve chosen to be the primary key to make it the active field. If the primary key will consist of two or more fields, click the row selector for the first field, press and hold down the Ctrl key, and then click the row selector for each additional primary key field • In the Tools group on the Design tab, click the Primary Key button INTRODUCTION TO DATABASE MANAGEMENT 11
  • 12. XP XP XP Specifying the Primary Key in Design View INTRODUCTION TO DATABASE MANAGEMENT 12
  • 13. XP XP XP Moving a Field • To move a field, you use the mouse to drag it to a new location in the Table window in the Table Design grid INTRODUCTION TO DATABASE MANAGEMENT 13
  • 14. XP XP XP Adding a Field Between Two Existing Fields • In the Table window in Design view, select the row below where you want the new field to be inserted • In the Tools group on the Design tab, click the Insert Rows button • Define the new field by entering the field name, data type, optional description, and any property specifications INTRODUCTION TO DATABASE MANAGEMENT 14
  • 15. XP XP XP Adding a Field Between Two Existing Fields INTRODUCTION TO DATABASE MANAGEMENT 15
  • 17. XP XP XP Importing Data from an Excel Worksheet • The import process allows you to copy the data from a source without having to open the source file • Click External Data on the Ribbon • Click the Excel button in the Import & Link group to start the wizard INTRODUCTION TO DATABASE MANAGEMENT 17
  • 18. XP XP XP Importing Data from an Excel Worksheet INTRODUCTION TO DATABASE MANAGEMENT 18
  • 19. XP XP XP Importing Data from an Excel Worksheet INTRODUCTION TO DATABASE MANAGEMENT 19
  • 20. XP XP XP Importing Data from an Excel Worksheet INTRODUCTION TO DATABASE MANAGEMENT 20
  • 21. XP XP XP Creating a Table by Importing an Existing Table Structure • Make sure the External Data tab is the active tab on the Ribbon • In the Import & Link group, click the Access button • Click the Browse button • Navigate to the file • Make sure the Import tables, queries, forms, reports, macros, and modules into the current database option button is selected, and then click the OK button • Click the Options button INTRODUCTION TO DATABASE MANAGEMENT 21
  • 22. XP XP XP Creating a Table by Importing an Existing Table Structure INTRODUCTION TO DATABASE MANAGEMENT 22
  • 23. XP XP XP Adding Fields to a Table Using the Data Type Gallery • The Data Type gallery, available in the Add & Delete group on the Fields tab, allows you to add a group of related fields to a table at the same time, rather than adding each field to the table individually • The group of fields you add is called a Quick Start selection INTRODUCTION TO DATABASE MANAGEMENT 23
  • 24. XP XP XP Adding Fields to a Table Using the Data Type Gallery INTRODUCTION TO DATABASE MANAGEMENT 24
  • 25. XP XP XP Deleting a Field from a Table Structure • In Datasheet view, click the column heading for the field you want to delete • In the Add & Delete group on the Fields tab, click the Delete button or • In Design view, click the Field Name box for the field you want to delete • In the Tools group on the Design tab, click the Delete Rows button INTRODUCTION TO DATABASE MANAGEMENT 25
  • 26. XP XP XP Deleting a Field from a Table Structure INTRODUCTION TO DATABASE MANAGEMENT 26
  • 27. XP XP XP Adding Data to a Table by Importing a Text File • Click the External Data tab on the Ribbon • In the Import & Link group, click the Text File button • Click the Browse button • Navigate to the file • Click the Append a copy of the records to the table option button • Select the table • Click the OK button INTRODUCTION TO DATABASE MANAGEMENT 27
  • 28. XP XP XP Adding Data to a Table by Importing a Text File INTRODUCTION TO DATABASE MANAGEMENT 28
  • 29. XP XP XP Defining Table Relationships • One of the most powerful features of a relational database management system is its ability to define relationships between tables • You use a common field to relate one table to another INTRODUCTION TO DATABASE MANAGEMENT 29
  • 31. XP XP XP Defining Table Relationships • A one-to-many relationship exists between two tables when one record in the first table matches zero, one, or many records in the second table, and when one record in the second table matches at most one record in the first table –The Primary table is the “one” in a one-to- many relationship –The Related table is the “many” table INTRODUCTION TO DATABASE MANAGEMENT 31
  • 32. XP XP XP Defining Table Relationships • Referential integrity is a set of rules that Access enforces to maintain consistency between related tables when you update data in a database • The Relationships window illustrates the relationships among a database’s tables • Click the Database Tools tab on the Ribbon • In the Relationships group on the Database Tools tab, click the Relationships button INTRODUCTION TO DATABASE MANAGEMENT 32