Relational Database Systems Higher Information Systems Advanced Implementation in Microsoft Access.

Slides:



Advertisements
Similar presentations
Relational Database Systems Higher Information Systems Advanced Implementation in MySQL/PHP.
Advertisements

Organisation Of Data (1) Database Theory
Relational Database Systems Higher Information Systems Advanced Implementation in Filemaker Pro.
Exploring Microsoft Access 2003 Chapter 5 One-to-Many Relationships : Subforms and Multiple Table Queries.
Microsoft Office Illustrated Fundamentals Unit K: Working with Data.
Tutorial 3 Queries and Table Relationships
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
With Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Querying a Database Microsoft Office Access 2003.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
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?
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
Data Types and Field Properties 5.01 Understand database tables used in business.
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
Microsoft Access 2000 Creating Tables and Relationships.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
© Relational Databases. © Entities Data is stored in tables. Each table is concerned with one entity An entity is a.
CIS 250 Advanced Computer Applications Introduction to Access.
M1G Introduction to Database Development 2. Creating a Database.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
ITGS Databases.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
Microsoft Access 2010 Chapter 3 Maintaining a Database.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Chapter 6 Creating, Sorting, and Querying a Table
Access Chapter 3-Obtaining Answers to Your Data Questions.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
Databases.  A database is simply a collection of information stored in an orderly manner.  A database can be as simple as a birthday book, address book.
DAY 16: MICROSOFT ACCESS – CHAPTER 2 Madhuri Siddula October 8, 2015.
ACIS Introduction to Data Analytics & Business Intelligence Ad-hoc Reporting Query Basics.
Access Chapter 1: Intro to Access Objectives Navigate among objects in Access database Difference between working in storage and memory Good database file.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
Exploring Office Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
D1 FMA Review. Many-to-Many Relationships - Examples Car Hire –A customer may hire one or more cars –A car may be hired by one or more customers Gym Club.
Databases Competency Explain advanced database concepts and functions.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Sample Table Standard Notation Entity name in uppercase
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Software. Because databases can get very big, it is important to decide exactly what is going to be stored in each field. Fields can be text, number,
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
Pmt Function Vlookup Function Excel Database.  Naming a Range is very useful Makes copying more clear because formula or function contains a name rather.
Relational Databases Today we will look at: Different ways of searching a database Creating queries Aggregate Queries More complex queries involving different.
Microsoft Office Access 2010 Lab 3
Databases Chapter 9 Asfia Rahman.
Databases.
Microsoft Office Access 2010 Lab 2
Microsoft Office Illustrated Fundamentals
Exploring Microsoft Access 2003
Presentation transcript:

Relational Database Systems Higher Information Systems Advanced Implementation in Microsoft Access

Developing a solution Tables Queries User Views Navigation

Referential Integrity For the database to work properly, it is essential to guarantee that a foreign key always refers to a record which exists in the other table. This is called referential integrity. For example, an entry in the Loan table can only refer to an existing record in the Member table, because a loan can only be made by a member.

Referential Integrity Referential integrity is established by defining relationships between the tables

Referential Integrity

Lookups are used to ensure referential integrity

Referential Integrity In the Loan table, the user can only enter a value for Member Number which already exists in the Member table

Validation: Presence Check

Validation: Range Check

Validation: Restricted Choice Check

Validation: Default Value

Formatting: Dates/Times

Formatting: Numeric

Queries Searching Sorting Calculations

Searching Searching is the process of selecting records from a table or combination of tables To perform the query, three items must be identified Which fields will be used to identify the records required? What are the criteria for identifying the records required? Which fields will be displayed?

Search 1: Single Condition Identify the names and telephone numbers of club members who have rented Shrek

Search 2: Multiple Conditions (AND) List those members who have rented Shrek since 16 August 2004

Search 3: Multiple Conditions (OR) List those members who have rented Shrek or Finding Nemo.

Search 3: Multiple Conditions (OR) Use Group By to eliminate duplicates

Search 4: Combining conditions List the members who have rented either Shrek or Finding Nemo since the 16 August 2004 The search criteria are: Film Title = Shrek AND Date Hired > 16/08/2004 OR Film Title = Finding Nemo AND Date Hired > 16/08/2004 Note that the Date Hired condition must be repeated for each film

Search 4: Combining conditions List the members who have rented either Shrek or Finding Nemo since the 16 August 2004

Sorting To perform a sort, two items must be identified: Which field (or fields) will be used to decide the order of records? For each field selected, will the order of sorting be ascending or descending?

Sorting To produce a list of people with the tallest first, the records would be sorted in descending order of height. To produce a list of people with youngest first, the records would be sorted in ascending order of age. A very common way of ordering records relating to people is in alphabetical order. To achieve alphabetical ordering requires the records to be sorted in ascending order of surname.

Complex Sorting A complex sort involves more than one sort condition involving two or more fields. To achieve telephone book order, the name is sorted in ascending order of surname, then ascending order of forename. In this case, the Surname field is the primary sort key, and the Forename field is the secondary sort key.

Complex Sorting

Calculations Horizontal calculations are often known as calculated fields, and vertical calculations are known as summary fields.

Functions

Working with Dates to search for all DVDs rented in the last week, you would use the expression Date() – [Date Hired] <= 7 to calculate a persons age in years from their date of birth, you would use the expression DateDiff("yyyy",[Date of Birth],Date())

Parameterised Queries

User Views User views are created using forms and reports. A form or report is usually based on a query which selects the required fields from the appropriate tables, sorting the results if necessary, and performing any horizontal calculations.

Report Structure

Summary Information Sumto add values to give a total, e.g. Total Cost of DVD Rentals last month Averageto find an average value, e.g. Average Cost of Hire per DVD Countto count the number of records found, e.g. Number of DVDs rented per member Maximumto find the highest value, e.g. Highest number of rentals per DVD (to find the most popular DVD) Minimumto find the lowest value, e.g. Lowest number of rentals per member

Summary Information Summary information is produced by creating a summary field. A summary field is a calculated field with a formula to perform the calculation, and is placed in a summary section of a report.

Sub-forms and sub-reports

Navigation

Scripting

Macros