SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
Database Design




Victor Matos
                  1
Phases of Database Design
          Data
       Requirements
                                 Conceptual   design begins with the
Specification of requirements
         and results
                                  collection of requirements and results
        Conceptual
                                  needed from the database (ER Diag.)
         Design
                                 Logical schema is a description of the
    Conceptual Schema             structure of the database (Relational,
          Logical                 Network, etc.)
          Design
                                 Physical schema is a description of
      Logical Schema
                                  the implementation (programs, tables,
          Physical
          Design
                                  dictionaries, catalogs

     Physical Schema
                                                                       2
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


                                                3
Conceptual model:
Entity-Relationship Diagrams
   Entities    represent classes of real-world
    objects. Person, Students, Projects, Courses
    are entities of a University database
   Relationships represent interactions
    between two or more entities
            N                   1

                    Lives_In

   Person                           City

                   Is_Born_In
            N                   1                  4
Example:
   Every employee works in at least one
    project
   Every project has employees working on it.



     EMPLOYEE
                N              N   PROJECT
        SSN
                    WORKS_ON        Name
       Name
                                     Code
       Salary




                                                 5
Higher-Order Relationships
   A relationship may involve more than two
   entities

   Course         Meets        Classroom



                   Day

                                              6
Recursive relationships
    Relationships could be mapped from one
    entity to itself
                 Manager_Of
                     1


         Employee             Manages

                     N
               Subordinate_To
                                             7
Attributes
 Attributes represent elementary properties of the
 entities or relationships. The stored data will be
 kept as values of the attributes
                      Lives_In
                 N                   1



                                               CITY
    PERSON             Moving_Date
                                               Name
       Ssn
                                              Country
      Name             Birth_Date

    Profession                               Elevation
                                             Population

                     Is_Born_In
                 N                       1                8
Generalizations
• An entity could be seen from many different viewpoints
• Each viewpoint defines a set of roles in a generalization
• Example below uses SEX to classify the object “Person”
                           PERSON
                             Ssn
                            Name
                           Address




            MAN                             FEMALE
         Draft_Status                     Maiden_Name

                                                              9
Generalizations
  A   classification could be disjoint or
    overlapping
   An  entity could have more than one
    classification                      PERSON
                                          Ssn
                                         Name
                                        Address




                        SEX                                 JOB




                                              Full_Time            Part_Time
            MAN                 FEMALE
                                            Annual_Salary          Hour_Rate
         Draft_Status         Maiden_Name
                                             Department           Weekly_Hours
                                                                                 10
Example: Department Store                1/2


  A   department store operates in several
    cities
   In a city there is one headquarter
    coordinating the local operations
   A city may have several stores
   Stores hold any amount of items
   Customers place their orders for any
    number of items to a given store
  GOAL: Optimize shopping in each city         11
Example: Department Store                                                              2/2



  STORES                                     1       CITIES
  Store ID     N          LOCATED                  City Name
  Address                    IN                       State
 Manager ID                                      HeadQtr Address




       N
                            N
                                                                        CUSTOMER
                                                                       Customer Name
                                                                          Address
   HOLD                   IN-CITIES
                                                                       Phone Number
  Qty Held               Qty_in_cities



        N                   N
                                                                           1



  ITEMS
  Item ID          N                     N          ORDERS         N
                       ITEMS ORDERED
 Description                                      Order Number            PLACE
                          Qty Ordered
    Size                                           Order Date
    Color
                                                                                             12
Example: University Database
   Professors  work for only one department
   Departments have many professors
   Each course is taught by only one professor
   Students make a plan or program of study
   A course could meet in several rooms/times
   Graduate students must have an advisor
   Cities are categorized as resident/BirthPlace
   Visiting prof. need an End/Start date
                                               13
University Database
   CITY         1                        N         PERSON                      DEPARTMENT        1
   Name                BIRTH_PLACE                 LastName                       Name                    Belongs_To
   State                                              Age                         Phone
      N
                       N
 RESIDENT                                                                                                       N


                                                                                                     PROFESSOR
                                     STUDENT                                                         TenureStatus
                                                                                                        Title



            N
                                     N
                                                                                            1

                                                                                                                    VISITING_
     ENROLLED                        PLANNED                                     N                                PROFESSOR
                                                         GRADUATE_STUDENT             ADVISED_BY                Start_Appointment
      Semester                       Semester
       Grade                                                                                                    End_Appointment



                                     N
            N
                                     COURSE
                                                                           N                          1
                                        Title                                        TAUGHT_BY
                                     Description                                      Semester
                                      Credits
                                             1
                TIME       N                         N           ROOM
                 Day                  MEETS                   RoomNumber
                Hour                                            Building



                                                                                                 University database                14
Soccer Database
  A  team has players, one coach, fans
   Teams play according to a schedule
   Teams need to practice in a Stadium
   Attendance and scores must be recorded




                                             15
Soccer Database
                                   PERSON
                                     Ssn
                                    Name
                                   Address




             FAN
                                   PLAYER                     COACH
            Name
                                 Uniform_Size             Personal Record
           Address
                                  Shoe_Size               Years Experience
          Favorite Bar

                  N                     N                          1

                                   PLAYS
          SUPPORTS                                          MANAGES
                                   _FOR


                                        1                          1
                   N
                                    TEAM
                                    Name
                                   Location
                                    Phone
                                                                              N


                             N                      N                  PRACTICES
                                   PLAY_
                                  AGAINST

                                                                              N


                                   GAME
                                                                        STADIUM
                                   Number               TAKES
                                                                          Name
       ATTENDS                   Attendance             PLACE
                                                                         Address
   N                     N
                                 Final Score    N         AT       1     Capacity
                                                                                    16
                                    Date
Research Project Database
   Some  employees are researchers
   Every project has a leader investigator
   Every project must be funded by an agency
   A project may include several topics
   A topic could appear in several projects
   Researchers must produce report(s)
   Each employee must have a supervisor

                                            17
Research Projects Database
                              RESEARCH REPORT
                                   Number
                                    Title
                                                                         1   SUPERVISE   N
        N                               N                                        S

  ADDRESSES                      PRODUCES

        N                               N
                                                                             EMPLOYEE
                                 RESEARCH              PRINCIPAL               SSN
RESEARCH TOPIC   N        N                          INVESTIGATOR1             Name
                                  PROJECT                            1
     Code            ON                          N                              Title
                                    Name
     Name
                                    Code

                                                        WORKS
                                        N                _ON
                                                 N

                                 FUNDED_BY
                                                            N
                                   Amount
                                    Date
                                   Grant#

                                        N


                                  AGENCY
                                    Name
                                   Address
                                Contact Person                                               18
Contract-Supplies System                  1/3


  A   company negotiates contracts with
    suppliers to provide certain amount of items
    at a fixed price
   Orders are placed against any of the already
    negotiated contracts
   A contract could provide items to any
    number of orders


                                                19
Contract-Supplies System                    2/3


   An  order may include any number of items
    negotiated in the contract
   Orders should not exceed the maximum
    amount of items quoted in the contract
   All items in an order must be provided as
    part of a single contract and a single project



                                                  20
Contract-Supplies System                                                        3/3

      SUPPLIERS
     Supplier Number
         Name
        Address


              1



                                                                PROJECTS
      NEGOTIATE
                                                               Project Number
     Date of Contract
                                                                Project Data


              N
                                                                  1
      CONTRACTS         1                 N
     Contract Number        SUPPLIED AS
           Text
                                                                NEEDED BY

               N


       TO SUPPLY                                                 N
      Contract Price
     Contract Amount


              N

                                                 ORDERS
         ITEMS          N                 N
                             MADE OF           Order Number
      Item Number
                             Order QTY         Date Required
       Description
                                              Date Completed
                                                                                      21
Manufacturing: Requisitions              1/3


   Projects are broken into tasks
   Tasks are assigned to departments
   A task is created for one project and
    assigned to one department
   Requisitions are made for projects
   Each requisition could ask for any number
    of items

                                                22
Manufacturing: Requisitions              2/3


   Each  requisition is for one project and is
    made to one supplier
   Items could be: equipment or materials and
    are coded in a similar way
   Suppliers send periodic price notices to
    advise the company of any changes in their
    prices


                                               23
Manufacturing: Requisitions                                              3/3

                PROJECTS         1                 N      TASKS
               Project Number            MADE OF        Task Number
                Project Data                             Task Data


                     1                                    1


                 REQUESTS                                      FOR


                                                          N
                     N

                                                        SUPPLIERS
                REQUISITION
                                 N                 1      Supplier
                 Item Number               FROM
                                                          Number
                Qty Requested
                                                        Supplier Data


                     N                                     1

                 CONTAINS                                  SENDS


                     N                                     N

                    ITEMS        1                 N   PRICE ADVICE
                Item Number              CHANGES             Price
                  Item Data                             Effective Date


                                MATERIAL ITEM
    EQUIPMENT ITEM
                                    Code
         Code
                                  Description
       Description
                                   Weight                                      24
                                  Container
Job-Shop Accounting System              1/4


   The  system is used by a company that
    manufactures special-purpose assemblies
    for customers
   To manufacture assemblies the company
    creates a sequence of processes (steps)
   Each process is supervised by a department
   Assume there are three type of processes:
    PAINT, FIT, CUT
                                              25
Job-Shop Accounting System               2/4


   During  manufacturing an assembly could
    pass through any sequence of processes, in
    any order; it may pass through the same
    process more than once
   A unique Job# is given to any new
    assembly.
   Costs and started-terminated dates must be
    recorded
                                                 26
Job-Shop Accounting System               3/4


   Anaccounting system is used to keep track
   expenditure for each:
          DEPT,
          PROCESS,

          ASSEMBLY


   Asa job proceeds, cost transactions can be
   recorded against it.



                                                 27
Job-Shop Accounting System                                                                      4/4
                CUSTOMER                                                         ACCOUNTS
                     S                                                            Account ID
                Customer ID                                                          Date
                  Address                                                        Established
                                               A1

                                                                  ASSEMBLY         DEPT         PROCESS
                 ORDERS                                           ACCOUNTS       ACCOUNTS      ACCOUNTS
                                                           T1
                                                                   Account 1      Account 2     Account 3
                                                                    Details        Details       Details
                                TRANSACTIONS
                                                           T2
                ASSEMBLIE                                                            A2
                     S
                Assembly ID                                T3
                Date Ordered                                                    DEPARTMENT
                   Details                                                            S
                                  ACTIVITY                                       Dept Number
                 MADE AS                                                          Dept Data


                                                                                  USED IN          A3
                   JOBS
                Job Number
                Starting Date                       USES
                Ending Date                                                     PROCESSES
                 Total Cost                                                      Process ID
                                                                                Process Data
 CUT JOBS
                                PAINT JOBS
 Cut Job ID
                 FIT JOBS       Paint Job ID
Machine type
                 Fit Job ID        Color
    used
                 Labor time       Volume                                                          CUT PROC
Material used                                                   PAINT PROC       FIT PROC
                                 Labor time                                                       Cut Proc ID   28
  Laor time                                                     Paint Proc ID    Fit Proc ID
                                                                                                 Cuttong Type
                                                                Paint Method      Fit Type
                                                                                                 Machine Type

Weitere ähnliche Inhalte

Was ist angesagt?

Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship ModelNeil Neelesh
 
Self-Diagnosis Hospital Management System
Self-Diagnosis Hospital Management SystemSelf-Diagnosis Hospital Management System
Self-Diagnosis Hospital Management SystemNeelam Priya
 
Dbms 7: ER Diagram Design Issue
Dbms 7: ER Diagram Design IssueDbms 7: ER Diagram Design Issue
Dbms 7: ER Diagram Design IssueAmiya9439793168
 
School admission process management system (Documention)
School admission process management system (Documention)School admission process management system (Documention)
School admission process management system (Documention)Shital Kat
 
Entity (types, attibute types)
Entity (types, attibute types)Entity (types, attibute types)
Entity (types, attibute types)Zaheer Soomro
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)tameemyousaf
 
Class viii ch-7 visual basic 2008
Class  viii ch-7 visual basic 2008Class  viii ch-7 visual basic 2008
Class viii ch-7 visual basic 2008jessandy
 
Introduction to Web Programming - first course
Introduction to Web Programming - first courseIntroduction to Web Programming - first course
Introduction to Web Programming - first courseVlad Posea
 
Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Harshil Darji
 
Socket programming in Java (PPTX)
Socket programming in Java (PPTX)Socket programming in Java (PPTX)
Socket programming in Java (PPTX)UC San Diego
 
Manufacturing and sales management system
Manufacturing and sales management systemManufacturing and sales management system
Manufacturing and sales management systemSmit Patel
 
Attendance management system project report.
Attendance management system project report.Attendance management system project report.
Attendance management system project report.Manoj Kumar
 

Was ist angesagt? (20)

Arrays in PHP
Arrays in PHPArrays in PHP
Arrays in PHP
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Self-Diagnosis Hospital Management System
Self-Diagnosis Hospital Management SystemSelf-Diagnosis Hospital Management System
Self-Diagnosis Hospital Management System
 
Dbms 7: ER Diagram Design Issue
Dbms 7: ER Diagram Design IssueDbms 7: ER Diagram Design Issue
Dbms 7: ER Diagram Design Issue
 
School admission process management system (Documention)
School admission process management system (Documention)School admission process management system (Documention)
School admission process management system (Documention)
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 
Entity (types, attibute types)
Entity (types, attibute types)Entity (types, attibute types)
Entity (types, attibute types)
 
Different data models
Different data modelsDifferent data models
Different data models
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
Class viii ch-7 visual basic 2008
Class  viii ch-7 visual basic 2008Class  viii ch-7 visual basic 2008
Class viii ch-7 visual basic 2008
 
dbms er model
dbms er modeldbms er model
dbms er model
 
Introduction to Web Programming - first course
Introduction to Web Programming - first courseIntroduction to Web Programming - first course
Introduction to Web Programming - first course
 
Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)
 
Assemblies
AssembliesAssemblies
Assemblies
 
Socket programming in Java (PPTX)
Socket programming in Java (PPTX)Socket programming in Java (PPTX)
Socket programming in Java (PPTX)
 
Manufacturing and sales management system
Manufacturing and sales management systemManufacturing and sales management system
Manufacturing and sales management system
 
HTTP
HTTPHTTP
HTTP
 
Chapter2 j2ee
Chapter2 j2eeChapter2 j2ee
Chapter2 j2ee
 
Attendance management system project report.
Attendance management system project report.Attendance management system project report.
Attendance management system project report.
 

Andere mochten auch

Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)tameemyousaf
 
05 si(systems analysis and design )
05 si(systems analysis and design )05 si(systems analysis and design )
05 si(systems analysis and design )Nurdin Al-Azies
 
University Database Management Project
University Database Management Project University Database Management Project
University Database Management Project Kavi
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagramMudasir Syed
 
Modelling System Requirements: Events & Things
Modelling System Requirements: Events & ThingsModelling System Requirements: Events & Things
Modelling System Requirements: Events & Thingswmomoni
 
Product and sevices management system
Product and sevices management systemProduct and sevices management system
Product and sevices management systemVinod Gurram
 
Dana Clinic Management System (DCMS)
Dana Clinic Management System (DCMS)Dana Clinic Management System (DCMS)
Dana Clinic Management System (DCMS)zaherdouri
 
Double entry document, Analysis and Design
Double entry document, Analysis and DesignDouble entry document, Analysis and Design
Double entry document, Analysis and DesignMohsin Yaseen
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagramHaseeb
 
Anpr based licence plate detection report
Anpr  based licence plate detection reportAnpr  based licence plate detection report
Anpr based licence plate detection reportsomchaturvedi
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramGaurav Gupta
 
Chapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemChapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemEddyzulham Mahluzydde
 
Project report On MSM (Mobile Shop Management)
Project report On MSM (Mobile Shop Management)Project report On MSM (Mobile Shop Management)
Project report On MSM (Mobile Shop Management)Dinesh Jogdand
 
MATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURESMATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURESParas Joshi
 

Andere mochten auch (16)

Erd examples
Erd examplesErd examples
Erd examples
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
05 si(systems analysis and design )
05 si(systems analysis and design )05 si(systems analysis and design )
05 si(systems analysis and design )
 
University Database Management Project
University Database Management Project University Database Management Project
University Database Management Project
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagram
 
Modelling System Requirements: Events & Things
Modelling System Requirements: Events & ThingsModelling System Requirements: Events & Things
Modelling System Requirements: Events & Things
 
Product and sevices management system
Product and sevices management systemProduct and sevices management system
Product and sevices management system
 
Dana Clinic Management System (DCMS)
Dana Clinic Management System (DCMS)Dana Clinic Management System (DCMS)
Dana Clinic Management System (DCMS)
 
Double entry document, Analysis and Design
Double entry document, Analysis and DesignDouble entry document, Analysis and Design
Double entry document, Analysis and Design
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
Anpr based licence plate detection report
Anpr  based licence plate detection reportAnpr  based licence plate detection report
Anpr based licence plate detection report
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Erd
ErdErd
Erd
 
Chapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemChapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management System
 
Project report On MSM (Mobile Shop Management)
Project report On MSM (Mobile Shop Management)Project report On MSM (Mobile Shop Management)
Project report On MSM (Mobile Shop Management)
 
MATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURESMATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURES
 

Ähnlich wie 1869495 er diagrams

Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship modelJafar Nesargi
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxprosofts1
 
Introduction of Database Design and Development
Introduction of Database Design and DevelopmentIntroduction of Database Design and Development
Introduction of Database Design and DevelopmentEr. Nawaraj Bhandari
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Modeloudesign
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...Mustafa Kamel Mohammadi
 
Cn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingCn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingg30162363
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2sadeenedian08
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2Mukund Trivedi
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)Mukund Trivedi
 
Unit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdfUnit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdfMaryJacob24
 
ERD with complete knowledge
ERD with complete knowledgeERD with complete knowledge
ERD with complete knowledgeAsma Rasool
 

Ähnlich wie 1869495 er diagrams (20)

Database Modeling
Database ModelingDatabase Modeling
Database Modeling
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
Chapter3
Chapter3Chapter3
Chapter3
 
Chapter3
Chapter3Chapter3
Chapter3
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptx
 
Introduction of Database Design and Development
Introduction of Database Design and DevelopmentIntroduction of Database Design and Development
Introduction of Database Design and Development
 
Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4
 
Chap08
Chap08Chap08
Chap08
 
Database design
Database designDatabase design
Database design
 
27 fcs157al3
27 fcs157al327 fcs157al3
27 fcs157al3
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
Cn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingCn presentation on the topic called as re modelling
Cn presentation on the topic called as re modelling
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)
 
Unit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdfUnit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdf
 
ERD with complete knowledge
ERD with complete knowledgeERD with complete knowledge
ERD with complete knowledge
 
Unit 02 dbms
Unit 02 dbmsUnit 02 dbms
Unit 02 dbms
 
7494607
74946077494607
7494607
 

Kürzlich hochgeladen

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Kürzlich hochgeladen (20)

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

1869495 er diagrams

  • 2. Phases of Database Design Data Requirements  Conceptual design begins with the Specification of requirements and results collection of requirements and results Conceptual needed from the database (ER Diag.) Design  Logical schema is a description of the Conceptual Schema structure of the database (Relational, Logical Network, etc.) Design  Physical schema is a description of Logical Schema the implementation (programs, tables, Physical Design dictionaries, catalogs Physical Schema 2
  • 3. 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 3
  • 4. Conceptual model: Entity-Relationship Diagrams  Entities represent classes of real-world objects. Person, Students, Projects, Courses are entities of a University database  Relationships represent interactions between two or more entities N 1 Lives_In Person City Is_Born_In N 1 4
  • 5. Example:  Every employee works in at least one project  Every project has employees working on it. EMPLOYEE N N PROJECT SSN WORKS_ON Name Name Code Salary 5
  • 6. Higher-Order Relationships A relationship may involve more than two entities Course Meets Classroom Day 6
  • 7. Recursive relationships Relationships could be mapped from one entity to itself Manager_Of 1 Employee Manages N Subordinate_To 7
  • 8. Attributes Attributes represent elementary properties of the entities or relationships. The stored data will be kept as values of the attributes Lives_In N 1 CITY PERSON Moving_Date Name Ssn Country Name Birth_Date Profession Elevation Population Is_Born_In N 1 8
  • 9. Generalizations • An entity could be seen from many different viewpoints • Each viewpoint defines a set of roles in a generalization • Example below uses SEX to classify the object “Person” PERSON Ssn Name Address MAN FEMALE Draft_Status Maiden_Name 9
  • 10. Generalizations A classification could be disjoint or overlapping  An entity could have more than one classification PERSON Ssn Name Address SEX JOB Full_Time Part_Time MAN FEMALE Annual_Salary Hour_Rate Draft_Status Maiden_Name Department Weekly_Hours 10
  • 11. Example: Department Store 1/2 A department store operates in several cities  In a city there is one headquarter coordinating the local operations  A city may have several stores  Stores hold any amount of items  Customers place their orders for any number of items to a given store GOAL: Optimize shopping in each city 11
  • 12. Example: Department Store 2/2 STORES 1 CITIES Store ID N LOCATED City Name Address IN State Manager ID HeadQtr Address N N CUSTOMER Customer Name Address HOLD IN-CITIES Phone Number Qty Held Qty_in_cities N N 1 ITEMS Item ID N N ORDERS N ITEMS ORDERED Description Order Number PLACE Qty Ordered Size Order Date Color 12
  • 13. Example: University Database  Professors work for only one department  Departments have many professors  Each course is taught by only one professor  Students make a plan or program of study  A course could meet in several rooms/times  Graduate students must have an advisor  Cities are categorized as resident/BirthPlace  Visiting prof. need an End/Start date 13
  • 14. University Database CITY 1 N PERSON DEPARTMENT 1 Name BIRTH_PLACE LastName Name Belongs_To State Age Phone N N RESIDENT N PROFESSOR STUDENT TenureStatus Title N N 1 VISITING_ ENROLLED PLANNED N PROFESSOR GRADUATE_STUDENT ADVISED_BY Start_Appointment Semester Semester Grade End_Appointment N N COURSE N 1 Title TAUGHT_BY Description Semester Credits 1 TIME N N ROOM Day MEETS RoomNumber Hour Building University database 14
  • 15. Soccer Database A team has players, one coach, fans  Teams play according to a schedule  Teams need to practice in a Stadium  Attendance and scores must be recorded 15
  • 16. Soccer Database PERSON Ssn Name Address FAN PLAYER COACH Name Uniform_Size Personal Record Address Shoe_Size Years Experience Favorite Bar N N 1 PLAYS SUPPORTS MANAGES _FOR 1 1 N TEAM Name Location Phone N N N PRACTICES PLAY_ AGAINST N GAME STADIUM Number TAKES Name ATTENDS Attendance PLACE Address N N Final Score N AT 1 Capacity 16 Date
  • 17. Research Project Database  Some employees are researchers  Every project has a leader investigator  Every project must be funded by an agency  A project may include several topics  A topic could appear in several projects  Researchers must produce report(s)  Each employee must have a supervisor 17
  • 18. Research Projects Database RESEARCH REPORT Number Title 1 SUPERVISE N N N S ADDRESSES PRODUCES N N EMPLOYEE RESEARCH PRINCIPAL SSN RESEARCH TOPIC N N INVESTIGATOR1 Name PROJECT 1 Code ON N Title Name Name Code WORKS N _ON N FUNDED_BY N Amount Date Grant# N AGENCY Name Address Contact Person 18
  • 19. Contract-Supplies System 1/3 A company negotiates contracts with suppliers to provide certain amount of items at a fixed price  Orders are placed against any of the already negotiated contracts  A contract could provide items to any number of orders 19
  • 20. Contract-Supplies System 2/3  An order may include any number of items negotiated in the contract  Orders should not exceed the maximum amount of items quoted in the contract  All items in an order must be provided as part of a single contract and a single project 20
  • 21. Contract-Supplies System 3/3 SUPPLIERS Supplier Number Name Address 1 PROJECTS NEGOTIATE Project Number Date of Contract Project Data N 1 CONTRACTS 1 N Contract Number SUPPLIED AS Text NEEDED BY N TO SUPPLY N Contract Price Contract Amount N ORDERS ITEMS N N MADE OF Order Number Item Number Order QTY Date Required Description Date Completed 21
  • 22. Manufacturing: Requisitions 1/3  Projects are broken into tasks  Tasks are assigned to departments  A task is created for one project and assigned to one department  Requisitions are made for projects  Each requisition could ask for any number of items 22
  • 23. Manufacturing: Requisitions 2/3  Each requisition is for one project and is made to one supplier  Items could be: equipment or materials and are coded in a similar way  Suppliers send periodic price notices to advise the company of any changes in their prices 23
  • 24. Manufacturing: Requisitions 3/3 PROJECTS 1 N TASKS Project Number MADE OF Task Number Project Data Task Data 1 1 REQUESTS FOR N N SUPPLIERS REQUISITION N 1 Supplier Item Number FROM Number Qty Requested Supplier Data N 1 CONTAINS SENDS N N ITEMS 1 N PRICE ADVICE Item Number CHANGES Price Item Data Effective Date MATERIAL ITEM EQUIPMENT ITEM Code Code Description Description Weight 24 Container
  • 25. Job-Shop Accounting System 1/4  The system is used by a company that manufactures special-purpose assemblies for customers  To manufacture assemblies the company creates a sequence of processes (steps)  Each process is supervised by a department  Assume there are three type of processes: PAINT, FIT, CUT 25
  • 26. Job-Shop Accounting System 2/4  During manufacturing an assembly could pass through any sequence of processes, in any order; it may pass through the same process more than once  A unique Job# is given to any new assembly.  Costs and started-terminated dates must be recorded 26
  • 27. Job-Shop Accounting System 3/4  Anaccounting system is used to keep track expenditure for each:  DEPT,  PROCESS,  ASSEMBLY  Asa job proceeds, cost transactions can be recorded against it. 27
  • 28. Job-Shop Accounting System 4/4 CUSTOMER ACCOUNTS S Account ID Customer ID Date Address Established A1 ASSEMBLY DEPT PROCESS ORDERS ACCOUNTS ACCOUNTS ACCOUNTS T1 Account 1 Account 2 Account 3 Details Details Details TRANSACTIONS T2 ASSEMBLIE A2 S Assembly ID T3 Date Ordered DEPARTMENT Details S ACTIVITY Dept Number MADE AS Dept Data USED IN A3 JOBS Job Number Starting Date USES Ending Date PROCESSES Total Cost Process ID Process Data CUT JOBS PAINT JOBS Cut Job ID FIT JOBS Paint Job ID Machine type Fit Job ID Color used Labor time Volume CUT PROC Material used PAINT PROC FIT PROC Labor time Cut Proc ID 28 Laor time Paint Proc ID Fit Proc ID Cuttong Type Paint Method Fit Type Machine Type