Lesson 2: Designing a Database and Creating Tables.

Slides:



Advertisements
Similar presentations
Intro to Access 2007 Lindsey Brewer CSSCR September 18, 2009.
Advertisements

© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Relationships Relational Database. Identifying Entities… In the previous tutorial you learnt about identifying entities in a flat file database. Also.
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Computer Concepts BASICS 4th Edition
Lesson 30: Maintaining a Database. Learning Objectives After studying this lesson, you will be able to:  Change the layout of a table by adjusting column.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
ISP 121 Week 1 Introduction to Databases. ISP 121, Winter Why a database and not a spreadsheet? You have too many separate files or too much data.
Access Tutorial 1 Creating a Database
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Database Software Application
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Database Relationships Objective 5.01 Understand database tables used in business.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1 Created By Martin Schedlbauer
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
Database Design Concepts
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Unit 18: Database Modelling
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
More about Databases. Data Entry through Forms Table View (Data sheet view) is useful for data entry of new records But sometimes customization would.
Information Systems & Databases 2.2) Organisation methods.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Microsoft Access Intro Class 6 Relationships.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
® Microsoft Office 2013 Access Creating a Database.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
1/62 Introduction to and Using MS Access Database Management and Analysis Yunho Song.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Database revision.
D ATABASE O BJECTS Putting the Objects to Work. Database Objects When creating a database, you are creating a database that will store objects. Database.
Planning & Creating a Database By Ms. Naira Microsoft Access.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
Microsoft Access Database Creation and Management.
Database design Using Access 2007
Lesson 29: Building a Database. Learning Objectives After studying this lesson, you will be able to:  Identify key database design techniques  Open.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Working with Multiple Workbooks Lesson 4 – Microsoft Excel 2010.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Chapter 1 Introduction to Database. Database Concept Field: a basic data element or attribute of an object Record: a set of fields Table: a set of records.
Database Relationships Objective 5.01 Understand database tables used in business.
ACCESS LESSON 1 DATABASE BASICS VOCABULARY. BACKSTAGE VIEW A menu of options and commands that allows you to access various screens to perform common.
Course Contents Overview: Database basics Lesson 1: Benefits of using a database Lesson 2: Table that data Lesson 3: Analyzing, viewing, and reporting.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
Database Presentation BIM, Mrs. Bailey. **Database Notes** Use new sheet of paper! Microsoft Access - known as a database management system or DBMS Database.
Access Creating a Database
Access Creating a Database
Working with Tables, PivotTables, and PivotCharts
Presentation transcript:

Lesson 2: Designing a Database and Creating Tables

Learning Objectives After studying this lesson, you will be able to: Plan, design, and create a relational database and associated tables Define and implement database normalization Define data relationships, and primary and foreign keys Define and create an Entity Relationship Diagram Sort and filter records 2

Designing a Relational Database 3 Flat file database: Relational database:

Relational Database A relational database contains two or more tables that are linked (related) to each other by unique and identifying key fields such as ProductID or Invoice Number. 4

Gathering Data Before you create a database you should: Analyze the needs of the business and the requirements of the database. Use Excel to create a list of the reports and forms. 5

Importance of Good Database Design 6 Separate Tables Organize and separate data fields into tables with specific subjects (e.g., person, place, or product) so you can easily locate records and reduce redundant data and inconsistencies. Assign Keys Set a unique key field for each main table to link to data in other tables. Atomize Fields Breaking fields into the smallest single values is called atomization. Example: Instead of a Name field that contains the value of Jay Winchester, create two fields—FirstName (Jay) and LastName (Winchester)

Normalization 7 Organizing tables and fields into their smallest distinct parts, and then efficiently linking the data together through the relationships of key fields, is called normalization.  Eliminates data duplication  Decreases data entry errors and inconsistencies  Reduces file size  Streamlines the search for necessary information

Primary Key 8 Almost every database table should have a primary key field with a unique ID that will not be the same for any two database records. Example: social security number and a student ID

Foreign Key 9 A foreign key is a field in a secondary table that corresponds and links to the primary key field in the main table, where the information for a particular item is stored. The foreign key must be the same data type as the primary key, except in the case of AutoNumber.

Foreign Key 10 The CustID field in the Invoices table is a foreign key that links to the primary key in the Customers table to obtain the customer name, address, and customer contact information stored in the main table.

Identifying Relationship Types Relationships in databases connect data in one table to data stored in other tables. Access supports three different types of relationships:  One-to-one  One-to-many  Many-to-many 11

Identifying Relationship Types A one-to-one relationship means that each record in Table A can have only one matching record in Table B, and each record in Table B can have only one matching record in Table A. 12

Identifying Relationship Types A one-to-many relationship means that each record in Table A can have multiple matching records in Table B, but a record in Table B can have only one matching record in Table A. 13

Identifying Relationship Types A many-to-many relationship occurs when two tables each have many matching records in the other table, but they do not share key fields. A third junction table ties the tables together and completes the relationship. 14

Entity Relationship Diagram (ERD) An Entity Relationship Diagram (ERD) helps to model and display relationships between entities, specifically the relationship between tables and fields, as established by key fields. 15

Data Types 16

Creating a New Database 17 First, select a blank database. Second, enter a file name, and then click Create.

Editing and Saving Tables 18

Creating a Table Using Design View 19

Importing Data from Excel You can create new tables from data stored in other programs. External Data tab on the Ribbon contains Import tools. Most import procedures use Wizards. 20

Retrieving Data Access provides three main tools and features for helping to locate and retrieve data: Sorting features Filtering tools Find and Replace commands 21

Sorting Records Using Multiple Fields 22 First, drag the mouse to select both the Last Name and First Name column headings. Second, choose Home > Sort & Filter > Ascending.

Filter Tools Filter by Selection: Selects records based on the value contained in the active field in the table. Filter by Form: Selects records based on values or conditions (criteria) you type into form fields. Access searches only the fields you specify. 23

Filter Tools Filter by Selection 24

Filter Tools Filter by Form 25

Filter Tools Find and Replace: Using this tool, you can easily locate, delete, and edit records. 26

Lesson 2: Designing a Database and Creating Tables