Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2.1: Relational Databases.
Advertisements

Microsoft Access.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Access.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Access Lesson 2 Creating a Database
Chapter 1 Databases and Database Objects: An Introduction
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Chapter 2 Querying a Database
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Chapter 3 Maintaining a Database
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Create, Edit, and Perform.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access 2007 Committed to Shaping the Next Generation of.
Access Lesson 2 Creating a Database
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2010.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1: Finding Your Way Through.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1: Finding Your Way Through.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
Exploring Microsoft Office Access 2010
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1: Finding Your.
Access Tutorial 2 Building a Database and Defining Table Relationships
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 10 Customizing a Database.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 8 Exchanging Data Between Access and Other Applications Exploring Microsoft Office Access.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Chapter 7 Advanced Queries Robert.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 9 Bulletproofing the Database.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2007.
® Microsoft Office 2013 Access Creating a Database.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Create, Edit,
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
1 11 Chapter 7 Action Queries Exploring Microsoft Office Access 2007.
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
Access Tutorial 2 Building a Database and Defining Table Relationships
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
Objectives Create an action query to create a table
Exploring Microsoft Office Access
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
Database Queries.
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Exploring Microsoft Office Access
Tutorial 9 Using Action Queries and Advanced Table Relationships
Presentation transcript:

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases and Multi-Table Queries Robert Grauer, Keith Mulbery, Maurie Wigman Lockley Exploring Microsoft Office Access 2007

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 2 Objectives Create tables Establish table relationships Create a query Specify criteria for different data types Use the Query Wizard

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 3 Table Design Considerations Just as you first create a blueprint to build a house, you should first sketch or outline the design of a database table Careful pre-planning will save you much time in the future

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 4 Table Design Considerations – Field Size Property Set the field size in Table Design View Always anticipate the current field size may one day need to be larger Set field size in the Field Properties grid of Table Design View

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 5 Table Design Considerations – Store Data in its Smallest part For greater flexibility, store data in its smallest part  Instead of one field for an address, use many  Instead of one field for a name, two or three Like this Not like this

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 6 Table Design Considerations – Design Multiple Tables Using multiple tables helps reduce redundancy  The process is also referred to as normalization Multiple table tabs identify open tables Multiple tables shown in the Navigation pane

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 7 Creating Tables – From the Create Tab Enter table data directly in fields  From the Create Tab, click Table Use a table template  From the Create Tab, click Table Templates Enter data directly into a table, including the field names Enter field names, data types and descriptions in Table Design View Begin with a template

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 8 Create Tables – Specifying field names After choosing your method of creation begin implementing the table design  Use CamelCase notation for field names  Specify data types  Establish a primary key  Consider the need for a foreign key Table View Table Design View Add field in Table View

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 9 Create Tables – Primary Key Tables are automatically created with an AutoNumber field which serves as the primary key To change the primary key  Select a field in Design View  Click the primary key icon Primary Key Field Primary Key icon

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 10 Create Tables – Consider a Foreign Key Customer ID - Primary Key in Customer Table Customer ID –will only appear in one record - there must only be one unique id per customer Customer ID - Regular Field in Orders Table Customer ID may appear many times – one customer can place many orders Based on the above example:  Customer Id is the foreign key in the Orders table  This is referred to as a One to Many Relationship

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Creating Tables – From the Import Tab Click the application from which to import or Choose the type of file you wish to import Click the appropriate application button Choose a file type to import

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 12 Sharing Data with Excel Data can be imported from Excel  It may be appended to an existing table  It may be used to create a new table Excel icon External Data tab

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 13 Sharing Data with Excel Select the Excel file you would like to import Select how you would like to import the data  Appended – added to the end of an existing table  New table – creates a new table in a database  Linked – create a new table that is linked to the source file in Excel Select the Source Select the destination

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 14 Establishing Relationships Click the Database tools and click the Relationships icon In the Relationship window, click and drag a field name from one table to a field name in a related table Relationships icon Click and drag to create a relationship

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 15 Establishing Relationships Enter the appropriate settings in the Edit relationships dialog box and click Create A join line will appear when one table is joined to another Infinity symbol notes referential integrity has been applied Set referential integrity and cascades

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 16 Queries Queries allow us to ask questions about data This record set that answers our question is called a dataset Employees table Dataset resulting from querying table for only employees who are Sales Representatives

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 17 Using Query Design View Query Design grid has two panes – the table pane and the design pane Striking the F6 key will toggle you between sections Tables pane Design pane

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 18 Select Query Searches associated tables and returns a dataset that matches the query parameters Changes made to the dataset will be reflected in the associated tables

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 19 Specifying Criteria in a Select Query Field row – displays the field name Sort row – enables you to sort the dataset Show row – controls whether or not you see a field in the dataset Criteria row – determines the records that will be selected for display Fields in design grid allow us to specify criteria for the dataset

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 20 Run a Query Running, or executing, a query is done by clicking the Run command Run command

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 21 Creating Queries – Using the Query Wizard From the Create tab, choose Query Wizard for the Other group Choose query type from the New Query dialog box Query Wizard icon Select Simple Query Wizard

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 22 Questions?