Review: ACCESS Database Systems

Slides:



Advertisements
Similar presentations
1 Chapter 1 & 2 Relational Databases and Queries CS101 WVU.
Advertisements

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
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
Developing Effective Reports
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.
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
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1: Finding Your.
Review: Application of Database Systems
Microsoft Access 2010 Building and Using Queries.
Analyzing Data For Effective Decision Making Chapter 3.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
Using Microsoft Access 56:150 Information System Design.
Part II. Query Types On the design query table pane, right click and the cascading window will appear.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2007.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
Relational Database Techniques
© 2001 ComputerPREP, Inc. All rights reserved. Access 2000: Module II.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
Creating Advanced Queries and Enhancing Table Design.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office.
1 Finding Your Way Through a Database Exploring Microsoft Office Access.
Microsoft Office Access 2010 Lab 3
GO! with Microsoft Office 2016
Exploring Microsoft Office Access 2007
Microsoft Office Illustrated Introductory, Windows Vista Edition
Plug-In T7: Problem Solving Using Access 2007
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
GO! with Microsoft Access 2016
Exploring Microsoft Office Access
Building and Using Queries
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
Tutorial 3 – Querying a Database
CIS16 Application Programming with Visual Basic
Data Types and Field Properties
Answer:  Select queries Parameter queries Cross Tab queries
Review: Application of Database Systems
Exploring Microsoft Office Access 2010
Microsoft Office Illustrated Introductory, Windows XP Edition
Chapter 2 Design Table and Form.
Exploring Microsoft Office Access
Chapter 2 Design Table and Form.
Assignment 3 Querying and Maintaining a Database
Presentation transcript:

Review: ACCESS Database Systems Chapter 1: Finding Your Way Through a Database Chapter 2: Relational Databases and Multi-Table Queries Chapter 3: Customize, Analyze, and Summarize Query Data Chapter 4: Create, Edit, and Perform Calculations in Reports

Chapter 1 Tables Queries Reports Forms Macros Modules Objects

Field Record Table Database A database is made up of one or more tables Field Record Table Database Individual fields Individual tables in a database Records

Work with Table Views Design View Datasheet View

Datasheet View Primary key field Navigation buttons Scroll bar Navigation bar

Design View Click F6 to switch between the upper and lower panes Key symbol identifies primary key field Click F6 to switch between the upper and lower panes Set field properties in the lower pane

Primary & Foreign Keys Primary Key (PK)- Uniquely identifies each record in a table. It is needed for searching the database. Some times if there is no unique value in a table the database designer may use a auto number in Access to use a unique serialized number as the primary key. Examples: SIN, Student Number, heath card number.

Primary & Foreign Keys Foreign Key (FK)- A field in one table that is a primary key in another table. It is with these values we can build relationships between tables. The values of an FK must satisfy one of two conditions: - any FK-value is a value appearing in the referenced table or a null value. Non Key- a regular field in a database.

Forms, Queries, and Reports Query Form

Filters Create a subset of records Do not change underlying table data Two types Filter by Selection Filter by Form

Filter by Selection Table before filter by selection Results of filter Filter by selection being applied from pre-determined criteria

Filter By Form Inequity setting used in a Filter by Form process Selection of criteria during Filter by form process

Sorting Table Data Last Name field sorted descending Last Name field sorted ascending

Establishing Relationships Click and drag to create a relationship Primary Key Foreign Key

Establishing Relationships Infinity symbol notes referential integrity has been applied

Referential Integrity Enforce Referential Integrity

Chapter 2 Five different ways to create tables Using Table Wizard Using data sheet view Using design view Creating tables with queries Creating tables by importing external data sources

Data Types of Fields Attachment    Files, such as digital photos. Multiple files can be attached per record. This data type is not available in earlier versions of Access. AutoNumber    Numbers that are automatically generated for each record. Currency    Monetary values. Date/Time    Dates and times. Hyperlink    Hyperlinks, such as e-mail addresses. Memo    Long blocks of text and text that use text formatting. A typical use of a Memo field would be a detailed product description. Number    Numeric values, such as distances. Note that there is a separate data type for currency. OLE Object    OLE objects (OLE object: An object supporting the OLE protocol for object linking and embedding. Text    Short, alphanumeric values, such as a last name or a street address. Yes/No    Boolean values.

Work with Properties Field Size property Caption property

Properties Field size- Adjusts the size of the text field Format- changes the way field is displayed. Does not effect the value. Input Mask- facilitates data entry Caption- Label used for the field Default Value- the automatically entered value Validation Rule- Rejects records that do not conform to rules entered. Validation Text- Error returned when validation rule is broken. Required- Forces user to enter in value if selected. Allow Zero Length- Allows text length of 0. Indexed- increases efficiency of search on the field

Table Design Considerations 1. Field Size Property 2. Validation Rules 3. Store Data in its Smallest part 4. Avoid Calculated Fields 5. Plan for Date Arithmetic 6. Design Multiple Tables

Create Tables – Primary Key Primary Key icon Primary Key Field

Query Types A select query retrieves data from one or more tables and displays the recordset in a datasheet. You can also use a select query to group data, and to calculate sums, counts, averages, and other types of totals. A parameter query displays a dialog box when it runs, prompting the user to enter information to use as criteria for the query. A cross-tab query arranges a recordset to make it more easily visible, using both row headings and column headings. Data can be seen in terms of two categories at once. An action query creates a new table or changes an existing table by adding data to it, deleting data from it, or updating it. An SQL query is created by using a statement in Structured Query Language (SQL).

Wizard/Design View As with forms and reports, Access provides two basic ways to create queries: by using a wizard, and in Design view. The wizard, also known as the Simple Query Wizard, gives you a head start in setting up your query's structure by making some arrangements for you. In Design view you have total control when creating a query. You drag the fields you want to a grid, and then you enter the criteria for selecting the data to be retrieved.

Specifying Criteria in a Select Query Fields in design grid allow us to specify criteria for the dataset 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

Specifying Criteria – And and Or Or Criterion and resulting dataset And criterion and resulting dataset OR finds records that can match one or more conditions AND finds records that must match all criteria specified

Database Analysis Tools SELECT fname FROM customer WHERE lname=“Smith” ORDER BY fname Returns records in the fname field only where the lname field is equal to Smith. Records are sorted in ascending order by first name Clauses - Added to statements to restrict/specify records WHERE clause - Specifies which records to return ORDER BY clause - Specifies sort order

Structured Query Language SELECT Orders.CustomerID, Orders.EmployeeID, Orders.OrderDate, Orders.Freight FROM Orders WHERE (((Orders.OrderDate)>#3/25/2010#)) OR (((Orders.EmployeeID)<7));

Structured Query Language SELECT Orders.CustomerID, Orders.EmployeeID, Orders.OrderDate, Orders.Freight, [Order Details].Quantity FROM Orders INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID WHERE (((Orders.OrderDate)>#3/25/2010#) AND (([Order Details].Quantity)>7)) OR (((Orders.EmployeeID)<7));

Structured Query Language SELECT DISTINCTROW Account.BID, Sum(Account.Balance) AS [Sum Of Balance] FROM Account GROUP BY Account.BID;

Data Aggregates Use a Totals Query to Group Grouping field Field to be totaled select Location, sum(Balance) where Account, Branch group by Location Organizes query results into groups Only use the field or fields that you want to total and the grouping field

Creating Queries – Using the Query Wizard Query Wizard icon Select Simple Query Wizard

Creating Queries – Using the Query Wizard: continued

Chapter 3 Create a calculated field in a query Create expressions with the Expression Builder Perform date arithmetic Create and work with data aggregates

Parts of an Expression Constants: a named item whose value remains Identifiers Value [Price] * [Quantity_On_Hand] * 0.7 Operator Constants: a named item whose value remains constant while Access is running Values: literal values such as the number 1,75 or the word “Hello”

What Are Expressions Used For? You can use an expression to: perform a calculation retrieve the value of a field or control supply criteria to a query create calculated controls and fields define a grouping level for a report Result of a calculation in a query formed by using an expression

What Are Expressions Used For? You can use an expression to: perform a calculation retrieve the value of a field or control supply criteria to a query create calculated controls and fields define a grouping level for a report Result of a calculation in a report formed by using an expression

Creating a Calculated Field Expression using existing fields in a database Total Value: [Price] * [Quantity_On_Hand] Descriptive name for new field preceded with colon (:) Use correct syntax Assign a descriptive name to the field Enclose field names in brackets

Calculated Field in a Query Query Design View Calculated Field A calculated field is added to a blank column in the design grid

Add a Total Row in a Query The total row can be added to the design grid by clicking the Totals Icon Totals Icon Total row added to the query

Expression Builder Expand folders by clicking plus sign Fields available in current query Use expressions to add, subtract, multiply, and divide the values in two or more fields/ controls

Variations of DatePart Function =DatePart(“q”, “01/22/2007”) Displays the quarter in which the given date falls =DatePart(“h”, Now()) Displays the hour part of the current date =DatePart(“d”, Now()) Displays the day part of the current date

Variations of the DateDiff Function =DateDiff(“d”, [orderdate],[shippeddate]) Displays the number of days between ordering and shipping =DateDiff(“m”,#01/06/2006#, #07/23/2007#) Displays the number of months between the two dates =DateDiff(“d”,[dateborn], Now()) Displays the number of days between the dateborn field and the current date

Reports Chapter 4 seven sections: - report header - page header - group header - details - group footer - page footer - report footer