SlideShare una empresa de Scribd logo
1 de 28
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

Android graphics
Android graphicsAndroid graphics
Android graphics
Krazy Koder
 
Design patterns ppt
Design patterns pptDesign patterns ppt
Design patterns ppt
Aman Jain
 
Client Server Architecture
Client Server ArchitectureClient Server Architecture
Client Server Architecture
Rence Montanes
 

La actualidad más candente (20)

Uml
UmlUml
Uml
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in android
 
Android graphics
Android graphicsAndroid graphics
Android graphics
 
Design patterns ppt
Design patterns pptDesign patterns ppt
Design patterns ppt
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Design Patterns - General Introduction
Design Patterns - General IntroductionDesign Patterns - General Introduction
Design Patterns - General Introduction
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training session
 
Node js for beginners
Node js for beginnersNode js for beginners
Node js for beginners
 
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
Mvc vs mvp vs mvvm  a guide on architecture presentation patternsMvc vs mvp vs mvvm  a guide on architecture presentation patterns
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
 
Ooad ppt
Ooad pptOoad ppt
Ooad ppt
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentation
 
.Net Core
.Net Core.Net Core
.Net Core
 
Oop Presentation
Oop PresentationOop Presentation
Oop Presentation
 
Client Server Architecture
Client Server ArchitectureClient Server Architecture
Client Server Architecture
 
Chapter20 object oriented analysis and design
Chapter20 object oriented analysis and designChapter20 object oriented analysis and design
Chapter20 object oriented analysis and design
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagrams
 
Software requirement & specification .pptx
Software requirement & specification .pptxSoftware requirement & specification .pptx
Software requirement & specification .pptx
 
Let us understand design pattern
Let us understand design patternLet us understand design pattern
Let us understand design pattern
 

Destacado

Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
Modelling System Requirements: Events & Things
Modelling System Requirements: Events & ThingsModelling System Requirements: Events & Things
Modelling System Requirements: Events & Things
wmomoni
 
Product and sevices management system
Product and sevices management systemProduct and sevices management system
Product and sevices management system
Vinod Gurram
 
Anpr based licence plate detection report
Anpr  based licence plate detection reportAnpr  based licence plate detection report
Anpr based licence plate detection report
somchaturvedi
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
Tech_MX
 
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
 

Destacado (17)

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
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
 
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
 

Similar a 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 model
Jafar Nesargi
 
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
g30162363
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2
Mukund Trivedi
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)
Mukund Trivedi
 

Similar a 1869495 er diagrams (20)

Database Modeling
Database ModelingDatabase Modeling
Database Modeling
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
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
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
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
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
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
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

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