Database Design and Development

Slides:



Advertisements
Similar presentations
Organisation Of Data (1) Database Theory
Advertisements

Session 2Introduction to Database Technology Data Types and Table Creation.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
The Ribbon Standard to all Office 2007 applications Organized by feature and functionality Navigation Pane Access to all objects in the current database.
DATABASE RC D DD CMA C M R B PK E I S H S RC H L I V FK.
WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
Keys, Referential Integrity and PHP One to Many on the Web.
Computer Concepts 5th Edition Parsons/Oja Page 492 CHAPTER 10 File And Database Concepts Section A PARSONS/OJA Databases.
ISP 121 Access Normalization and Relationships. Normalization Say we’re operating a pet day-care and we need to keep information on our pets/customers.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Video Rental Store M.S. Access Module CAS 133 Basic Computer Skills/MS Office Russ Erdman.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
MS Access 2007 IT User Services - University of Delaware.
Relational Database Need to Knows. What is a database? Data - is just a pile of numbers or stats. A business "organises" the data to be meaningful and.
Microsoft Access Intro Class 1 Database Concepts.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Primary & Foreign Keys. PK & FK 1.Primary key is required 2.The PK must be unique 3.If the primary key from one table is related to a field in another.
System Development Lifecycle Verification and Validation.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
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.
What have we learned?. What is a database? An organized collection of related data.
22 November Databases. Presentations Tega: news 1954 Prediction.
Database revision.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Planning & Creating a Database By Ms. Naira Microsoft Access.
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.
Flat Files Relational Databases
Connecting (relating) Data Tables to get Custom Records (Queries) Database Basics.
Howard Paul. Sequential Access Index Files and Data File Random Access.
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,
N5 Databases Notes Information Systems Design & Development: Structures and links.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
IGCSE 4 Cambridge Designing a database table Computer Science
Lesson 10 Databases.
Creating a database table
Tables & Relationships
Databases Chapter 9 Asfia Rahman.
Databases Key Revision Points.
Databases.
CHAPTER 7 DATABASE ACCESS THROUGH WEB
Microsoft Office Access 2010 Lab 2
Objectives Create an action query to create a table
Unit 16 – Database Systems
Data Validation and Protecting Workbook
Introduction to Database Systems
Database Management  .
Databases A brief introduction….
Do it now – PAGE 13 You will find your do it now task in your workbook – look for the start button! Thursday, 20 September 2018.
Databases and Information Management
DBS201: More on SQL Lecture 2.
Access Lesson 2 Creating a Database
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Database Design and Development
Database Theory.
Database Design and Development
Database Design and Development
Relational Database Design
Relational Databases.
Lesson 23 Getting Started with Access Essentials
Part 6 Q26 to Q30 of National 5 Prelim
Guidelines for Microsoft® Office 2013
Presentation transcript:

Database Design and Development Validation and Relationships

Starter Questions (back of jotter) List the 5 attribute types for Database fields. Fill in the blank: a collection of records is called a ______. An _____ is a single person, place or thing.

Learning Intention I will learn about database field validation.

Attribute Size We can limit the amount of information a single attribute can store. For example, a text attribute might be maximum 20 characters in length.

Validation Validation is the process of checking that data entered into a system is of the correct type and structure There are 4 types of validation:

Validation (cont) Presence check - checks that data has been entered into the field – cannot be left blank Restricted choice – user given a list of options to choose from. e.g. drop down menu

Validation (cont) Field length check – specifies the number of characters – e.g. telephone number must be 11 characters long Range check – sets the range of values allowed. e.g. 0 to 100 inclusive

Practical Tasks DB Booklet - Practical Task 3

Success Criteria I can describe and add validation rules to a database.

Learning Intention I will learn about database table relationships.

Table Relationships Customer ID First Name Last Name Pet ID Pet Name Type of Animal 2635 Brian Davies 789 Scruff Labrador 1293 Sue Towns 156 Phoebe Syrian Hamster 157 Jango 9735 Barry Grey 258 Killer English Bulldog 260 Psycho French Bulldog

Table Relationships Customer ID First Name Last Name Pet ID Pet Name Type of Animal 2635 Brian Davies 789 Scruff Labrador 1293 Sue Towns 156 Phoebe Syrian Hamster 157 Jango 9735 Barry Grey 258 Killer English Bulldog 260 Psycho French Bulldog

Table Relationships Storing all the data in one table is called a flat-file database. Problems: repeated data slower to update (because of the repeated data) risk of errors when updating (update anomalies)

Table Relationships (cont) Splitting one table into multiple tables solves these problems. A database with multiple related tables is called a Relational Database.

Table Relationships Customer ID First Name Last Name Pet ID Pet Name Type of Animal 2635 Brian Davies 789 Scruff Labrador 1293 Sue Towns 156 Phoebe Syrian Hamster 157 Jango 9735 Barry Grey 258 Killer English Bulldog 260 Psycho French Bulldog

Table Relationships - Keys Pets Pet ID Pet Name Type of Animal Customer ID 789 Scruff Labrador 2635 156 Phoebe Syrian Hamster 1293 157 Jango 258 Killer English Bulldog 9735 260 Psycho French Bulldog Customers Customer ID First Name Last Name 2635 Brian Davies 1293 Sue Towns 9735 Barry Grey

Table Relationships - Keys A field used to link two tables is called a key field. It is called the primary key in the table in which the key field is unique (not repeated). It is called the foreign key in the other table.

Which key field is which? Pets PK Pet ID Pet Name Type of Animal Customer ID 789 Scruff Labrador 2635 156 Phoebe Syrian Hamster 1293 157 Jango 258 Killer English Bulldog 9735 260 Psycho French Bulldog Customers FK Customer ID First Name Last Name 2635 Brian Davies 1293 Sue Towns 9735 Barry Grey PK

Pupils Database Example

Practical Tasks DB Booklet - Theory Tasks 1 & 2 DB Booklet - Practical Task 4 DB Booklet - Theory Task 3 DB Booklet - Practical Task 5

Practical Tasks DB Booklet - Theory Tasks 1 & 2 DB Booklet - Practical Task 4 DB Booklet - Theory Task 3 DB Booklet - Practical Task 5

Success Criteria I can create and describe relationships between tables in terms of the key fields.