This document discusses conceptual data modeling using entity-relationship (ER) modeling. It covers the key components of ER modeling, including entities, relationships, attributes, participation constraints, cardinalities, weak entities, and generalization hierarchies. It also discusses how to translate an ER model into a relational database design, including how to handle different relationship types like one-to-many and many-to-many. The benefits of conceptual modeling are outlined, and it is noted that ER modeling allows expressing important integrity constraints while some constraints cannot be depicted.
The document discusses the entity-relationship (ER) model for conceptual database design. It describes the basic constructs of the ER model including entities, attributes, relationships, keys, and various modeling choices. The ER model is useful for capturing the semantics of an application domain and producing a conceptual schema before logical and physical design.
Cn presentation on the topic called as re modellingg30162363
The document discusses conceptual database design using the entity-relationship model. It provides an overview of the database design process and introduces key concepts of the ER model including entities, attributes, relationships and entity types. It then presents an example database for a company (COMPANY) and develops the initial entity types and relationships for the conceptual design using ER diagram notation. The entity types include DEPARTMENT, PROJECT, EMPLOYEE and DEPENDENT and the relationship types include WORKS_ON and MANAGES.
ER diagram slides for datanase stujdy-1.pdfSadiaSharmin40
The document discusses database schema design using the entity-relationship (ER) model. It describes the database design process, which involves requirements analysis, conceptual design, and implementation including logical and physical design. The conceptual design phase develops a high-level description of the database using a technique like ER modeling. ER modeling represents entities, entity sets, attributes, relationships, and keys graphically. Relationships associate entities and define how they are related. The conceptual schema and functional requirements are then implemented through logical and physical database design.
The document discusses modeling data objects in an entity relationship diagram. It covers key concepts like entities, attributes, relationships, and keys. It provides examples of how to represent different types of relationships between entities like one-to-one, one-to-many, and many-to-many. The document also discusses modeling weak entities, documenting the ER diagram, normalizing the data to avoid anomalies, and determining the scope of the database and application system.
The document provides an overview of data modeling and conceptual data modeling. It discusses key concepts in data modeling including entity relationship diagrams, attributes, domains, entity types, weak vs strong entities, and entity sets. It explains how data modeling follows analysis and documents business rules and policies to design a conceptual model of the database and relationships between data. The conceptual model is represented using an ERD.
What is dimension modeling? ,
Difference between ER modeling and dimension modeling,
What is a Dimension? ,
What is a Fact?
Start Schema ,
Snow Flake Schema ,
Difference between Star and snow flake schema ,
Fact Table ,
Different types of facts
Dimensional Tables,
Fact less Fact Table ,
Confirmed Dimensions ,
Unconfirmed Dimensions ,
Junk Dimensions ,
Monster Dimensions ,
Degenerative Dimensions ,
What are slowly changing Dimensions? ,
Different types of SCD's,
The document discusses the Entity-Relationship (ER) model used for conceptual database design. The ER model uses entities, attributes, and relationships to model real-world concepts and connections. The model allows expression of key constraints, participation constraints, and other integrity rules. Conceptual design requires determining the best way to represent concepts as entities or attributes and relationships.
The document discusses database design processes and concepts. It covers:
1) The objectives of database design are to create logical and physical models of the proposed database system. The logical model focuses on data requirements while the physical model translates the logical design based on hardware/software constraints.
2) Proper database design is important as it provides a blueprint for how data is stored and accessed, defines application behavior, and meets user requirements. It can also improve performance.
3) The overall workflow involves requirement analysis, database designing including logical and physical models, and implementation including testing to ensure requirements are met.
The document discusses the entity-relationship (ER) model for conceptual database design. It describes the basic constructs of the ER model including entities, attributes, relationships, keys, and various modeling choices. The ER model is useful for capturing the semantics of an application domain and producing a conceptual schema before logical and physical design.
Cn presentation on the topic called as re modellingg30162363
The document discusses conceptual database design using the entity-relationship model. It provides an overview of the database design process and introduces key concepts of the ER model including entities, attributes, relationships and entity types. It then presents an example database for a company (COMPANY) and develops the initial entity types and relationships for the conceptual design using ER diagram notation. The entity types include DEPARTMENT, PROJECT, EMPLOYEE and DEPENDENT and the relationship types include WORKS_ON and MANAGES.
ER diagram slides for datanase stujdy-1.pdfSadiaSharmin40
The document discusses database schema design using the entity-relationship (ER) model. It describes the database design process, which involves requirements analysis, conceptual design, and implementation including logical and physical design. The conceptual design phase develops a high-level description of the database using a technique like ER modeling. ER modeling represents entities, entity sets, attributes, relationships, and keys graphically. Relationships associate entities and define how they are related. The conceptual schema and functional requirements are then implemented through logical and physical database design.
The document discusses modeling data objects in an entity relationship diagram. It covers key concepts like entities, attributes, relationships, and keys. It provides examples of how to represent different types of relationships between entities like one-to-one, one-to-many, and many-to-many. The document also discusses modeling weak entities, documenting the ER diagram, normalizing the data to avoid anomalies, and determining the scope of the database and application system.
The document provides an overview of data modeling and conceptual data modeling. It discusses key concepts in data modeling including entity relationship diagrams, attributes, domains, entity types, weak vs strong entities, and entity sets. It explains how data modeling follows analysis and documents business rules and policies to design a conceptual model of the database and relationships between data. The conceptual model is represented using an ERD.
What is dimension modeling? ,
Difference between ER modeling and dimension modeling,
What is a Dimension? ,
What is a Fact?
Start Schema ,
Snow Flake Schema ,
Difference between Star and snow flake schema ,
Fact Table ,
Different types of facts
Dimensional Tables,
Fact less Fact Table ,
Confirmed Dimensions ,
Unconfirmed Dimensions ,
Junk Dimensions ,
Monster Dimensions ,
Degenerative Dimensions ,
What are slowly changing Dimensions? ,
Different types of SCD's,
The document discusses the Entity-Relationship (ER) model used for conceptual database design. The ER model uses entities, attributes, and relationships to model real-world concepts and connections. The model allows expression of key constraints, participation constraints, and other integrity rules. Conceptual design requires determining the best way to represent concepts as entities or attributes and relationships.
The document discusses database design processes and concepts. It covers:
1) The objectives of database design are to create logical and physical models of the proposed database system. The logical model focuses on data requirements while the physical model translates the logical design based on hardware/software constraints.
2) Proper database design is important as it provides a blueprint for how data is stored and accessed, defines application behavior, and meets user requirements. It can also improve performance.
3) The overall workflow involves requirement analysis, database designing including logical and physical models, and implementation including testing to ensure requirements are met.
This document discusses conceptual data modeling using the entity-relationship (ER) model. It defines key concepts of the ER model including entities, attributes, relationships, entity sets, relationship sets, keys, and ER diagrams. It explains how the ER model is used in the early conceptual design phase of database design to capture the essential data requirements and produce a conceptual schema that can be later mapped to a logical and physical database implementation.
The document discusses key concepts in relational data models including entities, attributes, relationships, and constraints. It provides examples of each concept and explains how they are the basic building blocks used to structure data in a relational database. Specific types of entities, attributes, relationships and their properties are defined, such as one-to-one, one-to-many, and many-to-many relationships. Overall, the document serves as an introduction to fundamental concepts in relational data modeling.
The document discusses the Entity-Relationship (ER) model for conceptual database design. It describes the key components of the ER model including entities, attributes, relationships, and keys. It also explains how the ER model maps to a relational schema and database, including the use of tables, rows, columns, primary keys, foreign keys, and integrity constraints. Referential integrity constraints are defined to link tables through foreign key to primary key relationships.
The document discusses normalization of relational databases. It begins by introducing normalization and its goals of preserving information and minimizing redundancy. It then covers four informal guidelines for relation schema design: clear attribute semantics, reducing redundancy and null values, and avoiding spurious tuples. The document proceeds to define functional dependencies, normal forms including 1NF through BCNF, and multivalued dependencies relevant to 4NF. It provides examples to illustrate database normalization concepts and the process of decomposing relations to eliminate anomalies through various normal forms.
The document contains information about entity-relationship (ER) modeling including:
1. It discusses the key components of an ER model including entities, attributes, relationships, and cardinality.
2. It provides examples of one-to-one, one-to-many, and many-to-many relationships between entities.
3. It describes the different types of attributes such as simple, composite, single-valued, multi-valued, and derived attributes.
Data development involves analyzing, designing, implementing, deploying, and maintaining data solutions to maximize the value of enterprise data. It includes defining data requirements, designing data components like databases and reports, and implementing these components. Effective data development requires collaboration between business experts, data architects, analysts, developers and other roles. The activities of data development follow the system development lifecycle and include data modeling, analysis, design, implementation, and maintenance.
The document discusses data development and data modeling concepts. It describes data development as defining data requirements, designing data solutions, and implementing components like databases, reports, and interfaces. Effective data development requires collaboration between business experts, data architects, analysts and developers. It also outlines the key activities in data modeling including analyzing information needs, developing conceptual, logical and physical data models, designing databases and information products, and implementing and testing the data solution.
This document discusses entity relationship modeling and conceptual database design. It defines conceptual database design as describing the data, relationships between data, and constraints. Entity relationship modeling is introduced as a top-down approach using entity relationship diagrams. Key components of ER diagrams are defined including entities, attributes, relationships, and cardinality. Guidelines are provided for defining these components accurately based on the problem domain. The document stresses modeling the data requirements and avoiding inclusion of business processes.
This document discusses entity relationship modeling and conceptual database design. It defines conceptual database design as describing the data, relationships between data, and constraints. The output is a conceptual data model and data dictionary. Entity relationship modeling is introduced as a top-down approach using entities, attributes, and relationships. The document covers gathering information, defining entities and attributes, and relationship types including one-to-one, one-to-many, and many-to-many. It also discusses cardinality, connectivity, and how to evaluate a good data model.
The document discusses database design process which can be broken down into 5 phases - planning, analysis, design, implementation and maintenance. It describes the conceptual, logical and physical data models. The conceptual model involves entities, attributes and relationships. The logical model maps the conceptual model to tables, fields, primary and foreign keys. The physical model deals with data storage and access. The document also covers entity relationship diagrams, normalization forms and tips for effective ER diagrams.
This document discusses various UML diagrams including class diagrams, use case diagrams, and their advantages and disadvantages. It provides an example class diagram for the abstract factory design pattern. Use case diagrams are used to gather system requirements and show interactions between actors and use cases. They provide an outside view of a system and can be used in both forward and reverse engineering. While useful for requirements analysis, use case diagrams do not describe implementation details.
Object-Oriented Systems Analysis and Design Using UML.pptxXanGwaps
This document discusses object-oriented systems analysis and design using the Unified Modeling Language (UML). It defines object-oriented analysis and design, and explains that UML uses various diagrams to visualize the construction of object-oriented systems. The main components of UML include things, relationships, and diagrams. Key object-oriented concepts like objects, classes, attributes, and methods are also described. Finally, different types of UML diagrams like class, component, deployment, use case and activity diagrams are introduced along with examples.
WBC Entity Relationship and data flow diagramsArshitSood3
This document provides information on entity relationship diagrams (ERDs) and data flow diagrams (DFDs). It defines ERDs and DFDs, lists their key components and symbols. For ERDs, it explains entities, attributes, relationships and provides examples of how to create a simple ERD. For DFDs, it defines the symbols used including external entities, processes, data stores and data flows. It also provides guidelines for developing effective diagrams.
Lab 3 Introduction to the UML - how to create a use case diagramFarah Ahmed
The document discusses use case diagrams and use case modeling. It provides an overview of use case diagrams, including their purpose and components. Key points include:
- Use case diagrams show interactions between actors and the system/software being modeled through use cases. They are used early in development to capture requirements and later to specify system behavior.
- Components of a use case diagram include actors, use cases, and relationships between them like generalization, include, and extend. Actors represent roles that interact with the system while use cases represent system functions/processes.
- Examples of a use case diagram for a vehicle sales system are provided to demonstrate how actors, use cases, and relationships can be modeled visually. Guidance is
The document provides information on entity relationship diagrams (ERDs), including their objectives, components, and how to construct them. An ERD is a graphical representation of entities, attributes, and relationships within a database. It serves as a design tool, documentation, and means to communicate the logical structure. Key aspects covered include identifying entities and attributes, defining relationships and cardinalities, and using standard symbols and notations to draw the ERD.
The document provides an overview of conceptual database design using entity-relationship (ER) modeling. It defines key concepts in ER diagrams like entities, attributes, relationships and their cardinalities. It explains how to model different relationship types like one-to-one, one-to-many and many-to-many. It also covers advanced topics such as weak entities, generalization, specialization and aggregation. The overall purpose is to illustrate how ER diagrams can be used to design databases by visually representing the entities, attributes, and relationships in a domain.
This document discusses data modeling and functional modeling techniques. [1] Data modeling is the process of creating a data model to define and analyze an organization's data requirements. It involves identifying entities, attributes, relationships, and keys. [2] Entity-relationship diagrams are used to graphically represent data models. [3] Functional modeling structures represent the functions and processes within a subject area using techniques like data flow diagrams and functional flow block diagrams.
The document discusses database fundamentals and provides an overview of key concepts including:
- The objectives of learning about database systems and their basic components
- An introduction to Entity Relationship (ER) modeling for conceptual database design
- The different types of database systems including relational, hierarchical, network, and object-oriented
- How to create a database environment using ER modeling to design the structure and relationships of data
The document discusses entity relationship (ER) modeling and database design. It covers collecting requirements, conceptual design, logical design, and physical design. Key aspects of ER modeling are explained, including entities, attributes, relationships, entity types, keys, and conceptual design. The conceptual design shown models entities such as company, department, employee, and their relationships.
This document discusses conceptual data modeling using the entity-relationship (ER) model. It defines key concepts of the ER model including entities, attributes, relationships, entity sets, relationship sets, keys, and ER diagrams. It explains how the ER model is used in the early conceptual design phase of database design to capture the essential data requirements and produce a conceptual schema that can be later mapped to a logical and physical database implementation.
The document discusses key concepts in relational data models including entities, attributes, relationships, and constraints. It provides examples of each concept and explains how they are the basic building blocks used to structure data in a relational database. Specific types of entities, attributes, relationships and their properties are defined, such as one-to-one, one-to-many, and many-to-many relationships. Overall, the document serves as an introduction to fundamental concepts in relational data modeling.
The document discusses the Entity-Relationship (ER) model for conceptual database design. It describes the key components of the ER model including entities, attributes, relationships, and keys. It also explains how the ER model maps to a relational schema and database, including the use of tables, rows, columns, primary keys, foreign keys, and integrity constraints. Referential integrity constraints are defined to link tables through foreign key to primary key relationships.
The document discusses normalization of relational databases. It begins by introducing normalization and its goals of preserving information and minimizing redundancy. It then covers four informal guidelines for relation schema design: clear attribute semantics, reducing redundancy and null values, and avoiding spurious tuples. The document proceeds to define functional dependencies, normal forms including 1NF through BCNF, and multivalued dependencies relevant to 4NF. It provides examples to illustrate database normalization concepts and the process of decomposing relations to eliminate anomalies through various normal forms.
The document contains information about entity-relationship (ER) modeling including:
1. It discusses the key components of an ER model including entities, attributes, relationships, and cardinality.
2. It provides examples of one-to-one, one-to-many, and many-to-many relationships between entities.
3. It describes the different types of attributes such as simple, composite, single-valued, multi-valued, and derived attributes.
Data development involves analyzing, designing, implementing, deploying, and maintaining data solutions to maximize the value of enterprise data. It includes defining data requirements, designing data components like databases and reports, and implementing these components. Effective data development requires collaboration between business experts, data architects, analysts, developers and other roles. The activities of data development follow the system development lifecycle and include data modeling, analysis, design, implementation, and maintenance.
The document discusses data development and data modeling concepts. It describes data development as defining data requirements, designing data solutions, and implementing components like databases, reports, and interfaces. Effective data development requires collaboration between business experts, data architects, analysts and developers. It also outlines the key activities in data modeling including analyzing information needs, developing conceptual, logical and physical data models, designing databases and information products, and implementing and testing the data solution.
This document discusses entity relationship modeling and conceptual database design. It defines conceptual database design as describing the data, relationships between data, and constraints. Entity relationship modeling is introduced as a top-down approach using entity relationship diagrams. Key components of ER diagrams are defined including entities, attributes, relationships, and cardinality. Guidelines are provided for defining these components accurately based on the problem domain. The document stresses modeling the data requirements and avoiding inclusion of business processes.
This document discusses entity relationship modeling and conceptual database design. It defines conceptual database design as describing the data, relationships between data, and constraints. The output is a conceptual data model and data dictionary. Entity relationship modeling is introduced as a top-down approach using entities, attributes, and relationships. The document covers gathering information, defining entities and attributes, and relationship types including one-to-one, one-to-many, and many-to-many. It also discusses cardinality, connectivity, and how to evaluate a good data model.
The document discusses database design process which can be broken down into 5 phases - planning, analysis, design, implementation and maintenance. It describes the conceptual, logical and physical data models. The conceptual model involves entities, attributes and relationships. The logical model maps the conceptual model to tables, fields, primary and foreign keys. The physical model deals with data storage and access. The document also covers entity relationship diagrams, normalization forms and tips for effective ER diagrams.
This document discusses various UML diagrams including class diagrams, use case diagrams, and their advantages and disadvantages. It provides an example class diagram for the abstract factory design pattern. Use case diagrams are used to gather system requirements and show interactions between actors and use cases. They provide an outside view of a system and can be used in both forward and reverse engineering. While useful for requirements analysis, use case diagrams do not describe implementation details.
Object-Oriented Systems Analysis and Design Using UML.pptxXanGwaps
This document discusses object-oriented systems analysis and design using the Unified Modeling Language (UML). It defines object-oriented analysis and design, and explains that UML uses various diagrams to visualize the construction of object-oriented systems. The main components of UML include things, relationships, and diagrams. Key object-oriented concepts like objects, classes, attributes, and methods are also described. Finally, different types of UML diagrams like class, component, deployment, use case and activity diagrams are introduced along with examples.
WBC Entity Relationship and data flow diagramsArshitSood3
This document provides information on entity relationship diagrams (ERDs) and data flow diagrams (DFDs). It defines ERDs and DFDs, lists their key components and symbols. For ERDs, it explains entities, attributes, relationships and provides examples of how to create a simple ERD. For DFDs, it defines the symbols used including external entities, processes, data stores and data flows. It also provides guidelines for developing effective diagrams.
Lab 3 Introduction to the UML - how to create a use case diagramFarah Ahmed
The document discusses use case diagrams and use case modeling. It provides an overview of use case diagrams, including their purpose and components. Key points include:
- Use case diagrams show interactions between actors and the system/software being modeled through use cases. They are used early in development to capture requirements and later to specify system behavior.
- Components of a use case diagram include actors, use cases, and relationships between them like generalization, include, and extend. Actors represent roles that interact with the system while use cases represent system functions/processes.
- Examples of a use case diagram for a vehicle sales system are provided to demonstrate how actors, use cases, and relationships can be modeled visually. Guidance is
The document provides information on entity relationship diagrams (ERDs), including their objectives, components, and how to construct them. An ERD is a graphical representation of entities, attributes, and relationships within a database. It serves as a design tool, documentation, and means to communicate the logical structure. Key aspects covered include identifying entities and attributes, defining relationships and cardinalities, and using standard symbols and notations to draw the ERD.
The document provides an overview of conceptual database design using entity-relationship (ER) modeling. It defines key concepts in ER diagrams like entities, attributes, relationships and their cardinalities. It explains how to model different relationship types like one-to-one, one-to-many and many-to-many. It also covers advanced topics such as weak entities, generalization, specialization and aggregation. The overall purpose is to illustrate how ER diagrams can be used to design databases by visually representing the entities, attributes, and relationships in a domain.
This document discusses data modeling and functional modeling techniques. [1] Data modeling is the process of creating a data model to define and analyze an organization's data requirements. It involves identifying entities, attributes, relationships, and keys. [2] Entity-relationship diagrams are used to graphically represent data models. [3] Functional modeling structures represent the functions and processes within a subject area using techniques like data flow diagrams and functional flow block diagrams.
The document discusses database fundamentals and provides an overview of key concepts including:
- The objectives of learning about database systems and their basic components
- An introduction to Entity Relationship (ER) modeling for conceptual database design
- The different types of database systems including relational, hierarchical, network, and object-oriented
- How to create a database environment using ER modeling to design the structure and relationships of data
The document discusses entity relationship (ER) modeling and database design. It covers collecting requirements, conceptual design, logical design, and physical design. Key aspects of ER modeling are explained, including entities, attributes, relationships, entity types, keys, and conceptual design. The conceptual design shown models entities such as company, department, employee, and their relationships.
Gender and Mental Health - Counselling and Family Therapy Applications and In...PsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
🔥🔥🔥🔥🔥🔥🔥🔥🔥
إضغ بين إيديكم من أقوى الملازم التي صممتها
ملزمة تشريح الجهاز الهيكلي (نظري 3)
💀💀💀💀💀💀💀💀💀💀
تتميز هذهِ الملزمة بعِدة مُميزات :
1- مُترجمة ترجمة تُناسب جميع المستويات
2- تحتوي على 78 رسم توضيحي لكل كلمة موجودة بالملزمة (لكل كلمة !!!!)
#فهم_ماكو_درخ
3- دقة الكتابة والصور عالية جداً جداً جداً
4- هُنالك بعض المعلومات تم توضيحها بشكل تفصيلي جداً (تُعتبر لدى الطالب أو الطالبة بإنها معلومات مُبهمة ومع ذلك تم توضيح هذهِ المعلومات المُبهمة بشكل تفصيلي جداً
5- الملزمة تشرح نفسها ب نفسها بس تكلك تعال اقراني
6- تحتوي الملزمة في اول سلايد على خارطة تتضمن جميع تفرُعات معلومات الجهاز الهيكلي المذكورة في هذهِ الملزمة
واخيراً هذهِ الملزمة حلالٌ عليكم وإتمنى منكم إن تدعولي بالخير والصحة والعافية فقط
كل التوفيق زملائي وزميلاتي ، زميلكم محمد الذهبي 💊💊
🔥🔥🔥🔥🔥🔥🔥🔥🔥
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...TechSoup
Whether you're new to SEO or looking to refine your existing strategies, this webinar will provide you with actionable insights and practical tips to elevate your nonprofit's online presence.
Information and Communication Technology in EducationMJDuyan
(𝐓𝐋𝐄 𝟏𝟎𝟎) (𝐋𝐞𝐬𝐬𝐨𝐧 2)-𝐏𝐫𝐞𝐥𝐢𝐦𝐬
𝐄𝐱𝐩𝐥𝐚𝐢𝐧 𝐭𝐡𝐞 𝐈𝐂𝐓 𝐢𝐧 𝐞𝐝𝐮𝐜𝐚𝐭𝐢𝐨𝐧:
Students will be able to explain the role and impact of Information and Communication Technology (ICT) in education. They will understand how ICT tools, such as computers, the internet, and educational software, enhance learning and teaching processes. By exploring various ICT applications, students will recognize how these technologies facilitate access to information, improve communication, support collaboration, and enable personalized learning experiences.
𝐃𝐢𝐬𝐜𝐮𝐬𝐬 𝐭𝐡𝐞 𝐫𝐞𝐥𝐢𝐚𝐛𝐥𝐞 𝐬𝐨𝐮𝐫𝐜𝐞𝐬 𝐨𝐧 𝐭𝐡𝐞 𝐢𝐧𝐭𝐞𝐫𝐧𝐞𝐭:
-Students will be able to discuss what constitutes reliable sources on the internet. They will learn to identify key characteristics of trustworthy information, such as credibility, accuracy, and authority. By examining different types of online sources, students will develop skills to evaluate the reliability of websites and content, ensuring they can distinguish between reputable information and misinformation.
2. ISOM
Structure of this semester
Database
Fundamentals
Relational
Model
Normalization
Conceptual
Modeling
Query
Languages
Advanced
SQL
Transaction
Management
Java DB
Applications –
JDBC
Data
Mining
0. Intro 1. Design 3. Applications 4. Advanced
Topics
Newbie Users Professionals
Designers
MIS710
2. Querying
Developers
3. ISOM
Today’s Buzzwords
• Data Modeling
• Process Modeling
• Data Flow Diagrams
• Entity-Relationship Models
• Cardinality and Participation Constraints
• Weak Entities
• Generalization Hierarchies
4. ISOM
So, where are we?
Analysis
Design
Implementation
Testing
Installation
Proposal
Requirements
Normalization
Modeling
Schema design
Tables
Indexes
Queries
Optimization
5. ISOM
Objectives of this lecture
• Describe the process inherent in a system
• Present a system process in a concise
diagrammatic form
• Describe the system data in terms of
conceptual objects and relationships
between them
• Translate such conceptual descriptions into
actual tables
6. ISOM
Benefits of Conceptual Design
• Projects without a strong conceptual design
are more likely to fail
• Design is one of the most important aspects
of project and business process quality
management standards:
ISO 9000
CMM
• Designs are typically network structured, not
flat like databases
• Literature in Relational Model shows Benefits
of Conceptual Design in user performance
7. ISOM
Database Modeling
• Process Models
Overview of process components
Inputs and outputs of different processes
Data sources and destinations
Mode of data flow between processes
• Data Models
Model only the data, no process
Different components of the data
Relationships between primary data
components
8. ISOM
Motivation - why model?
• If you cannot model, you cannot
comprehend, and if you cannot
comprehend, you cannot control
• Dual goal:
Analysis and conceptualization
Presentation
9. ISOM
Models, method, and media
• A model
describes business or organization
separates operation from technology
• Good modeling requires good methodologies
encompass data, process, decisions
richly expressive and provide for levels of analysis
simple representation
• Modeling medium
same term as painting medium, e.g., oil, pastel
both formal and visual
10. ISOM
Data Flow medium
• Notation:
Source: box
Process (transform): box with rounded corners
File (store): box open on right
Destination: box
Flow: arrow
• Structure:
“Explosion” of processes (recursion on structure)
12. ISOM
DFD rules
• Start with a very basic overview of complete
process, showing only the most important
processes, sources, destinations, and files
• Recursively “explode” each of the processes
(note: processes only!):
preserve inputs and outputs
preserve file accesses
new processes, files and sources/destinations can
be created, but cannot be used from previous
levels if not directly used in the previous level
13. ISOM
Overview of Data Modeling
• Conceptual design: (ER Model is used at this
stage.)
What are the entities and relationships in the
enterprise?
What information about these entities and
relationships should we store in the database?
What are the integrity constraints or business rules
that hold?
A database `schema’ in the ER Model can be
represented pictorially (ER diagrams).
Can map an ER diagram into a relational schema.
14. ISOM
ER Model Basics
• Entity: Real-world object distinguishable from
other objects. An entity is described (in DB)
using a set of attributes.
• Entity Set: A collection of similar entities. E.g.,
all employees.
All entities in an entity set have the same set of
attributes. (Until we consider ISA hierarchies,
anyway!)
Each entity set has a key.
Each attribute has a domain.
Employees
ssn
name
lot
15. ISOM
ER Model Basics (Contd.)
• Relationship: Association among two or more entities. E.g.,
Attishoo works in Pharmacy department.
• Relationship Set: Collection of similar relationships.
An n-ary relationship set R relates n entity sets E1 ... En; each
relationship in R involves entities e1 E1, ..., en En
• Same entity set could participate in different relationship sets,
or in different “roles” in same set.
lot
dname
budget
did
since
name
Works_In Departments
Employees
ssn
Reports_To
lot
name
Employees
subor-
dinate
super-
visor
ssn
16. ISOM
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 value in Departments table must appear in a
row of the Manages table (with a non-null ssn value!)
lot
name dname
budget
did
since
name dname
budget
did
since
Manages
since
Departments
Employees
ssn
Works_In
0,M 1,M
1,1 1,M
17. ISOM
Structural Constraints
• Participation
Do all entity instances participate in at least
one relationship instance?
• Cardinality
How many relationship instances can an
entity instance participate in?
(min,max) (min,max)
Participation Cardinality
0 -- Partial 1 -- one
1 -- Total (Mandatory) M -- more than one
18. ISOM
Weak Entities
• A weak entity can be identified uniquely only by
considering the primary key of another (owner) entity.
Owner entity set and weak entity set must participate in a one-
to-many relationship set (one owner, many weak entities).
Weak entity set must have total participation in this identifying
relationship set.
lot
name
age
pname
Dependents
Employees
ssn
Policy
cost
19. ISOM
ISA (`is a’) Hierarchies
Contract_Emps
name
ssn
Employees
lot
hourly_wages
Hourly_Emps
contractid
hours_worked
As in C++, or other
PLs, attributes are
inherited.
If we declare A ISA B,
every A entity is also
considered to be a B
entity.
• Overlap constraints: Can Joe be an Hourly_Emps as well as a
Contract_Emps entity? (Allowed/disallowed)
• Covering constraints: Does every Employees entity also have
to be an Hourly_Emps or a Contract_Emps entity? (Yes/no)
• Reasons for using ISA:
To add descriptive attributes specific to a subclass.
To identify entitities that participate in a relationship.
20. ISOM
Conceptual Design Using the
ER Model
• Design choices:
Should a concept be modeled as an entity or an attribute?
Should a concept be modeled as an entity or a relationship?
Identifying relationships: Binary or ternary? Aggregation?
• Constraints in the ER Model:
A lot of data semantics can (and should) be captured.
But some constraints cannot be captured in ER diagrams.
21. ISOM
Entity vs. Attribute
• Should address be an attribute of Employees or an
entity (connected to Employees by a relationship)?
• Depends upon the use we want to make of address
information, and the semantics of the data:
If we have several addresses per employee,
address must be an entity (since attributes cannot
be set-valued).
If the structure (city, street, etc.) is important, e.g.,
we want to retrieve employees in a given city,
address must be modeled as an entity (since
attribute values are atomic).
22. ISOM
Converting model to design
• Many-to-many relationships
Each entity becomes a table
The relationship becomes a table
PKs of entities becomes FKs in the
relationship
Student( )
Course( )
Takes( )
takes
Student Course
StudentID
Name
Class
Major
Courseno
Coursename
Credits
semester
0:M 0:M
23. ISOM
Model to design (contd.)
• 1-Many relationships
Entities become tables
Copy PK of multi-participant to single
participant
Copy attributes of relationship to single
participant (why?)
includes
Computer Part
ComputerID
Make
Model
Year
Partno
Type
Make
installdate
1:M 0:1
24. ISOM
Model to design (contd.)
• 1-1 relationships
Entities can be merged, or
copy PK of any entity to the other
• Generalization
Copy PK of parent entity to child entity
• Weak entities
Copy PK of controlling entity to weak
entity
25. ISOM
Summary of Conceptual Design
• Conceptual design follows requirements analysis,
Yields a high-level description of data to be stored
• ER model popular for conceptual design
Constructs are expressive, close to the way people think
about their applications.
• Basic constructs: entities, relationships, and
attributes (of entities and relationships).
• Some additional constructs: weak entities, ISA
hierarchies, and aggregation.
• Note: There are many variations on ER model.
26. ISOM
Summary of ER (Contd.)
• Several kinds of integrity constraints can be
expressed in the ER model: key constraints,
participation constraints, and
overlap/covering constraints for ISA
hierarchies. Some foreign key constraints are
also implicit in the definition of a relationship
set.
Some constraints (notably, functional
dependencies) cannot be expressed in the ER
model.
Constraints play an important role in determining
the best database design for an enterprise.
27. ISOM
Summary of ER (Contd.)
• ER design is subjective. There are often many ways
to model a given scenario! Analyzing alternatives can
be tricky, especially for a large enterprise. Common
choices include:
• Entity vs. attribute, entity vs. relationship, binary or n-
ary relationship, whether or not to use ISA hierarchies
• Ensuring good database design: resulting relational
schema should be analyzed and refined further. FD
information and normalization techniques are
especially useful.