G057 - Lecture 05 From Scenario To Design Mr C Johnston ICT Teacher www.computechedu.co.uk.

Slides:



Advertisements
Similar presentations
Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
Advertisements

Post Exam Study Database Design
ER Modeling Case Studies
GCSE Computing#BristolMet Session Objectives# 21 MUST describe methods of validating data as it is input. SHOULD explain the use of key fields to connect.
 To provide you with an overview of the aspects that make up a relational database.  This includes: › Tables › Records › Fields › Data types › Keys.
Further Data Modelling …and the effect of time. Plan Introduction Structured Methods –Data Flow Modelling –Data Modelling –Relational Data Analysis –Further.
Data modelling uses two main techniques Entity relationship (E-R) modelling: a top- down approach Normalisation: a bottom-up approach.
1 LBSC 690: Week 9 SQL, Web Forms. 2 Discussion Points Websites that are really databases Deep vs. Surface Web.
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?
Case study Lisa’s Bookstore IST210.
Web Database Design Session 6 and 7 Matakuliah: Web Database Tahun: 2008.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.
Entity Relationship Modeling
ZEIT2301 – Database Design Entity-Relationship Diagrams
Advanced Entity Relationship Concepts. Advanced Concepts UIDs Intersection Entities Recursive Relationships Roles Subtypes Exclusivity Historical Fan.
CSE 441: Systems Analysis & Design
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
CHAPTER 2. FUNDAMENTAL OF ENTITY RELATIONSHIP (ER)
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Practice of ER modeling
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher
Database Management Systems
WEEK 10 Database Design. Agenda – Week 10 Review Hybrid Review Table Instance Charts Primary Keys Normalization.
G045 Lecture 09 ERD Diagrams (Entity Relationship Diagrams) Mr C Johnston ICT Teacher
WEEK 10 Database Design. Agenda – Week 10 Review Hybrid Review Primary Keys Table Instance Charts.
1 n 1 n 1 1 n n Schema for part of a business application relational database.
Database Beginnings. Scenario so far In our scenario we have people registering for training sessions. –The data about the training sessions was placed.
Section 08 (a)ER Modelling In Practice1 HSQ - DATABASES & SQL And Franchise Colleges 08 (a) ER Modelling In Practice QUICKHIRE Car Company.
Constraints - primary and foreign keys in Oracle Please use speaker notes for additional information!
1 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Advanced Database Concepts INFO/CSE.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Normalization Exercise. First Normal Form Second Normal Form.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
G045 Lecture 08 DFD Level 1 Diagrams (Data Flow Diagrams Level 1)
G045 Lecture 07 DFD Context Diagrams (Data Flow Diagrams Level 0)
Database Design Normalisation. Last Session Looked at: –What databases were –Where they are used –How they are used.
Database Design – Lecture 6 Moving to a Logical Model.
IS6145 Database Analysis and Design Lecture 4: Fine-Granular Design-Specific ER Modelling Rob Gleasure
Mr C Johnston ICT Teacher
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
COMP 430 Intro. to Database Systems Entity-Relationship Diagram Basics Slides use ideas from Chris Ré.
Data Modeling AND ER MODELS.
For more course tutorials visit CIS 336 All iLabs Week 1 to Week 7 Devry University CIS 336: All iLabs Week 1 to Week 7: Devry University.
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
BTEC NCF IT Unit 02 Creating Systems to Manage Information Lesson 05 – Data Types Mr C Johnston.
DATA MODELING AND DATABASE DESIGN
IS6145 Database Analysis and Design Lecture 4: Fine-Granular Design-Specific ER Modelling Rob Gleasure
Week 03 – ER Diagram INFOSYS 222.
IS6125 Database Analysis and Design Lecture 5: Conceptual Data Modelling 2: ER Modelling and Beyond the Presentation Layer Rob Gleasure
Mr C Johnston ICT Teacher
ER MODEL Lecture 3.
CIS 336 str Competitive Success/snaptutorial.com
CIS 336 str Education for Service- -snaptutorial.com.
CIS 336 str Teaching Effectively-- snaptutorial.com.
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Entity relationship diagrams
IS6125/IS6145 Database Analysis and Design Lecture 4: Fine-Granular Design-Specific ER Modelling Rob Gleasure
IS6125 Database Analysis and Design Lecture 6: Fine-Granular Design-Specific ER Modelling Rob Gleasure
Entity – Relationship Model
MIS2502: Data Analytics Relational Data Modeling
Bookstore DB Requirements
Databases.
Advanced Database Concepts: Reports & Views
MIS2502: Data Analytics Relational Data Modeling 2
Entity Relationship Model
IS6125 Database Analysis and Design Lecture 8: Practice with ERDs
DATA MODELING AND DATABASE DESIGN
Presentation transcript:

G057 - Lecture 05 From Scenario To Design Mr C Johnston ICT Teacher

Session Objectives Learn the stages involved in turning a scenario into a “ Logical Data Model ”, Look at an example of the “ scenario to design ” process, Practice the “ scenario to design ” process by completing the exercises.

The Process The following steps are taken when faced with a scenario which a database solution would be suitable: Shout Swear Scream Swear some more Cry Read the scenario Identify the nouns Create an entity table Draw an ERD Create a “ Data Dictionary ”

Scenario 1 – Read It When a library receives a new book it is given a unique code and the title, author, publisher and ISBN number are recorded. There may be several copies of each work all with their own code in the library along with a shelf reference and current loan state. (A book can be available, damaged, on loan or withdrawn). Each student who uses the library has a student record which shows the student ID, name and address. When a student makes a loan of a book their ID and the unique book code are noted down along with the loan date and return date.

Scenario 1 – Identify The Nouns When a library receives a new book it is given a unique code and the title, author, publisher and ISBN number are recorded. There may be several copies of each work all with their own code in the library along with a shelf reference and current loan state. (A book can be available, damaged, on loan or withdrawn). Each student who uses the library has a student record which shows the student ID, name and address. When a student makes a loan of a book their ID and the unique book code are noted down along with the loan date and return date.

Scenario 1 – Entity Table Possible EntitiesNotesEntity LibraryProblem area BookYes Unique CodeAttribute of book TitleAttribute of book AuthorAttribute of book PublisherAttribute of book ISBN NumberAttribute of book Copies (Copy)Physical thing on shelfYes WorkPseudonym of book

codeAttribute of copy Shelf referenceAttribute of copy Loan stateAttribute of copy StudentYes Student_IDAttribute of student NameAttribute of student AddressAttribute of student LoanYes Student_IDAttribute of loan Unique book codeAttribute of loan Loan DateAttribute of loan Return DateAttribute of loan

Scenario 1 - ERD Using the entities found in the scenario it is possible to draw an ERD Sometimes the diagram contain many to many relationships which will need to be resolved.

Scenario 1 – Data Dictionary Using the entity table many of the attributes have been found Creating a data dictionary from here should simple Additional attributes may need adding

Scenario 2 An insurance company stores data about its customers in a file. When a new customer joins the company they are given a unique ID and details of their name, address and phone number are taken. Over a period of years a customer could have many cars insured, details of which are kept in the policy file. This has details about the car insured (make, model, engine size and registration number) the customer who has the policy, expiry date, price and a unique policy ID. Each time a claim is made on that policy a note is kept. This includes details of the policy number, date of claim and a payout decision.

Scenario 3 When a student joins Sidney Stringer 6 th Form, they are assigned a unique ID. Each student has a student file which contains details of their name, address and contact phone number. Students take a number of courses at the school, selecting them from the course register which lists the course code, title, qualification and teacher who runs it. Each teacher can run different courses and their details are kept listing their unique ID, name and subject specialism and pay scale.

Exercises 1)Complete the data dictionary for scenario 1 2)Using the process learnt today compile a LDM for scenario 2 and 3. Ensure you include: An identification of nouns An entity table An ERD A Data Dictionary