Material Didáctico. Bases de Datos. Otoño MC David Eduardo Pinto Avendaño
|
|
- Jeremy Thomas
- 6 years ago
- Views:
Transcription
1 BENEMÉRITA UNIVERSIDAD AUTÓNOMA DE PUEBLA FACULTAD DE CIENCIAS DE LA COMPUTACIÓN Material Didáctico Bases de Datos Otoño 2002 MC David Eduardo Pinto Avendaño
2 1 Benemérita Universidad Autónoma de Puebla Facultad de Ciencias de la Computación Basic Knowledge Development of DataBase Schemas MC. David Eduardo Pinto Avendaño 2 Agenda 1. Introduction 2. Overview of database development 3. Modeling basic entities 4. Modeling relationships 5. Adding detail to the diagram 6. Unique Identifiers 7. Resolving many to many relationships Day 1 3 Agenda 8. Modeling hierarchies, networks and roles 9. Modeling complex structures 10. Conceptual modeling review 11. Initial database design 12. Mapping exclusive relationships and entities to tables 13. Normalization Day 2
3 4 Introductions 5 Development Approach TECHNIQUES METHODS TOOLS 6 CDM Development Approach Business Requirement Definition Existing System Examination Technical Architecture Database Design and Build Module Design and Build Data Conversion Documentation Testing Training Transition Post System Support
4 7 Database Development Process ER model, entity definition Table, index, view Inmation Conceptual Data Modeling Database Design Database Build Database Business Requirements Cross-checking Cross-checking Operational System Process Function Modeling Application Design Application Build Application Function hierarchy, function definition Module (screen, report, menu, SQL) 8 Database Development Process CONCEPTUAL LOGICAL PHYSICAL Table Definitions Database ERM 9 Terminology CONCEPTUAL LOGICAL (Business view) (Systems view ) ANALYSIS ENTITY RELATIONSHIP ATTRIBUTE UNIQUE IDENTIFIER DESIGN TABLE FOREIGN KEY COLUMN PRIMARY KEY UNIQUE KEY
5 10 Business Inmation Requirements I manage thehuman Resources Department a large company. We need to keep inmation about each of our company s employees. We need to track each employee s first, last, job or position, hire date and salary. For any employees on commission, we also need to track their potential commission. Each employee is assigned a unique employee number. Our company is divided into departments. Each employee is assigned to a department, example, accounting, sales or development. We need to know the department responsible each employee and the department s location. Each department has a unique number, example, accounting is 10 and sales is30. Some of the employees are managers. We need to knoweach employee s manager and the employees that each manager manages. 11 Entity Definitions An object of interest to the business A class or category of thing A d thing A noun A thing of significance about which the business needs inmation 12 Attribute Definitions Nouns used to describe entities Specific pieces of inmation which need tobe known An entity should have attributes
6 13 Diagramming Entities (CLIENT) Soft box Singular, unique inuppercase Optional synonym Attribute s inlower case MEMBERSHIP DEPARTMENT EMPLOYEE date of birth 14 Entity Instances EMPLOYEE Head office Personnel Finance Sales DEPARTMENT 15 Identifying a Unique Instance EMPLOYEE badge number date of birth salary
7 16 Identify and Model Entities Identify anoun Is it significant? Is there inmation about it that the business needs to keep? Is it a group or an instance? Name the entity Write adescription of it Identify a few attributes Draw a soft box it 17 In Class Exercise - Solution I am the manager of a training company that provides instructor-led COURSEs in management techniques. We teach courses, each of which has a code, a, and a fee. Introduction to UNIX and C Programming aretwo of our more popular courses. Courses vary in length from one to four days. Paul Rogers and Maria Gonzales aretwo of our best teachers. We need each INSTRUCTOR s and phone number. The STUDENTs can take several courses over time, and many do this. Jamie Brown from AT&T took every course we offer! We like to have each student s and phone number. 18 In Class Exercise - Solution COURSE code fee length INSTRUCTOR phone no. STUDENT phone no
8 19 Relationship Definitions The way one entity relates to another The business rules that link together business inmation needs What one thing has to dowith another A d association between entities 20 Bi-directional Relationships DMDD COURSE SMT COURSE INSTRUCTOR COURSE 21 Diagramming Conventions A line between two entities Lower case relationship Optionality (Minimum cardinality) Mandatory - must be Optional - may be Degree (Maximum cardinality) One or more One and only one
9 22 Diagramming Conventions COPY many (crow s foot) mandatory optional one TITLE 23 Relationship Syntax Each must be one or more relationship entity 1 or or entity 2 may be one and only one Subject entity Optionality Name Degree Object entity 24 Validation - in class solution assigned to EMPLOYEE DEPARTMENT responsible Each EMPLOYEE must be assigned to one and only one DEPARTMENT Each DEPARTMENT may be responsible one or more EMPLOYEES
10 25 Relationship Types Many -to-one Many-to-Many One-to-One 26 Many -to-one Relationships CUSTOMER visited by assigned to SALES REPRESENTATIVE 27 Many-to-Many Relationships PATIENT attended by assigned to HEALTH CARE WORKER
11 28 One-to-One Relationships BICYCLE is ridden by CYCLIST the rider of Represents a snapshot in time 29 Analyzing and Modeling Relationships 1 Determine the existence ofa relationship 2 Name each direction of the relationship 3 Determine the degree of each direction of the relationship 4 Determine the optionality of each direction of the relationship 5 Read the relationship aloud to validate it 30 Attributes Badge Number - Identifies an employee Name - Qualifies an employee Payroll category (weekly or salaried) - Classifies an employee Date of birth - Quantifies an employee Employment status (active, leave, terminated) - Expresses the status of an employee
12 31 Finding Attributes Is this attribute really needed? Beware of obsolete requirements from previous systems Beware of derived data 32 Attribute Diagramming Conventions badge num first last payroll num EMPLOYEE date of birth employment status Inside the entity's soft box Singular Lowercase 33 Meaningful Components PERSON ITEM code Break down aggregate attributes PERSON last first ITEM type vendor num
13 34 Verify Single Value RENTAL transaction date total amount paid item Yes, more than one item may berented at a time. An entity is missing. RENTAL ITEM item num Can an attribute have more than one value an instance of the entity? RENTAL transaction date total amount paid 35 Attributes Which have Attributes TITLE product code title description review details REVIEW author comment date recorded Does inmation need to be stored about any of the attributes? Yes, review details. An entity is missing. TITLE product code title description 36 Finding Common or Derived Data Count Total Maximum, Minimum, Average Calculation Derived attributes are redundant and canlead to inconsistent values
14 37 Attribute Optionality Mandatory Attributes A value mustbe stored each entity instance Tagged with Optional Attributes A value may be stored each entity instance Tagged with o 38 Attribute Optionality o EMPLOYEE badge num first last title o weight 39 Attribute Details and Volumes Attribute - Engine Size Format Type Number Maximum length 4 Average length 4 Decimal place 1 Unit of measure cc Allowable values 900,1000,1500,1800,2000 Volume Initial 100%
15 40 Unique Identifier Definition Each entity instance must be able to be uniquely identified A combination of attributes or relationships that serve to identify a specific instance of an entity. 41 Simple Unique Identifier 342 CUSTOMER # customer num Single attribute Tag the UID with # Compound UID - Attributes MEMBERSHIP # num # ostart date Multiple attributes
16 43 Compound UID - Composite ACCOUNT num BANK # num What would you need to know to identify a specific instance of ACCOUNT? 44 Compound UID - Composite ACCOUNT # num Use # to indicate that the attribute is part of the entity s UID BANK # num Use a UID bar to indicate that a relationship is part of the entity s UID 45 Compound UID - Relationships RENTAL RENTAL ITEM rental period o return date # transaction num transaction date COPY # inventory num purchase cost What do you need to know to identify a specific instance of RENTAL ITEM?
17 46 Compound UID - Relationships RENTAL RENTAL ITEM rental period o return date # transaction num transaction date COPY # inventory num purchase cost Rental item requires the rental transaction num and the inventory num 47 Multi-Level Relationship UIDs TICKET seat number CUSTOMER # PERFORMANCE PLAY VENUE # date # time # title # What would you need to know to identify a specific instance of TICKET? 48 Multiple UIDs badge num payroll num first and last # (1) EMPLOYEE badge num #(2) o first #(2) o last # (3) payroll num
18 49 Identifying the Problem From this diagram, can you tell which supplier instance provides Casablanca? TITLE # prod code supplied by supplier of SUPPLIER # supplier no In which entity would you store the attribute purchase price? 50 Intersection Entities availableas TITLE TITLE # prod code CATALOG ITEM purchase price supplier of SUPPLIER # supplier no 51 Unique Identifiers available as TITLE # TITLE prod code CATALOG ITEM purchase price supplier of SUPPLIER # supplier no OR available as TITLE # TITLE prod code CATALOG ITEM # item num purchase price supplier of SUPPLIER # supplier no
19 52 Modeling Recursive Relationships...he s my manager...and mine... but I m HIS manager! manager of EMPLOYEE managed by 53 Modeling Hierarchical Data Company Division Department Team TEAM # DEPARTMENT # DIVISION # # 54 Hierarchies as Recursive Relationships TEAM # DEPARTMENT # DIVISION # # made up of ORGANIZATION ELEMENT # type within
20 55 Network Structures a part of COMPONENT # identifier made upof 56 Network Structures ASSEMBLY RULE o quantity made up of COMPONENT # identifier a part of 57 Exclusive Entities MOVIE category duration O audio TITLE # product code title description GAME category medium minimum memory
21 58 Exclusive Entities COPY inventory num o condition MEMBERSHIP # num start date expiry date o termination acquired from held by the source of the holder of # id telephone num o supplier num o sales contact 59 Splitting Entities COPY inventory num o condition MEMBERSHIP # num start date expiry date o termination acquired from held by the source of the holder of # id telephone num SUPPLIER supplier num sales contact OTHER 60 Nesting Entities CAR driven by authorized to drive SALES REP TELESALES EMPLOYEE CLERICAL HUMAN RESOURCES
22 61 Recursive Subtypes ORGANIZATION ELEMENT (ORGANIZATION) DEPARTMENT (SUBDIVISION) of within made up of the classification ORGANIZATION ELEMENT TYPE 62 Modeling Exclusive Relationships MEMBERSHIP num startdate expiry date o termination held by o o held by the holder of the holder of postal area 0 contact CUSTOMER num first last 63 Modeling Exclusivity We offer membership to individual customers and companies CUSTOMER MEMBERSHIP MEMBER CUSTOMER MEMBERSHIP MEMBERSHIP INDIVIDUAL ORGANIZATION CUSTOMER
23 64 Modeling Data over Time What if you need to hold an apartment s rental history? APARTMENT # code address rented by the renter of PERSON # id last first 65 Modeling Data over Time RENTAL HISTORY # from date o to date APARTMENT # code address rented by the renter of PERSON # id last first 66 Modeling Data over Time MEMBER # id last first employed by the employer of # code
24 67 Modeling Data over Time employed by MEMBER # id last first EMPLOYMENT HISTORY ENTRY # from date o to date the employer of # code 68 Fan Traps PERSON employed by # id last first the employer of the holder of # code heldby the POSITION # job title o job description employer of included in 69 Fan Traps PERSON employed as # id last first employed at HISTORY startdate o end date the employer POSITION HISTORY start date o end date # code held by the employer POSITION ORGANIZATION HISTORY start date o end date # job title o job description the subject of
25 70 Transferable Relationships PERSON # id last first works in employs DEPARTMENT # code Head office Personnel Finance Sales 71 Non-Transferable Relationships COPY inventory num o condition acquired from the source of # id telephone num SUPPLIER supplier num sales contact OTHER 72 Design of Database schema CONCEPTUAL LOGICAL (Business view ) (Systems view ) ANALYSIS ENTITY RELATIONSHIP ATTRIBUTE UNIQUE IDENTIFIER DESIGN TABLE FOREIGN KEY COLUMN PRIMARY KEY UNIQUE KEY
26 73 Creating the Outline Design 1 Map simpleentities to tables 2 Map attributes to columns, and document sample data 3 Map unique identifiers to primary keys 4 Map relationships to eign keys 74 Mapping Simple Entities EMPLOYEE #(1) (2) # (3) o (3) # badge num payroll num first last o position Column Key type Nulls Sample data Table Name: BADGE_ NUM PAYROLL_ NUM EMPLOYEES FIRST_ NAME LAST_ NAME PK UK1 UK2 UK2 NN NN NN POSITION 75 Mapping Relationships - M:1 EMPLOYEE #(1) (2) # (3) o (3) # DEPARTMENT # badge num payroll num first last o position num Column Key type Nulls Sample data Table Name: BADGE_ NUM PAYROLL_ NUM EMPLOYEES FIRST_ NAME LAST_ NAME PK UK1 UK2 UK2 NN NN NN POSITION DEP_ NUM FK NN
27 76 # BICYCLE # id type CYCLIST num Mapping Relationships - Mandatory 1:1 Column Key type Nulls Sample data ID TYPE CYCLIST _ NUM PK FK, UK NN NN NN Table Name: BICYCLES 77 Mapping Relationships - Optional 1:1 # BICYCLE # id type CYCLIST num OR Column Key type Nulls Sample data Column Key type Nulls Sample data ID PK NN NUMBER PK NN TYPE NN NAME NN CYCLIST _NUM FK, UK BICYCLE _ID FK, UK Table Name : BICYCLES Table Name: CYCLISTS 78 the manager of EMPLOYEE (1) # (2) # (3) # o (3) # badge num payroll num first last o position Mapping Relationships - Recursive 1:M mana ged by Column Key type Nulls Sample data Table Name: EMPLOYEES BADGE_ NUM PAYROLL_ NUM FIRST_ NAME LAST_ NAME PK UK1 UK2 UK2 NN NN NN POSITION EMP_ MAN_ NUM FK NN
28 79 # id Mapping Relationships - Recursive 1:1 the spouse of PERSON_ Column ID NAME SPOUSE PERSON _ID Table Name: PERSONS married to Key type PK FK,UK Nulls NN NN Sample 2345 ANN 6785 data 6785 RAY Mapping Arcs OFFICE SUITE # building id # suite no o o o # # # INDIVIDUAL id PARTNERSHIP code num 81 Mapping Subtypes TITLE # product code MOVIE category GAME medium Single table design Multiple table design Arc implementation
29 82 Explicit Arc Design Table Name: OFFICE_SUITES Column Key type Nulls NN NN Sample data OFFICE SUITE # buildingid # suite no BUILDING SUITE COMP_ IND_ID PART_CODE _ID _NO NUM PK PK FK1 FK2 FK A o o o # INDIVIDUAL id # PARTNERSHIP code # num Generic Arc Design Table Name: OFFICE_SUITES Column BUILDING _ID SUITE _NO RENTER_ID Key type PK PK FK NN NN NN Nulls Sample data OFFICESUITE # building id # suite no A o o o INDIVIDUAL # id # PARTNERSHIP code # number RENTER_TYPE NN I P I C! 84 Single Table Design MOVIE TITLE # product code GAME category medium Column PRODUCT _CODE Key type PK Nulls NN Sample data TYPE NN MOVIE_ CATEGORY M 453 HORR 516 G CD 677 M DRAMA Table Name : GAME_ MEDIUM 444 G CASS TITLES
30 85 Multiple Table Design Table Name: MOVIES Column PRODUCT _CODE Key type Nulls Sample data PK NN MOVIE TITLE # product code GAME category medium MOVIE_ CATEGORY NN 453 HORR 677 DRAMA Column PRODUCT _CODE Key type Nulls Sample data NN PK Table Name: GAMES GAME_ MEDIUM NN 516 CD 444 CASS 86 Specify Referential Integrity DEPARTMENT DEPT 40 DEPT 40 FRED JOE BILL FRED JOE BILL EMPLOYEE RULE RESTRICT CASCADE 87 Specify Referential Integrity DEPARTMENT DEPT 40 DEPT 40 DEPT FRED JOE BILL FRED JOE BILL EMPLOYEE RULE NULLIFY DEFAULT
31 88 Outline Index Design ADAMS DATA BLOCKS ALLEN SMITH BLAKE BLAKE ALLEN JAMES WARD CLARK FORD JONES JAMES MARTIN KING JONES BLAKE CLARK SCOTT KING MILLER MARTIN KING TURNER MILLER SCOTT TURNER ADAMS SMITH INDEX BLOCKS JAMES FORD TURNER MILLER WARD 89 Establish Views CUS_ NO CUS_ LNME CUS_ FNME ORD -NUM ORD -DTE ORD_ CUS_NO 90 Consider Derived Data Order 1234 item item item item item total 39.96
32 91 Artificial Keys CUSTOMER # o first # last # address CUSTOMER # code first last address 92 Planning Physical Storage Estimate the amount of disk space needed Decide on placement Definestorage allocation 93 ER Diagrams and Normalization ER Diagramming Top down approach Fast Examine requirements Business knowledge Normalization Bottom up approach Very slow Examine existing data Mathematically based Top down create - bottom up checking Accuracy Greater understanding of the data
33 94 Rules of Normalization Collect and list the raw data 0NF Remove repeating groups 1NF Remove part key dependencies 2NF Remove inter -data dependencies 3NF Remove inter -key dependencies BC NF Test and identify transitive dependencies Optimize Retest Draw and use the model 95 Collect the Raw Data customer John Doe order John Doe order product A453 desc. Bowls quantity 6 address anytown any place date 03/04/96 0NF # customer order num product num product description quantity ordered customer address dateordered 0NF 1NF 2NF 3NF BC NF Test Optimize Retest 96 Remove Repeating Groups 0NF # customer order num product num product description quantity ordered customer address date ordered 1NF # customer customer address # customer FK # order num product num product description quantity ordered dateordered 0NF 1NF 2NF 3NF BC NF Test Optimize Retest
34 97 Remove Part Key Dependencies 1NF # customer customer address # customer FK # order num product num product description quantity ordered dateordered NO CHANGE 2NF # customer customer address # customer # order num FK FK # order num product num product description quantity ordered date ordered 0NF 1NF 2NF 3NF BC NF Test Optimize Retest 98 Remove Inter-Data Dependencies 2NF # customer customer address # customer # order num FK FK # order num product num product description quantity ordered date ordered NO CHANGE NO CHANGE 3NF # customer customer address # customer # order num FK FK # order num product num FK quantity ordered date ordered # product num product description 0NF 1NF 2NF 3NF BC NF Test Optimize Retest 99 Remove Inter-Key Dependencies 3NF # customer customer address # customer # order num FK FK # order num product num FK quantity ordered NO CHANGE date ordered # product num product description NO CHANGE NO CHANGE BCNF # customer customer address # order num customer FK FK # order num product num quantity ordered date ordered # product num product description 0NF 1NF 2NF 3NF BC NF Test Optimize Retest
35 100 Optimize BCNF # customer num customer BCNF # customer customer address # order num customer FK # order num product num FK quantity ordered date ordered Transitive OPTIMIZED DATA GROUPS # customer num customer customer address # order num product num FK customer num FK quantity ordered date ordered 0NF 1NF 2NF 3NF BC NF Test Optimize Retest 101 Entities and Normalization # # EMPLOYEE badge num payroll num first last payroll category date of birth employmentstatus previous departments Does any attribute have more than one value? Does any attribute need just part of the UID? Is any attribute dependent on another attribute and not the UID? Does any part of theuid depend on another part of the UID? 102 Summary CONCEPTUAL LOGICAL PHYSICAL Table Definitions Database ERM
King Fahd University of Petroleum and Minerals
1 King Fahd University of Petroleum and Minerals Information and Computer Science Department ICS 334: Database Systems Semester 041 Major Exam 1 18% ID: Name: Section: Grades Section Max Scored A 5 B 25
More informationDetailed Data Modelling: Attribute Collection and Normalisation of Data
Detailed Data Modelling IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling: Attribute Collection and Normalisation of Data The objective of detailed data modelling is to develop a detailed
More information1.264 Lecture 6. Data modeling
1.264 Lecture 6 Data modeling 1. Data models Data model is representation of Things (or entities or objects) of importance to a business How the things relate to each other It is built and modified until
More informationDatabase Design. 8-1 Modeling Historical Data. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Design 8-1 Objectives This lesson covers the following objectives: Identify the need to track data that changes over time Construct ERD models that incorporate elements of data over time Identify
More informationLogical E/R Modeling: the Definition of Truth for Data
Logical E/R Modeling: the Definition of Truth for Data Jeff Jacobs Jeffrey Jacobs & Associates Belmont, CA phone: 650.571.7092 email: jeff@jeffreyjacobs.com http://www.jeffreyjacobs.com Survey Do you plan
More informationDetailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes
IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling The objective of detailed data modelling is to develop a detailed data structure that: Detailed Data Modelling: Attribute Collection
More information2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos
XVI. The Entity-Relationship Model The Entity Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationCOSC 304 Introduction to Database Systems. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More informationIS 263 Database Concepts
IS 263 Database Concepts Lecture 1: Database Design Instructor: Henry Kalisti 1 Department of Computer Science and Engineering The Entity-Relationship Model? 2 Introduction to Data Modeling Semantic data
More informationConceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More informationIMS1002/CSE1205 Lectures 1
IMS1002/CSE1205 Systems Analysis and Design Lecture 2 & 3 Introduction to Data Modelling Entity Relationship Modelling Data Modelling Focus on the information aspects of the organisation In a database
More informationXV. The Entity-Relationship Model
XV. The Entity-Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R Diagrams and Business Rules Acknowledgment:
More informationDatabase Systems. A Practical Approach to Design, Implementation, and Management. Database Systems. Thomas Connolly Carolyn Begg
Database Systems A Practical Approach to Design, Implementation, and Management For these Global Editions, the editorial team at Pearson has collaborated with educators across the world to address a wide
More informationData Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell
Data Analysis 1 Chapter 2.1 V3.1 Copyright @ Napier University Dr Gordon Russell Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is
More informationEntity Relationship Modelling
Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes, and relationships in a system The degree of
More informationMIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung
MIS2502: Data Analytics Relational Data Modeling - 1 JaeHwuen Jung jaejung@temple.edu http://community.mis.temple.edu/jaejung Where we are Now we re here Data entry Transactional Database Data extraction
More informationCS2 Current Technologies Lecture 2: SQL Programming Basics
T E H U N I V E R S I T Y O H F R G E D I N B U CS2 Current Technologies Lecture 2: SQL Programming Basics Dr Chris Walton (cdw@dcs.ed.ac.uk) 4 February 2002 The SQL Language 1 Structured Query Language
More informationPart III. Data Modelling. Marc H. Scholl (DBIS, Uni KN) Information Management Winter 2007/08 1
Part III Data Modelling Marc H. Scholl (DBIS, Uni KN) Information Management Winter 2007/08 1 Outline of this part (I) 1 Introduction to the Relational Model and SQL Relational Tables Simple Constraints
More informationLecture 5 STRUCTURED ANALYSIS. PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall Bühnová, Sochor, Ráček
Lecture 5 STRUCTURED ANALYSIS PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall 2015 1 Outline ² Yourdon Modern Structured Analysis (YMSA) Context diagram (CD) Data flow diagram
More informationDatabase Design Process
Database Design Process Real World Functional Requirements Requirements Analysis Database Requirements Functional Analysis Access Specifications Application Pgm Design E-R Modeling Choice of a DBMS Data
More informationChapter 2 ENTITY RELATIONSHIP MODEL
INTRODUCTION Chapter 2 ENTITY RELATIONSHIP MODEL Data model is used to describe data, data relationship and constraints on data. A number of different data models have proposed. They can broadly be classified
More informationDatabase Design. 9-3 Relationship Mapping. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Design 9-3 Objectives This lesson covers the following objectives: Apply the rule of relationship mapping to correctly transform 1:M and barred relationships Apply the rule of relationship mapping
More informationCS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010
CS403- Database Management Systems Solved MCQS From Midterm Papers April 29,2012 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 CS403- Database Management Systems MIDTERM EXAMINATION - Spring
More informationDiscussion Focus. Figure 1
Discussion Focus Efficient data management typically requires the use of computer database. A database is a shared, integrated computer structure that stores a collection of: End-user data that is the
More informationConceptual Data Models for Database Design
Conceptual Data Models for Database Design Entity Relationship (ER) Model The most popular high-level conceptual data model is the ER model. It is frequently used for the conceptual design of database
More informationRelationship Mapping. Copyright 2011, Oracle. All rights reserved.
Copyright 2011, Oracle. All rights reserved. What Will I Learn? Objectives In this lesson, you will learn to: Apply the rule of relationship mapping to correctly transform 1:M and barred relationships
More informationRelational Database Model. III. Introduction to the Relational Database Model. Relational Database Model. Relational Terminology.
III. Introduction to the Relational Database Model Relational Database Model In 1970, E. F. Codd published A Relational Model of Data for Large Shared Data Banks in CACM. In the early 1980s, commercially
More informationRelationship Mapping. Copyright 2008, Oracle. All rights reserved.
What Will I Learn? In this lesson, you will learn to: Apply the rule of relationship mapping to correctly transform 1:M and barred relationships Apply the rule of relationship mapping to correctly transform
More informationChapter 2 Conceptual Modeling. Objectives
Chapter 2 Conceptual Modeling Basic Entity Relationship Diagrams 1 Objectives Definition of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes
More informationCS2 Current Technologies Note 1 CS2Bh
CS2 Current Technologies Note 1 Relational Database Systems Introduction When we wish to extract information from a database, we communicate with the Database Management System (DBMS) using a query language
More informationDatabase Design & Programming with SQL: Part 1 Learning Objectives
Database Design & Programming with SQL: Part 1 Learning Objectives This is the first portion of the Database Design and Programming with SQL course. In this portion, students learn to analyze complex business
More informationLogical Database Design. ICT285 Databases: Topic 06
Logical Database Design ICT285 Databases: Topic 06 1. What is Logical Database Design? Why bother? Bad logical database design results in bad physical database design, and generally results in poor database
More informationnormalization are being violated o Apply the rule of Third Normal Form to resolve a violation in the model
Database Design Section1 - Introduction 1-1 Introduction to the Oracle Academy o Give examples of jobs, salaries, and opportunities that are possible by participating in the Academy. o Explain how your
More informationDatabase Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015
Lecture 5 Database Systems Instructor: M.Imran Khalil Imrankhalil3@gmail.com Resource:Imrankhalil3.wordpress.com University of Sargodha Canal Campus Lahore Overview - important points Some introductory
More informationL12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018
L12: ER modeling 5 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/22/2018 200 Announcements! Keep bringing your name plates J Exam 1 discussion: questions on grading: Piazza,
More informationThe Relational Model and Normalization
The Relational Model and Normalization 1. Introduction 2 2. Relational Model Terminology 3 4. Normal Forms 11 5. Multi-valued Dependency 21 6. The Fifth Normal Form 22 The Relational Model and Normalization
More informationCS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam
CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam Question No: 1 ( Marks: 1 ) - Please choose one Which of the following is NOT a feature of Context DFD?
More informationRepresent entities and relations with diagrams
LEARNING OBJECTIVES Define data modeling terms Describe E-R Model Identify entities and relations Represent entities and relations with diagrams WHAT IS DATA MODELING? A data model is a collection of concepts
More informationIS 263 Database Concepts
IS 263 Database Concepts Lecture 4: Normalization Instructor: Henry Kalisti 1 Department of Computer Science and Engineering Limitations of E- R Designs Provides a set of guidelines, does not result in
More informationOfficial Statistics - Relational Database Management Systems. Official Statistics - Relational Database Management Systems
Chapter 1 Database fundamentals 1.1. What is a database? A database is a stored collection of data designed for efficient information retrieval, efficient data maintenance and centralised control of an
More informationE-R Model. Hi! Here in this lecture we are going to discuss about the E-R Model.
E-R Model Hi! Here in this lecture we are going to discuss about the E-R Model. What is Entity-Relationship Model? The entity-relationship model is useful because, as we will soon see, it facilitates communication
More informationKing Fahd University of Petroleum and Minerals
Exam 1 March 16, 2008 Page 1 of 7 King Fahd University of Petroleum and Minerals Department of Information and Computer Science ICS 324: Database Systems Spring 2007-2008 Date: 16-March-2008 Major Exam
More informationCS2 Current Technologies Lecture 3: SQL - Joins and Subqueries
T E H U N I V E R S I T Y O H F R G E D I N B U CS2 Current Technologies Lecture 3: SQL - Joins and Subqueries Chris Walton (cdw@dcs.ed.ac.uk) 11 February 2002 Multiple Tables 1 Redundancy requires excess
More informationDATABASE DEVELOPMENT (H4)
IMIS HIGHER DIPLOMA QUALIFICATIONS DATABASE DEVELOPMENT (H4) Friday 3 rd June 2016 10:00hrs 13:00hrs DURATION: 3 HOURS Candidates should answer ALL the questions in Part A and THREE of the five questions
More informationER modeling. Lecture 4
ER modeling Lecture 4 1 Copyright 2007 STI - INNSBRUCK Today s lecture ER modeling Slides based on Introduction to Entity-relationship modeling at http://www.inf.unibz.it/~franconi/teaching/2000/ct481/er-modelling/
More informationData Management Lecture Outline 2 Part 2. Instructor: Trevor Nadeau
Data Management Lecture Outline 2 Part 2 Instructor: Trevor Nadeau Data Entities, Attributes, and Items Entity: Things we store information about. (i.e. persons, places, objects, events, etc.) Have relationships
More informationDatabase Design and Administration for OnBase WorkView Solutions. Mike Martel Senior Project Manager
Database Design and Administration for OnBase WorkView Solutions Mike Martel Senior Project Manager 1. Solution Design vs. Database Design Agenda 2. Data Modeling/Design Concepts 3. ERD Diagramming Labs
More informationChapter 1 SQL and Data
Chapter 1 SQL and Data What is SQL? Structured Query Language An industry-standard language used to access & manipulate data stored in a relational database E. F. Codd, 1970 s IBM 2 What is Oracle? A relational
More informationRelated download: Instructor Manual for Modern Database Management 12th Edition by Hoffer Venkataraman Topi (Case studies included)
Modern Database Management Test Bank, 12e (Hoffer) Completed download: https://testbankarea.com/download/modern-database-management-12thedition-test-bank-hoffer-venkataraman-topi/ Related download: Instructor
More informationReview -Chapter 4. Review -Chapter 5
Review -Chapter 4 Entity relationship (ER) model Steps for building a formal ERD Uses ER diagrams to represent conceptual database as viewed by the end user Three main components Entities Relationships
More informationDepartment of Computer Science and Information Systems, College of Business and Technology, Morehead State University
1 Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University Lecture 3 Part A CIS 311 Introduction to Management Information Systems (Spring 2017)
More informationData about data is database Select correct option: True False Partially True None of the Above
Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another
More information... Mapping the ER Model
... Mapping the ER Model ... Lesson 7: Mapping the ER Model Introduction Lesson Aim This lesson describes some principles of relational databases and presents the various techniques that you can use to
More informationDatabase Design with Entity Relationship Model
Database Design with Entity Relationship Model Vijay Kumar SICE, Computer Networking University of Missouri-Kansas City Kansas City, MO kumarv@umkc.edu Database Design Process Database design process integrates
More informationER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1
ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1 ER Diagram ID-Dependent and Weak Entities Ray Lockwood Points: An ID-dependent entity is an entity whose identifier (key) includes the identifier
More informationThe Entity/Relationship (E/R) Model & DB Design. csc343, Introduction to Databases Renée J. Miller and Fatemeh Nargesian and Sina Meraji Winter 2018
The Entity/Relationship (E/R) Model & DB Design csc343, Introduction to Databases Renée J. Miller and Fatemeh Nargesian and Sina Meraji Winter 2018 Overview Using the Entity/Relationship (ER) Model to
More informationAttributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot
Entity-Relationship odel (ER) IV. Entity Relationship odeling Basis of an Entity-Relationship Diagram (ERD) A design technique Diagrams entities sets (with attributes) and the relationship between the
More informationDatabase Systems ER Model. A.R. Hurson 323 CS Building
ER Model A.R. Hurson 323 CS Building Database Design Data model is a group of concepts that helps to specify the structure of a database and a set of associated operations allowing data retrieval and data
More informationB.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline
B.C.A 2017-18 DATA BASE MANAGEMENT SYSTEM Course Outline MODULE SPECIFICATION SHEET This course introduces the fundamental concepts necessary for designing, using and implementing database systems and
More informationNorthern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester
1. List four significant differences between a file-processing system and a DBMS. 2. Explain the difference between physical and logical data independence. 3. What are five main functions of a database
More informationConceptual and Logical Design
Conceptual and Logical Design Lecture 3 (Part 1) Akhtar Ali Building Conceptual Data Model To build a conceptual data model of the data requirements of the enterprise. Model comprises entity types, relationship
More informationGUJARAT TECHNOLOGICAL UNIVERSITY
Seat No.: Enrolment No. GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER III (NEW) - EXAMINATION SUMMER 2017 Subject Code: 21303 Date: 02/06/2017 Subject Name: Database Management Systems Time: 10:30 AM
More informationCOMP Instructor: Dimitris Papadias WWW page:
COMP 5311 Instructor: Dimitris Papadias WWW page: http://www.cse.ust.hk/~dimitris/5311/5311.html Textbook Database System Concepts, A. Silberschatz, H. Korth, and S. Sudarshan. Reference Database Management
More informationDatabase Design. 6-1 Artificial, Composite, and Secondary UIDs. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Design 6-1 Objectives This lesson covers the following objectives: Define the different types of unique identifiers (UIDs) Define a candidate UID and explain why an entity can sometimes have more
More informationEntity-Relationship Model &
Entity-Relationship Model & IST 210 Diagram Todd S. Bacastow IST 210: Organization of data 2/1/2004 1 Design Principles Setting client has (possibly vague) idea of what he/she wants. YOUR task must design
More informationRelational Model (cont d) & Entity Relational Model. Lecture 2
Relational Model (cont d) & Entity Relational Model Lecture 2 Relational Database Operators Relational algebra Defines theoretical way of manipulating table contents using relational operators: SELECT
More informationER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the
ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems.
More informationDatabase Systems Relational Model. A.R. Hurson 323 CS Building
Relational Model A.R. Hurson 323 CS Building Relational data model Database is represented by a set of tables (relations), in which a row (tuple) represents an entity (object, record) and a column corresponds
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ 1 In this chapter, you will learn:
More informationDatabase Foundations. 2-3 Conceptual Data Modeling. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Foundations 2-3 Roadmap You are here What Is a Table? Relational Databases Conceptual Data Modeling Data Modeling Terminology Unique Identifiers and Primary Keys Relationships and Foreign Keys
More informationClass Diagrams in Analysis
3.2 Subject/Topic/Focus: Introduction to Classes Summary: Conceptual Modeling Notation: Classes Associations: Multiplicity, Roles, Aggregation, Composition Generalization Objects Analysis Process Literature:
More informationDatabase Design Process. Requirements Collection & Analysis
Database Design Process Real World Functional Requirements Requirements Analysis Database Requirements Functional Analysis Access Specifications Application Pgm Design E-R Modeling Choice of a DBMS Data
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling Objectives In this chapter, students will learn: The main characteristics of entity relationship
More informationMIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38
Student Info StudentID: Center: ExamDate: MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: 1356458 Time: 60 min Marks: 38 BC080402322 OPKST 5/28/2010 12:00:00 AM
More information6 February 2014 CSE-3421M Test #1 w/ answers p. 1 of 14. CSE-3421M Test #1. Design
6 February 2014 CSE-3421M Test #1 w/ answers p. 1 of 14 CSE-3421M Test #1 Design Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: Winter 2014 Answer
More information22/01/2018. Data Management. Data Entities, Attributes, and Items. Data Entities, Attributes, and Items. ACS-1803 Introduction to Information Systems
ACS-1803 Introduction to Information Systems Instructor: Kerry Augustine Data Management Lecture Outline 2, Part 2 ACS-1803 Introduction to Information Systems Data Entities, Attributes, and Items Entity:
More informationACS-1803 Introduction to Information Systems. Instructor: Kerry Augustine. Data Management. Lecture Outline 2, Part 2
ACS-1803 Introduction to Information Systems Instructor: Kerry Augustine Data Management Lecture Outline 2, Part 2 ACS-1803 Introduction to Information Systems Data Entities, Attributes, and Items Entity:
More informationLECTURE 3: ENTITY-RELATIONSHIP MODELING
LECTURE 3: ENTITY-RELATIONSHIP MODELING Ref. Chapter11 + Appendix F from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 : D a t
More informationNon-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52
Objectives Computer Science 202 Database Systems: Entity Relation Modelling To learn what a conceptual model is and what its purpose is. To learn the difference between internal models and external models.
More informationInformation Technology Audit & Cyber Security
Information Technology Audit & Cyber Security Structured Data Requirements Systems & Infrastructure Lifecycle Management with E-R LEARNING OBJECTIVES Explain the role of conceptual data modeling in the
More informationDatabase Design. 2-3 Entity Relationship Modeling and ERDs. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Design 2-3 Objectives This lesson covers the following objectives: Define the meaning of implementation-free as it relates to data models and database design implementation List the four goals
More informationTechno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601
Techno India Batanagar Computer Science and Engineering Model Questions Subject Name: Database Management System Subject Code: CS 601 Multiple Choice Type Questions 1. Data structure or the data stored
More informationReal-World Performance Training SQL Introduction
Real-World Performance Training SQL Introduction Real-World Performance Team Basics SQL Structured Query Language Declarative You express what you want to do, not how to do it Despite the name, provides
More informationMIS2502: Data Analytics Relational Data Modeling. Jing Gong
MIS2502: Data Analytics Relational Data Modeling Jing Gong gong@temple.edu http://community.mis.temple.edu/gong Where we are Now we re here Data entry Transactional Database Data extraction Analytical
More informationDatabase Management System. * First install Mysql Database or Wamp Server which contains Mysql Databse.
Database Management System * First install Mysql Database or Wamp Server which contains Mysql Databse. * Installation steps are provided in pdf named Installation Steps of MySQL.pdf or WAMP Server.pdf
More informationEntity Relationship Modelling
Entity Relationship Modelling P.J. M c.brien Imperial College London P.J. M c.brien (Imperial College London) Entity Relationship Modelling 1 / 49 Introduction Designing a Relational Database Schema How
More informationChapter. Relational Database Concepts COPYRIGHTED MATERIAL
Chapter Relational Database Concepts 1 COPYRIGHTED MATERIAL Every organization has data that needs to be collected, managed, and analyzed. A relational database fulfills these needs. Along with the powerful
More informationVendor: CIW. Exam Code: 1D Exam Name: CIW v5 Database Design Specialist. Version: Demo
Vendor: CIW Exam Code: 1D0-541 Exam Name: CIW v5 Database Design Specialist Version: Demo QUESTION: 1 With regard to databases, what is normalization? A. The process of reducing the cardinality of a relation
More informationEntity-Relationship Model. From Chapter 5, Kroenke book
Entity-Relationship Model From Chapter 5, Kroenke book Database Design Process Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Problem:
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationUsing High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
Chapter 7: Data Modeling Using the Entity- Relationship (ER) Model Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
More informationIn This Lecture. The Relational Model. The Relational Model. Relational Data Structure. Unnamed and named tuples. New thing:scheme (and attributes)
Database Systems Lecture 3 Natasha Alechina In This Lecture Relational data integrity For more information Connolly and Begg chapter 3 E.F. Codd s paper `A Relational Model of Data for Large Shared Data
More informationChapter 4. In this chapter, you will learn:
Chapter Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The main characteristics of entity
More informationNormalization. Murali Mani. What and Why Normalization? To remove potential redundancy in design
1 Normalization What and Why Normalization? To remove potential redundancy in design Redundancy causes several anomalies: insert, delete and update Normalization uses concept of dependencies Functional
More informationQM Chapter 1 Database Fundamentals Version 10 th Ed. Prepared by Dr Kamel Rouibah / Dept QM & IS
QM 433 - Chapter 1 Database Fundamentals Version 10 th Ed Prepared by Dr Kamel Rouibah / Dept QM & IS www.cba.edu.kw/krouibah Dr K. Rouibah / dept QM & IS Chapter 1 (433) Database fundamentals 1 Objectives
More informationOracle Data Modeling and Relational Database Design
Oracle University Contact Us: +632 976 8896, 1800 16516277 Oracle Data Modeling and Relational Database Design Duration: 4 Days What you will learn This Oracle Data Modeling and Relational Database Design
More informationCMP-3440 Database Systems
CMP-3440 Database Systems Database Architecture Lecture 02 zain 1 Database Design Process Application 1 Conceptual requirements Application 1 External Model Application 2 Application 3 Application 4 External
More informationConsistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one
Data Management We start our studies of Computer Science with the problem of data storage and organization. Nowadays, we are inundated by data from all over. To name a few data sources in our lives, we
More informationCMP-3440 Database Systems
CMP-3440 Database Systems Logical Design Lecture 03 zain 1 Database Design Process Application 1 Conceptual requirements Application 1 External Model Application 2 Application 3 Application 4 External
More information