Relational Database for Forest Inventory Data structuring
|
|
- Sylvia Hart
- 7 years ago
- Views:
Transcription
1 ENFI Relational Database for Forest Inventory Data structuring Dr. Fouad MOUNIR National Forest School of Engineers Salé Morocco 1
2 Objectives Understand definition of modern relational database Understand and be able to apply a practical method for designing databases Recognize and avoid common pitfalls of database design
3 Phases of Database Design Data Requirements Specification of requirements and results Conceptual Design Conceptual Schema Logical Design Logical Schema Physical Design Physical Schema Conceptual design begins with the collection of requirements and results needed from the database (ER Diag.) Logical schema is a description of the structure of the database (Relational, Network, etc.) Physical schema is a description of the implementation (programs, tables, dictionaries, catalogs 3
4 Models A data model is a collection of objects that can be used to represent a set of data and operations to manipulate the data Conceptual models are tools for representing reality at a very high-level of abstraction Logical models are data descriptions that can be processed by computers 4
5 What s a database? A collection of logically-related information stored in a consistent fashion The storage format typically appears to users as some kind of tabular list (table, spreadsheet)
6 What Does a Database Do? Stores information in a highly organized manner Manipulates information in various ways, some of which are not available in other applications or are easier to accomplish with a database Models some real world process or activity through electronic means Often called modeling a business process Often replicates the process only in appearance or end result
7 Databases and the Systems which manage them Modern electronic databases are created and managed through means of RDBMS: Relational DataBase Management Systems An individual data storage structure created with an RDBMS is typically called a database A database and its attendant views, reports, and procedures is called an application
8 Database Applications Database (the actual DB with its attendant storage structure) SQL Engine - interprets between the database and the interface/application Interface or application the part the user gets to see and use
9 Relational Database Management Systems Mid-level Microsoft Access, Lotus Approach, Borland s Paradox More or less total control of design allows custom builds High-end Oracle, Microsoft SQL Server, Sybase, IBM DB2 Professional level DBs: Banks, e-commerce, secure Amazon.com, Ebay.com, Yahoo.com
10 Conceptual design : Entity/Relationship model
11 Problems with Bad Design Early computers were slow and had limited storage capacity Redundant or repeating data slowed operations and took up too much precious storage space Poor design increased chance of data errors, lost or orphaned information
12 Benefits of Good Design Computers today are faster and possess much larger storage devices Rigid structure of modern relational databases helped codify problems and solutions Design problems are still possible, because the DBMS software won t protect you from poor practices Good design still increases efficiency of data processes, reduces waste of storage, and helps eliminate data entry errors
13 Modification Anomalies Customers_Orders_Inventory Customer OrderNum ItemNum Item General Tool Pentium Computer General Toll HP Printer General Tool Co monitor Totally Toys Pentium computer TOTALLY TOYS Hewlett-Packard Printer XYZ Inc Dot Matrix Printer A search for General Tool Co. would miss General Tool and General Toll. A case-sensitive search for Totally Toys would miss TOTALLY TOYS
14 Insertion Anomalies Customers_Orders_Inventory Customer OrderNum ItemNum Item General Tool Pentium Computer General Toll HP Printer General Tool Co monitor Totally Toys Pentium computer TOTALLY TOYS Hewlett-Packard Printer XYZ Inc Dot Matrix Printer How would you enter a new item into your inventory if no one had ordered it yet?
15 Deletion Anomalies Customers_Orders_Inventory Customer OrderNum ItemNum Item General Tool Pentium Computer General Toll HP Printer General Tool Co monitor Totally Toys Pentium computer TOTALLY TOYS Hewlett-Packard Printer XYZ Inc Dot Matrix Printer If you wanted to stop selling dot matrix printer and remove it from your inventory, you would have to delete the order and customer info for XYZ Inc.
16 The Fix Order_Items OrderNum ItemNum Customers CustomerNum Customer 7822 XYZ Inc Totally Toys 9123 General Tool Co. Orders CustomerNum OrderNum Products ItemNum Item 0446 Dot Matrix Printer 2246 Pentium Computer 3145 Hewlett-Packard printer monitor
17 Database Modeling Refers to various, more-or-less formal methods for designing a database Some provide precision steps and tools Ex.: Entity-Relationship (E-R) Modeling Widely used, especially by high-end database designers who can t afford to miss things Fairly complex process Extremely precise
18 Entity/Relationship model It is mainly based on three fundamental concepts. Entity type Attribute Relationship Be sure to Limit the Scope of the database.
19 Purpose of E/R Model The E/R model allows us to sketch the design of a database informally. Designs are pictures called entityrelationship diagrams. Fairly mechanical ways to convert E/R diagrams to real implementations like relational databases exist. 19
20 Entity Type Entity = thing or object. Entity type = collection of similar entities. Similar to a class in object-oriented languages. Attribute = property of an entity type. Generally, all entities in a set have the same properties. Attributes are simple values, e.g. integers or character strings. 20
21 Attribut Attribute = property of an entity type. Generally, all entities in a set have the same properties. Attributes are simple values, e.g. integers or character strings. 21
22 Types of Attributes Simple Each entity has a single atomic value for the attribute. For example, forest_name. Composite The attribute may be composed of several components. For example, Address (Apt#, House#, Street, City, State, ZipCode, Country) or Name (FirstName, MiddleName, LastName). Composition may form a hierarchy where some components are themselves composite. Multi-valued An entity may have multiple values for that attribute. For example, authors of a book. 22
23 Example Forests Name : String Nbr: Numeric Entity Forest Forest has two attributes, name and nbr (number). Each Forest entity has values for these two attributes, e.g. (Maamora, 15) 23
24 E/R Diagrams In an entity-relationship diagram, each entity type is represented by a rectangle. Each attribute of an entity type is a string representing the name if the attribute. It is located in the second part of the rectangle representing the entity type. 24
25 Identify the Key Fields Primary Key(s) Can never be Null; must hold unique values Automatically indexed in most RDBMSs Values rarely (if ever) change Try to include as few fields as possible Multi-field Primary Key Combination of two or more fields that uniquely identify an individual record Candidate Key Field or fields that qualify as a primary key Important in Third and Boyce-Codd Normal Forms
26 Relationships A relationship connects two or more entity sets. It is represented by a diamond or an oval form, with lines to each of the entity sets involved. 26
27 Example Foret num_foret forest_name area manage_plan periode_ameneg beging_mana climat Commente <pi> Number (4) Text (25) Decimal (6,2) Characters (1) Number (2) Number (4) Text Text (500) <M> 0,n Divided Forest is divided into parcels. Identifier_1... <pi> 1,n composed Subdivisée 1,1 num_parcelle area status appelation Identifier_1 Parcelle <pi> <pi> Number (4) Decimal (6,2) Text (10) Text (40) 1,n num_cellule area objet_carto Identifier_1 1,1 Cellule <pi> Number (4) Decimal (6,2) Number (2) <pi> Parcel is composed of some celles. 1,1 Contains 27
28 Identify Entities type Relationships Based on business rules being modeled Examples: each customer can place many orders all employees belong to a department each TA is assigned to one course
29 Relationship Terminology Relationship Type One-to-one: expressed as 1:1 One-to-Many: expressed as 1:N or 1:M or 1: Many-to-Many: expressed as N:N or M:M Primary or Parent Table Table on the left side of 1:N relationship Related or Child Table Table on the right side of 1:N relationship Relational Schema Diagram of table relationships in database
30 Many-Many Relationships Think of a relationship between two entity type, such as Composed between Forests and Parcelle. In a many-many relationship, an entity of the first set can be connected to many entities of the other set. E.g., a Parcel can be composed of many Species; a specie can be in the composition of many Parcels. 30
31 Example num_foret forest_name area manage_plan periode_ameneg beging_mana climat Commente Identifier_1... <pi> Foret <pi> Number (4) Text (25) Decimal (6,2) Characters (1) Number (2) Number (4) Text Text (500) <M> 1,n Divided 1,n Strata str strat_name date_photointer nbr_unite Identifier_1 <pi> <pi> Number (3) Text (19) Date Number (2) 31
32 Many-One Relationships Some binary relationships are many -one from one entity type to another. Each entity of the first set is connected to at most one entity of the second set. But an entity of the second set can be connected to zero, one, or many entities of the first set. 32
33 Example Divided, from Forests to Parcels is many-one. A Parcel belongs to at most one specific Forest. But a Forest can be divided to any number of Parcels, including zero. 33
34 Example num_foret forest_name area manage_pl an peri ode_ameneg begi ng_mana climat Commente Identi fi er_1... <pi> Foret <pi > Number (4) Text (25) Deci mal (6,2) Characters (1) Number (2) Number (4) Text Text (500) 1,n <M> composed num_parcel l e area status appelation 1,1 Parcelle Identi fi er_1 <pi > <pi > Number (4) Deci mal (6,2) Text (10) Text (40) 34
35 One-One Relationships In a one-one relationship, each entity of either entity set is related to at most one entity of the other set. Example: Relationship Responsible-of between entity sets Forests and Managers. A Forest cannot be managed by more than one manager, and no manager can have more than one forest under his responsibility. 35
36 Example Code name degree adress phone_nbr Managers Number (8) Text Text Text Number 1,1 Responsibleof 1,1 num_foret forest_name area manage_plan periode_ameneg beging_mana climat Commente Identifier_1... <pi> Foret <pi> Number (4) Text (25) Decimal (6,2) Characters (1) Number (2) Number (4) Text Text (500) <M> 36
37 In Pictures: many-many many-one one-one 37
38 Representing Multiplicity Show a many-one relationship by an arrow entering the one side or use a cardinality that is a couple of number (n,n). Show a one-one relationship by just a line entering both entity sets use a cardinality that is a couple of number (1,1). In some situations, we can also assert exactly one, i.e., each entity of one set must be related to exactly one entity of the other set. To do so, we use a rounded arrow. 38
39 Example num_foret forest_name area manage_plan periode_ameneg beging_mana climat Commente Identifier_1... <pi> Foret <pi> Number (4) Text (25) Decimal (6,2) Characters (1) Number (2) Number (4) Text Text (500) 1,n <M> composed 1,1 num_parcelle area status appelation Identifier_1 Parcelle <pi> <pi> Number (4) Decimal (6,2) Text (10) Text (40)
40 Naming Conventions Rules of thumb Table names must be unique in DB; should be plural Field names must be unique in the table(s) Clearly identify table subject or field data Be as brief as possible Avoid abbreviations and acronyms Use less than 30 characters, Use letters, numbers, underscores (_) Do not use spaces or other special characters
41 Weak Entity type Occasionally, entities of an entity type need help to identify them uniquely. Entity type E is said to be weak if in order to identify entities of E uniquely, we need to follow one or more many-one relationships from E and include the key of the related entities from the connected entity type. 41
42 Example number is almost a key for parcel, but there might be two with the same number. number is certainly not a key, since parcels on two forests could have the same number. But number, together with the Forest related to the parcel by Divided should be unique. 42
43 In E/R Diagrams number name number Parcels Divided-to Forests Double diamond for supporting many-one relationship. Double rectangle for the weak entity type. 43
44 Weak Entity-Type Rules A weak entity type has one or more many-one relationships to other (supporting) entities type. Not every many-one relationship from a weak entity type need be supporting. The key for a weak entity type is its own underlined attributes and the keys for the supporting entity sets. E.g., parcel-number and forest-name is a key for Parcels in the previous example. 44
45 How to construct a conceptual model The construction of a conceptual model can be done as follow: Identify the list of entities type For each entity type: Establish the list of it s attribute; From this list, identify the entity identifier. Determine the relationships between the entities type; For each relationship: Write down the list of it s attributes; Determine the dimension of the relationship (binary, multi-way, ); Establish the cardinalities; Verify the obtained model: Eliminate the transitivity; Be sure that all the entities in the schema are connected; Be sure that it satisfy the questions. Validate with the users. 45
46 Design Techniques 1. Avoid redundancy. 2. Limit the use of weak entity sets. 3. Don t use an entity set when an attribute will do. 46
47 Avoiding Redundancy Redundancy occurs when we say the same thing in two different ways. Redundancy wastes space and (more importantly) encourages inconsistency. The two instances of the same fact may become inconsistent if we change one and forget to change the other, related version. 47
48 Logical design : logical model
49 Logical Database Design Based upon the conceptual data model Four key steps 1. Develop a logical data model for each known user interface for the application using normalization principles. 2. Combine normalized data requirements from all user interfaces into one consolidated logical database model (view integration). 3. Translate the conceptual E-R data model for the application into normalized data requirements. 4. Compare the consolidated logical database design with the translated E-R model and produce one final logical database model for the application.
50 What Is Logical Data Modeling Translating conceptual data models into a format consistent with the architecture used by the data management software to be used with the application Normalization analysis of functional dependencies between data items to result in a structure of data that is simple, stable, and fundamental
51 Functional Dependency For a relation (table), attribute A depends on attribute B if for every valid row the value of B determines the value of A B A E.g. Student ID Student name Order No + Product No Quantity ordered
52 Normalization Normal Forms (NF): design standards based on database design theory Normalization is the process of applying the NFs to table design to eliminate redundancy and create a more efficient organization of DB storage. Each successive NF applies an increasingly stringent set of rules
53 Normal Forms First normal form No multi-valued attributes. Every attribute value is atomic. Second normal form 1NF and every non-key attribute is fully functionally dependent on the primary key. Every non-key attribute must be defined by the entire key, not by only part of the key. No partial functional dependencies. Third normal form 2NF and no transitive dependencies (functional dependency between non-key attributes.)
54 Sample 1NF Violation - 1 Employee_Projects_Time EmployeeID Name Project Time EN1-26 Sean O Brien T3, T3, T3 EN1-33 Amy Guya T3, TC, T3 EN1-35 Steven Baranco T3, TC 0.25, 0.40, , 0.35, , 0.80
55 Tables in 1NF Employees *EmployeeID LastName FirstName EN1-26 O Brien Sean EN1-33 Guya Amy EN1-35 Baranco Steven Employees_Projects *ProjNum EmployeeID Time TC EN T3 EN T3 EN
56 Sample 2NF Violation Employees_Projects *EmpID Lname Fname *ProjNum ProjTitle EN1-25 O Brien Sean T3 STAR Manual EN1-25 O Brien Sean T3 ISO Procedures EN1-25 O Brien Sean T3 Employee Handbook EN1-33 Guya Amy T3 STAR Manual EN1-33 Guya Amy TC Web site
57 Tables in 2NF Employees *EmployeeID LastName FirstName EN1-26 O Brien Sean EN1-33 Guya Amy Employees_Projects *EmployeeID *ProjNum EN T3 EN T3 Projects *ProjNum Title T3 STAR manual T3 ISO procedure
58 Sample 3NF Violation Projects_Managers *ProjNum ProjTitle ProjMgr Phone T3 STAR Manual Garrison T3 ISO Procedures Jacanda TC Web Site Friedman T3 STAR prototype Garrison TC Order System Jacanda 2954
59 Tables in 3NF Projects *ProjNum ProjTitle Manager T3 STAR manual Garrison T3 ISO procedures Jacanda Project Managers *Manager Phone Garrison 2846 Jacanda 2756
60 Transforming E-R Diagrams into Relations 1. Map Regular Entities to Relations. Composite attributes: Use only their simple, component attributes. Multi-valued Attribute - Becomes a separate relation with a foreign key taken from the superior entity.
61 Transforming E-R Diagrams Into Relations 2. Map Weak Entities Becomes a separate relation with a foreign key taken from the superior entity.
62 Transforming E-R Diagrams Into Relations 3. Map Binary Relationships One-to-Many - Primary key on the one side becomes a foreign key on the many side Many-to-Many - Create a new relation with the primary keys of the two entities as its primary key One-to-One - Primary key on the mandatory side becomes a foreign key on the optional side
63 Transforming E-R Diagrams Into Relations 4. Map Associative Entities Identifier Not Assigned Default primary key for the association relation is composed of the primary keys of the two entities Identifier Assigned It is natural and familiar to end-users. Default identifier may not be unique.
64 Transforming E-R Diagrams Into Relations 5. Map Unary Relationships One-to-Many - Recursive foreign key in the same relation Many-to-Many - Bill-of-materials: Two relations: One for the entity type. One for an associative relation in which the primary key has two attributes, both taken from the primary key of the entity
65 Transforming E-R Diagrams Into Relations 6. Map Ternary (and n-ary) Relationships One relation for each entity and one for the associative entity
66 That s it for Table Design Watch for repeating values and fields Check against the Normal Forms Make new tables when necessary Re-check all tables against the NFs Remember the business rules Use common sense, but check anyway!
67 Ensuring Data Integrity Placing constraints on how and when and where data can be entered Done after or along with table design Part of design process because many constraints are established at the database and table levels
68 Methods of Controlling Data Integrity Default Value A value a field will assume unless an explicit value is entered for that field Range Control Limits range of values that can be entered into field Referential Integrity An integrity constraint specifying that the value (or existence) of an attribute in one relation depends on the value (or existence) of the same attribute in another relation Null Value A special field value, distinct from 0, blank, or any other value, that indicates that the value for the field is missing or otherwise unknown
69 Referential Integrity True relational databases support Referential Integrity: every non-null foreign key value must match an existing primary key value. In other words, every record in a related table must have a matching record in the primary table. Preserves the validity of foreign key values. Enforced at database level.
70 Cascading Updates When a primary key value changes, Cascade Update changes the corresponding values in the related records, so no records get orphaned. Usually only one level deep Foreign key is not usually primary key of related table (except in 1:1 relationships) hence no other tables are usually related to it
71 Cascade Deletes When a primary table record is deleted, all matching records in any related table are also deleted Can propagate through multiple tables if Cascade Delete is turned on in all relationships between those tables Another protection against orphan records, only this time by eradicating them instead!
72 Levels of Enforcement Referential Integrity enforced at database level because it affects relationship between two tables. Many other business rules enforced at field and table level to ensure data integrity. Business rule implementation should be documented: how and where it is enforced in the design. Some rules can t be enforced at table or field level; must be enforced in the application level.
73 Testing of Business Rules Always test business rule implementation What happens when rule is met? What happens when rule is violated? Not much good as a data entry constraint if it doesn t constrain properly Good application or interface design will provide feedback when user violates a constraint or rule
74 Field Level Integrity Constraining by use of field properties Data type: text, number, Yes/No, Date/Time Field size Formats Entry and editing constraints Required Indexed, with or without duplicates Input masks Default value Validation Rule
75 Table Level Integrity Field Comparisons Compare value in one field to value in another Comparison performed before record is saved Violations could display an error message or force constraint of available values Validation or Lookup Tables Store generally static set of values Stored values used to populate new records to ensure accuracy of data entry
76 Documentation A good design deserves good documentation Data Dictionary for database/table design Table and field names Table and field properties Relationships, including primary and foreign keys Indexes Provide reasons for design features, especially if they intentionally violate normal design principles
77 Physical design : physical model according to the RDBMS chosen
Entity-Relationship Model. Purpose of E/R Model. Entity Sets
Entity-Relationship Model Diagrams Class hierarchies Weak entity sets 1 Purpose of E/R Model The E/R model allows us to sketch the design of a database informally. Designs are pictures called entityrelationship
More information2. Conceptual Modeling using the Entity-Relationship Model
ECS-165A WQ 11 15 Contents 2. Conceptual Modeling using the Entity-Relationship Model Basic concepts: entities and entity types, attributes and keys, relationships and relationship types Entity-Relationship
More informationTutorial on Relational Database Design
Tutorial on Relational Database Design Introduction Relational database was proposed by Edgar Codd (of IBM Research) around 1969. It has since become the dominant database model for commercial applications
More informationDatabase Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys
Database Design Overview Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Conceptual design The Entity-Relationship (ER) Model, UML High-level, close to human thinking Semantic
More informationFundamentals of Database Design
Fundamentals of Database Design Zornitsa Zaharieva CERN Data Management Section - Controls Group Accelerators and Beams Department /AB-CO-DM/ 23-FEB-2005 Contents : Introduction to Databases : Main Database
More informationIT2305 Database Systems I (Compulsory)
Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this
More informationThe Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3
The Relational Model Chapter 3 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase,
More informationIT2304: Database Systems 1 (DBS 1)
: Database Systems 1 (DBS 1) (Compulsory) 1. OUTLINE OF SYLLABUS Topic Minimum number of hours Introduction to DBMS 07 Relational Data Model 03 Data manipulation using Relational Algebra 06 Data manipulation
More informationBridge from Entity Relationship modeling to creating SQL databases, tables, & relations
1 Topics for this week: 1. Good Design 2. Functional Dependencies 3. Normalization Readings for this week: 1. E&N, Ch. 10.1-10.6; 12.2 2. Quickstart, Ch. 3 3. Complete the tutorial at http://sqlcourse2.com/
More informationChapter 3. Data Modeling Using the Entity-Relationship (ER) Model
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity
More informationLesson 8: Introduction to Databases E-R Data Modeling
Lesson 8: Introduction to Databases E-R Data Modeling Contents Introduction to Databases Abstraction, Schemas, and Views Data Models Database Management System (DBMS) Components Entity Relationship Data
More information14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:
14 Databases 14.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: Define a database and a database management system (DBMS)
More informationThe Entity-Relationship Model
The Entity-Relationship Model 221 After completing this chapter, you should be able to explain the three phases of database design, Why are multiple phases useful? evaluate the significance of the Entity-Relationship
More informationDatabase Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB
Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Outline Database concepts Conceptual Design Logical Design Communicating with the RDBMS 2 Some concepts Database: an
More informationThe Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1
The Relational Model Ramakrishnan&Gehrke, Chapter 3 CS4320 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models
More informationChapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant
Chapter 2: Entity-Relationship Model! Entity Sets! Relationship Sets! Design Issues! Mapping Constraints! Keys! E-R Diagram! Extended E-R Features! Design of an E-R Database Schema! Reduction of an E-R
More information7.1 The Information system
Chapter 7. Database Planning, Design and Administration Last few decades have seen proliferation of software applications, many requiring constant maintenance involving: correcting faults, implementing
More informationDATABASE MANAGEMENT SYSTEMS. Question Bank:
DATABASE MANAGEMENT SYSTEMS Question Bank: UNIT 1 1. Define Database? 2. What is a DBMS? 3. What is the need for database systems? 4. Define tupule? 5. What are the responsibilities of DBA? 6. Define schema?
More informationOnce the schema has been designed, it can be implemented in the RDBMS.
2. Creating a database Designing the database schema... 1 Representing Classes, Attributes and Objects... 2 Data types... 5 Additional constraints... 6 Choosing the right fields... 7 Implementing a table
More informationFoundations of Information Management
Foundations of Information Management - WS 2012/13 - Juniorprofessor Alexander Markowetz Bonn Aachen International Center for Information Technology (B-IT) Data & Databases Data: Simple information Database:
More informationAVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL
AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL Ben B. Kim, Seattle University, bkim@seattleu.edu ABSTRACT The entity-relationship (ER model is clearly
More informationLecture 12: Entity Relationship Modelling
Lecture 12: Entity Relationship Modelling The Entity-Relationship Model Entities Relationships Attributes Constraining the instances Cardinalities Identifiers Generalization 2004-5 Steve Easterbrook. This
More informationDatabases What the Specification Says
Databases What the Specification Says Describe flat files and relational databases, explaining the differences between them; Design a simple relational database to the third normal form (3NF), using entityrelationship
More informationThe Relational Model. Why Study the Relational Model? Relational Database: Definitions
The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in
More informationCOMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model
COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model The entity-relationship (E-R) model is a a data model in which information stored
More informationTIM 50 - Business Information Systems
TIM 50 - Business Information Systems Lecture 15 UC Santa Cruz March 1, 2015 The Database Approach to Data Management Database: Collection of related files containing records on people, places, or things.
More informationA. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ:
GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ: Review Quiz will contain very similar question as below. Some questions may even be repeated. The order of the questions are random and are not in order of
More informationCS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University
CS 377 Database Systems Database Design Theory and Normalization Li Xiong Department of Mathematics and Computer Science Emory University 1 Relational database design So far Conceptual database design
More informationUnit 2.1. Data Analysis 1 - V2.0 1. Data Analysis 1. Dr Gordon Russell, Copyright @ Napier University
Data Analysis 1 Unit 2.1 Data Analysis 1 - V2.0 1 Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes,
More informationA brief overview of developing a conceptual data model as the first step in creating a relational database.
Data Modeling Windows Enterprise Support Database Services provides the following documentation about relational database design, the relational database model, and relational database software. Introduction
More informationDatabase design 1 The Database Design Process: Before you build the tables and other objects that will make up your system, it is important to take time to design it. A good design is the keystone to creating
More informationChapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms.
Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Robert C. Nickerson ISYS
More informationDatabase Design and Normalization
Database Design and Normalization 3 CHAPTER IN THIS CHAPTER The Relational Design Theory 48 46 Database Design Unleashed PART I Access applications are database applications, an obvious statement that
More informationData Analysis 1. SET08104 Database Systems. Copyright @ Napier University
Data Analysis 1 SET08104 Database Systems Copyright @ Napier University Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship?
More informationConcepts of Database Management Seventh Edition. Chapter 6 Database Design 2: Design Method
Concepts of Database Management Seventh Edition Chapter 6 Database Design 2: Design Method Objectives Discuss the general process and goals of database design Define user views and explain their function
More informationIntroduction to normalization. Introduction to normalization
Introduction to normalization Lecture 4 Instructor Anna Sidorova Agenda Presentation Review of relational models, in class exersise Introduction to normalization In-class exercises Discussion of HW2 1
More informationEntity-Relationship Model
UNIT -2 Entity-Relationship Model Introduction to ER Model ER model is represents real world situations using concepts, which are commonly used by people. It allows defining a representation of the real
More informationModern Systems Analysis and Design
Modern Systems Analysis and Design Prof. David Gadish Structuring System Data Requirements Learning Objectives Concisely define each of the following key data modeling terms: entity type, attribute, multivalued
More informationER modelling, Weak Entities, Class Hierarchies, Aggregation
CS344 Database Management Systems ER modelling, Weak Entities, Class Hierarchies, Aggregation Aug 2 nd - Lecture Notes (Summary) Submitted by - N. Vishnu Teja Saurabh Saxena 09010125 09010145 (Most the
More informationLecture 6. SQL, Logical DB Design
Lecture 6 SQL, Logical DB Design Relational Query Languages A major strength of the relational model: supports simple, powerful querying of data. Queries can be written intuitively, and the DBMS is responsible
More informationDATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps.
DATABASE DESIGN - The ability to design databases and associated applications is critical to the success of the modern enterprise. - Database design requires understanding both the operational and business
More informationData Modeling: Part 1. Entity Relationship (ER) Model
Data Modeling: Part 1 Entity Relationship (ER) Model MBA 8473 1 Cognitive Objectives (Module 2) 32. Explain the three-step process of data-driven information system (IS) development 33. Examine the purpose
More information- Suresh Khanal. http://mcqsets.com. http://www.psexam.com Microsoft Excel Short Questions and Answers 1
- Suresh Khanal http://mcqsets.com http://www.psexam.com Microsoft Excel Short Questions and Answers 1 Microsoft Access Short Questions and Answers with Illustrations Part I Suresh Khanal Kalanki, Kathmandu
More informationOutline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst
Outline Data Modeling Yanlei Diao UMass Amherst v Conceptual Design: ER Model v Relational Model v Logical Design: from ER to Relational Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 2 Conceptual
More informationDatabase Design Process. Databases - Entity-Relationship Modelling. Requirements Analysis. Database Design
Process Databases - Entity-Relationship Modelling Ramakrishnan & Gehrke identify six main steps in designing a database Requirements Analysis Conceptual Design Logical Design Schema Refinement Physical
More informationFundamentals of Database System
Fundamentals of Database System Chapter 4 Normalization Fundamentals of Database Systems (Chapter 4) Page 1 Introduction To Normalization In general, the goal of a relational database design is to generate
More informationBCA. Database Management System
BCA IV Sem Database Management System Multiple choice questions 1. A Database Management System (DBMS) is A. Collection of interrelated data B. Collection of programs to access data C. Collection of data
More informationDatabasesystemer, forår 2005 IT Universitetet i København. Forelæsning 3: Business rules, constraints & triggers. 3. marts 2005
Databasesystemer, forår 2005 IT Universitetet i København Forelæsning 3: Business rules, constraints & triggers. 3. marts 2005 Forelæser: Rasmus Pagh Today s lecture Constraints and triggers Uniqueness
More informationnot necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage
Database Design Process there are six stages in the design of a database: 1. requirement analysis 2. conceptual database design 3. choice of the DBMS 4. data model mapping 5. physical design 6. implementation
More informationData Modeling Basics
Information Technology Standard Commonwealth of Pennsylvania Governor's Office of Administration/Office for Information Technology STD Number: STD-INF003B STD Title: Data Modeling Basics Issued by: Deputy
More informationwww.gr8ambitionz.com
Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1
More informationThe Relational Data Model: Structure
The Relational Data Model: Structure 1 Overview By far the most likely data model in which you ll implement a database application today. Of historical interest: the relational model is not the first implementation
More informationRelational Database Basics Review
Relational Database Basics Review IT 4153 Advanced Database J.G. Zheng Spring 2012 Overview Database approach Database system Relational model Database development 2 File Processing Approaches Based on
More informationHow To Write A Diagram
Data Model ing Essentials Third Edition Graeme C. Simsion and Graham C. Witt MORGAN KAUFMANN PUBLISHERS AN IMPRINT OF ELSEVIER AMSTERDAM BOSTON LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE
More informationConceptual Design Using the Entity-Relationship (ER) Model
Conceptual Design Using the Entity-Relationship (ER) Model Module 5, Lectures 1 and 2 Database Management Systems, R. Ramakrishnan 1 Overview of Database Design Conceptual design: (ER Model is used at
More informationKen Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N).
Lab 3 Relationships in ER Diagram and Relationships in MS Access MS Access Lab 3 Summary Introduction to Relationships Why Define Relationships? Relationships in ER Diagram vs. Relationships in MS Access
More informationIntroduction to Computing. Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn
Introduction to Computing Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn Databases The Hierarchy of Data Keys and Attributes The Traditional Approach To Data Management Database A collection of
More informationCS2Bh: Current Technologies. Introduction to XML and Relational Databases. The Relational Model. The relational model
CS2Bh: Current Technologies Introduction to XML and Relational Databases Spring 2005 The Relational Model CS2 Spring 2005 (LN6) 1 The relational model Proposed by Codd in 1970. It is the dominant data
More information12 File and Database Concepts 13 File and Database Concepts A many-to-many relationship means that one record in a particular record type can be relat
1 Databases 2 File and Database Concepts A database is a collection of information Databases are typically stored as computer files A structured file is similar to a card file or Rolodex because it uses
More informationData Modeling. Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4
Data Modeling Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4 Data Modeling Schema: The structure of the data Structured Data: Relational, XML-DTD, etc Unstructured Data: CSV, JSON But where does
More informationIntroduction This document s purpose is to define Microsoft SQL server database design standards.
Introduction This document s purpose is to define Microsoft SQL server database design standards. The database being developed or changed should be depicted in an ERD (Entity Relationship Diagram). The
More informationLecture Notes INFORMATION RESOURCES
Vilnius Gediminas Technical University Jelena Mamčenko Lecture Notes on INFORMATION RESOURCES Part I Introduction to Dta Modeling and MSAccess Code FMITB02004 Course title Information Resourses Course
More informationTHE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)
THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 LECTURE OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual
More informationFoundations of Business Intelligence: Databases and Information Management
Foundations of Business Intelligence: Databases and Information Management Content Problems of managing data resources in a traditional file environment Capabilities and value of a database management
More informationAccess Tutorial 2: Tables
Access Tutorial 2: Tables 2.1 Introduction: The importance of good table design Tables are where data in a database is stored; consequently, tables form the core of any database application. In addition
More informationChapter 15 Basics of Functional Dependencies and Normalization for Relational Databases
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Outline Informal Design Guidelines
More informationDatabases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.
The Entity- Relationship Model R &G - Chapter 2 A relationship, I think, is like a shark, you know? It has to constantly move forward or it dies. And I think what we got on our hands is a dead shark. Woody
More informationPhysical Design. Meeting the needs of the users is the gold standard against which we measure our success in creating a database.
Physical Design Physical Database Design (Defined): Process of producing a description of the implementation of the database on secondary storage; it describes the base relations, file organizations, and
More informationSQL Simple Queries. Chapter 3.1 V3.0. Copyright @ Napier University Dr Gordon Russell
SQL Simple Queries Chapter 3.1 V3.0 Copyright @ Napier University Dr Gordon Russell Introduction SQL is the Structured Query Language It is used to interact with the DBMS SQL can Create Schemas in the
More informationMicrosoft Access Basics
Microsoft Access Basics 2006 ipic Development Group, LLC Authored by James D Ballotti Microsoft, Access, Excel, Word, and Office are registered trademarks of the Microsoft Corporation Version 1 - Revision
More informationDatabases and BigData
Eduardo Cunha de Almeida eduardo.almeida@uni.lu Outline of the course Introduction Database Systems (E. Almeida) Distributed Hash Tables and P2P (C. Cassagnes) NewSQL (D. Kim and J. Meira) NoSQL (D. Kim)
More informationDatabase Design Methodologies
Critical Success Factors in Database Design Database Design Methodologies o Work interactively with the users as much as possible. o Follow a structured methodology throughout the data modeling process.
More informationDatabase Design. Adrienne Watt. Port Moody
Database Design Database Design Adrienne Watt Port Moody Except for third party materials and otherwise stated, content on this site is made available under a Creative Commons Attribution 2.5 Canada License.
More informationDatabase Design Methodology
Database Design Methodology Three phases Database Design Methodology Logical database Physical database Constructing a model of the information used in an enterprise on a specific data model but independent
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 The
More informationWe know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded
E-R Diagram Database Development We know how to query a database using SQL A set of tables and their schemas are given Data are properly loaded But, how can we develop appropriate tables and their schema
More informationChapter 2: Entity-Relationship Model. E-R R Diagrams
Chapter 2: Entity-Relationship Model What s the use of the E-R model? Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema
More informationChapter 7 Data Modeling Using the Entity- Relationship (ER) Model
Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Outline Using High-Level Conceptual Data Models for
More informationOptimizing Your Data Warehouse Design for Superior Performance
Optimizing Your Data Warehouse Design for Superior Performance Lester Knutsen, President and Principal Database Consultant Advanced DataTools Corporation Session 2100A The Problem The database is too complex
More informationDATABASE SYSTEMS. Chapter 7 Normalisation
DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation 1 (Rob, Coronel & Crockett 978184480731) In this chapter, you will learn: What normalization
More informationDATABASE INTRODUCTION
Introduction The history of database system research is one of exceptional productivity and startling economic impact. We have learnt that from the days of file-based systems there are better ways to handle
More informationTopic 5.1: Database Tables and Normalization
Topic 5.1: Database Tables and Normalization What is Normalization? Normalization is a process for evaluating and correcting table structures to minimize data redundancies, thereby helping to eliminate
More informationDesigning Databases. Introduction
Designing Databases C Introduction Businesses rely on databases for accurate, up-to-date information. Without access to mission critical data, most businesses are unable to perform their normal daily functions,
More informationMicrosoft Access 2003 Module 1
Microsoft Access 003 Module http://pds.hccfl.edu/pds Microsoft Access 003: Module June 005 006 Hillsborough Community College - Professional Development Services Hillsborough Community College - Professional
More informationOptimum Database Design: Using Normal Forms and Ensuring Data Integrity. by Patrick Crever, Relational Database Programmer, Synergex
Optimum Database Design: Using Normal Forms and Ensuring Data Integrity by Patrick Crever, Relational Database Programmer, Synergex Printed: April 2007 The information contained in this document is subject
More informationReview: Participation Constraints
Review: Participation Constraints Does every department have a manager? If so, this is a participation constraint: the participation of Departments in Manages is said to be total (vs. partial). Every did
More informationDbSchema Tutorial with Introduction in SQL Databases
DbSchema Tutorial with Introduction in SQL Databases Contents Connect to the Database and Create First Tables... 2 Create Foreign Keys... 7 Create Indexes... 9 Generate Random Data... 11 Relational Data
More informationSection of DBMS Selection & Evaluation Questionnaire
Section of DBMS Selection & Evaluation Questionnaire Whitemarsh Information Systems Corporation 2008 Althea Lane Bowie, Maryland 20716 Tele: 301-249-1142 Email: mmgorman@wiscorp.com Web: www.wiscorp.com
More informationDatabase Design Process
Entity-Relationship Model Chapter 3, Part 1 Database Design Process Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning 1 Problem: University
More informationFoundations of Information Management
Foundations of Information Management - WS 2009/10 Juniorprofessor Alexander Markowetz Bonn Aachen International Center for Information Technology (B-IT) Alexander Markowetz Born 1976 in Brussels, Belgium
More information1. INTRODUCTION TO RDBMS
Oracle For Beginners Page: 1 1. INTRODUCTION TO RDBMS What is DBMS? Data Models Relational database management system (RDBMS) Relational Algebra Structured query language (SQL) What Is DBMS? Data is one
More informationCS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #5: En-ty/Rela-onal Models- - - Part 1
CS 4604: Introduc0on to Database Management Systems B. Aditya Prakash Lecture #5: En-ty/Rela-onal Models- - - Part 1 Announcements- - - Project Goal: design a database system applica-on with a web front-
More informationDatabase IST400/600. Jian Qin. A collection of data? A computer system? Everything you collected for your group project?
Relational Databases IST400/600 Jian Qin Database A collection of data? Everything you collected for your group project? A computer system? File? Spreadsheet? Information system? Date s criteria: Integration
More informationHow To Create A Table In Sql 2.5.2.2 (Ahem)
Database Systems Unit 5 Database Implementation: SQL Data Definition Language Learning Goals In this unit you will learn how to transfer a logical data model into a physical database, how to extend or
More informationMicrosoft Access 2007 Module 1
Microsoft Access 007 Module http://pds.hccfl.edu/pds Microsoft Access 007: Module August 007 007 Hillsborough Community College - Professional Development and Web Services Hillsborough Community College
More informationAS LEVEL Computer Application Databases
AS LEVEL Computer Application Databases YLLSS In the syllabus, we have Applications of databases in society Students should be aware of the uses and applications of databases in everyday life (e.g. the
More informationAccess Tutorial 3: Relationships
Access Tutorial 3: Relationships 3.1 Introduction: The advantage of using tables and relationships A common mistake made by inexperienced database designers (or those who have more experience with spreadsheets
More informationDatabase Design for the Uninitiated CDS Brownbag Series CDS
Database Design for the Uninitiated Paul Litwin FHCRC Collaborative Data Services 1 CDS Brownbag Series This is the ninth in a series of seminars Materials for the series can be downloaded from www.deeptraining.com/fhcrc
More informationChapter 5 Foundations of Business Intelligence: Databases and Information Management
1 Chapter 5 Foundations of Business Intelligence: Databases and Information Management LEARNING TRACK 1: DATABASE DESIGN, NORMALIZATION, AND ENTITY-RELATIONSHIP DIAGRAMMING This Hands-On Guide will show
More informationRelational Databases. Christopher Simpkins chris.simpkins@gatech.edu
Relational Databases Christopher Simpkins chris.simpkins@gatech.edu Relational Databases A relational database is a collection of data stored in one or more tables A relational database management system
More information