Relational Database Systems Higher Information Systems Advanced Implementation in Filemaker Pro.

Slides:



Advertisements
Similar presentations
Information Systems Technology Ross Malaga B Copyright © 2005 Prentice Hall, Inc. B-1 WORKING WITH DATABASES.
Advertisements

DT FMA Planning Guide. Task For your FMA you are required to implement the database that you designed for your TMA –Create the appropriate tables –Import.
Relational Database Systems Higher Information Systems Advanced Implementation in MySQL/PHP.
Relational Database Systems Higher Information Systems Advanced Implementation in Microsoft Access.
Organisation Of Data (1) Database Theory
Exploring Microsoft Access 2003 Chapter 5 One-to-Many Relationships : Subforms and Multiple Table Queries.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Database Management Systems and Enterprise Software
Database Systems Information Systems Intermediate 2.
DATABASE RC D DD CMA C M R B PK E I S H S RC H L I V FK.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Concepts of Database Management Seventh Edition
Exploring Microsoft Excel 2002 Chapter 7 Chapter 7 List and Data Management: Converting Data to Information By Robert T. Grauer Maryann Barber Exploring.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Introduction to Structured Query Language (SQL)
Chapter 7 Data Management. Agenda Database concept Import data Input and edit data Sort data Function Filter data Create range name Calculate subtotal.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
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 Design IST 7-10 Presented by Miss Egan and Miss Richards.
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
Access 2007 ® Use Databases How can Access help you to find and use information?
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.
Spreadsheet Operations and Functions.  Spreadsheet Operations and Functions increase the efficiency of data entry, the performing of calculations, and.
Chapter 3 Maintaining a Database
2.3 Organising Data for Effective Retrieval
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics.
Database Management Systems. This lesson includes the following sections  Databases and Management Systems Working with a Database Enterprise Software.
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,
How could the database be most efficiently searched to find all of the inventions of Samuel Morse? A. Inventor = "Morse" C. Invention = "telegraph" B.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Access 2002 Advanced Report Design.
1 Data List Spreadsheets or simple databases - a different use of Spreadsheets Bent Thomsen.
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
© 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.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Querying a Database - A question or an inquiry (dictionary.com) - WHAT ARE WE ASKING QUESTIONS ABOUT? THE DATA - BY ASKING QUESTIONS OF THE DATA WE OBTAIN?
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.
ITGS Databases.
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.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
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.
Access Chapter 1: Intro to Access Objectives Navigate among objects in Access database Difference between working in storage and memory Good database file.
Databases 101 © Dolinski What you will learn How relational databases work What are the components that make up a database How to create each component.
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.
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.
Database Relationships Objective 5.01 Understand database tables used in business.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
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.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Databases.
Microsoft Office Access 2010 Lab 2
Microsoft Office Illustrated Fundamentals
Exploring Microsoft Access 2003
Database Design and Development
Spreadsheets, Modelling & Databases
Presentation transcript:

Relational Database Systems Higher Information Systems Advanced Implementation in Filemaker Pro

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 files

Referential Integrity

Value lists 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? Which tables are required to produce the data required? What are the criteria for identifying the records required?

Search 1: Single Condition Identify the names and telephone numbers of club members with Member Number over 1000

Search 2: Multiple Conditions (AND) Identify the names and telephone numbers of club members with Surnames beginning with M and Member Number over 1000

Search 3: Multiple Conditions (OR) Identify the names and telephone numbers of club members with Surnames beginning with M or N

Search 4: More than one table Identify the names of club members who rented a DVD in August 2005 A relationship must be set-up in the Loan entity to link Loan to Member

Search 4: More than one table Calculated fields must be set-up in the Loan table whose values are Forename and Surname

Search 4: More than one table

Search 5: More than two tables Identify the names of members who have rented Shrek Relationships must be set-up to link Loan to Member, and Loan to DVD Because the search involves the Film Title, a relationship must be established to directly link Loan to Film

Search 5: More than two tables Calculated fields must be added to the Loan table for Film Code (using the Loan to DVD relationship) Film Title (using the Loan to Film relationship) Forename and Surname (using the Loan to Member relationship)

Search 5: More than two tables Calculated fields must be added to the Loan table for Film Code, Film Title, Forename and Surname

Search 5: More than two tables

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

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

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 Today – Date Hired <= 7 to calculate a persons age in years from their date of birth is not nearly as simple, as there is no pre-defined function to calculate date differences. Here it is… Case( Month(Today) > Month(Date of Birth), Year(Today) – Year(Date of Birth), Month(Today) < Month(Date of Birth), Year(Today) – Year(Date of Birth) – 1, Day(Today) >= Day(Date of Birth), Year(Today) – Year(Date of Birth), Year(Today) – Year(Date of Birth) – 1)

Parameterised Queries

User Views User views are created using layouts. A layout may be based on a script which performs the required searching or sorting operations

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.

Summary Information A summary field is a calculated field with a formula to perform the calculation.

Summary Information A summary field is placed in a summary section (or part) of a report.

Summary Information

Sub-forms and sub-reports Portals are used to create sub-forms and sub-reports

Navigation

Scripting

Macros An alternative to scripting is to use macros A macro is a sequence of one or more actions that each perform a particular operation within the DBMS Macros are particularly useful for automating common tasks In Filemaker, macros are implemented using scripts