Dr Derek Peacock14/08/20151 Database Design 1:1 Relationships Dr Derek Peacock.

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

ER Modeling Case Studies
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.
Data Modeling. What are you keeping track of? You begin to develop a database by deciding what you are going to keep track of. Each thing that you are.
Entity-Relationship Modeling (ER-M)
ER Modeling Case Studies
Database Modeling IT Key Ideas, Dynamic Database Systems, 2002 Chapter 8.
Data Elements and Tables IT Key Ideas, Dynamic Database Systems, 2002 Chapter 7.
ENTITY RELATIONSHIP MODELLING
Announcements Reading for Friday Homework 2 - Due 9/24
Draw an ER Diagram for the following (record any assumptions):
Normalisation Ensuring data integrity in database design 1.
UCB Enterprise Directory Services. Directory Services – Project History  Requirements defined  Project commission & goals articulated  Project teams.
UCB Enterprise Directory Services. Directory Services – Project History  Requirements defined  Project commission & goals articulated  Project teams.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Lecture 9 Handling Many to Many Relationships INFO 1408 Database Design Concepts.
Announcements Reading for Wednesday Homework 2 - Due 9/22
Case study Lisa’s Bookstore IST210.
Seminar #1 – Refreshing databases concepts and SQL CM036: Advanced Databases1 Seminar 1: Revisiting Databases and SQL Purpose To refresh basic concepts.
Entity/Relationship Modelling
Welcome to Staff Development and Recruitment Please enter your login details below: User name Password GO! Version 1.0 If you are having problems logging.
CV Writing Workshop Office of Student Affairs Career Services Center University of Balamand.
Advanced Entity Relationship Concepts. Advanced Concepts UIDs Intersection Entities Recursive Relationships Roles Subtypes Exclusivity Historical Fan.
SMART Agency Tipsheet Staff List This document focuses on setting up and maintaining program staff. Total Pages: 14 Staff Profile Staff Address Staff Assignment.
Last name First name ID Number Search for a student Show me all students in class / Tutor group FIND! To locate a student, please enter their details below:
CSE 441: Systems Analysis & Design
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Conceptual Design Revision Database Development. Basic constructs of the Entity Relationship Model Entity  Representation of an Entity on an ER diagram.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
A job application form is a form used in the recruitment process to enable a job candidate to supply information about his or her qualifications, skills,
Systems Development Lifecycle Screen Input Forms.
Complete theory from last lesson… Put today’s date in the front of your book Read pages 46 and 47 of the textbook…
© Relational Databases. © Entities Data is stored in tables. Each table is concerned with one entity An entity is a.
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
CS370 Spring 2007 CS 370 Database Systems Lecture 4 Introduction to Database Design.
1. Objectives At the end of this chapter you should be able to:  Discuss the use and features of a data model  Define the terms entity and attribute.
Overview of Database Development Data Modeling and Relational Database Design.
MS Access. Access is a DBMS/RDMS DBMS = Database Management System RDMS = Relational Database Management System.
E-R model for Exercise #1 Comments: 1. There is a lot of process, or data flow information in this description that will not be modeled in the E-R diagram,
Database Design 3: Advanced Data Modeling Concepts CS 320.
Chapter 7 Data Modeling with Entity Relationship Diagrams
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
Entity-Relationship Model Chapter 3 II COSC 457 Sungchul Hong.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Data Modelling Using Entity-Relationship (ER) Model
Use Case Diagrams.
Database Design – Lecture 6 Moving to a Logical Model.
Mr C Johnston ICT Teacher
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Howard Paul. Sequential Access Index Files and Data File Random Access.
1 CS 430 Database Theory Winter 2005 Lecture 3: A Fifty Minute Introduction to Data Modeling.
Data Modeling and Entity-Relationship Model I
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
Lesson Objectives By the end of this lesson you will be able to: 1.Assign appropriate primary keys/key fields 2.Identify foreign keys in different tables/files.
The “New” Questionnaire
Entity/Relationship Modelling
CSIS 115 Database Design and Applications for Business
Your local Children & Families Centre would love to meet you!
Review By: Reham Lotfi.
FERPA What is not protected?
Database Design ERD and Normalisation
Bookstore DB Requirements
ERD (Entity Relationship Diagrams)
Conceptual Data Modeling Using Entities & Relationships
ER Modeling Case Studies
Leader’s Name status goes here
Child Enrollment Form Child Name: ____________________________
Presentation transcript:

Dr Derek Peacock14/08/20151 Database Design 1:1 Relationships Dr Derek Peacock

14/08/20152 Entity: Tutor l Nat Ins No l Surname l First Name l Initials l Gender l Job Title l Department l Date of Birth l Office Phone No l Lab Phone No l Home Phone No l Address l Fax No l Date Appointed

Dr Derek Peacock14/08/20153 Relevance l Not all attributes are relevant to the application (e.g. Height) l Not all attributes are important for deciding the appropriate design l Not all relevant attributes might have been identified yet

Dr Derek Peacock14/08/20154 Skeleton Tables Tutor (Nat Ins No, Surname, Department…..)

Dr Derek Peacock14/08/20155 Entity: Student l Enrolment No l Surname l First Name l Initials l Gender l Qualification l Date of Birth l Home Address l Term Address

Dr Derek Peacock14/08/20156 Student Table Student (Enrolment No, Surname, Qualification…..)

Dr Derek Peacock14/08/ :1 Relationships Student Tutee of Tutor Each student must have one personal tutor Each tutor must have one tutee

Dr Derek Peacock14/08/20158 Posted Key (Tutors) Tutor TableStudent Table

Dr Derek Peacock14/08/20159 Posted Key (Is Tutored By) Student TableTutor Table

Dr Derek Peacock14/08/ :1 Relationships Student Tutee of Tutor Each student must have one personal tutor A tutor may have one tutee

Dr Derek Peacock14/08/ Tutor May Have (non obligatory) Tutor TableStudent Table

Dr Derek Peacock14/08/ Student Must Have..(obligatory) Student TableTutor Table

Dr Derek Peacock14/08/ :1 Relationships Student Tutee of Tutor A student may have one personal tutor A tutor may have one tutee

Dr Derek Peacock14/08/ Is Tutored By

Dr Derek Peacock14/08/ :1 Non Obligatory Relationship Student (Stud ID, Name, Address…) Tutor (Tutor ID, Name, Address…) Is Tutored by (Stud ID, Tutor ID)

Dr Derek Peacock14/08/ Recursive Relationships Person Married to A male person may be married to a female person A female person may be married to a male person

Dr Derek Peacock14/08/ Recursive Relationship (Tables) Person (Person ID, Gender, Name …) Married To (Male ID,Female ID)

Dr Derek Peacock14/08/ Sample Question A firm assigns a car to each member of staff who are currently part of the sales team. Other staff are not assigned a company car. All company cars will be assigned to a member of staff. Suggest a suitable database design to keep track of the assignment of cars to staff