1 / 33

Indira Gandhi National Open University presents

Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis. DATA MODELING. MODEL. A Model is an abstraction of something for the purpose of understanding it before building it. DATA MODELING.

primo
Download Presentation

Indira Gandhi National Open University presents

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Indira Gandhi National Open Universitypresents

  2. A Video LectureCourse:Systems Analysis

  3. DATA MODELING

  4. MODEL A Model is an abstraction of something for the purpose of understanding it before building it.

  5. DATA MODELING • Answers a set of following specific questions that are relevant to any data processing application

  6. Questions answered by a Data Model • What are the primary data objects to be processed by the system • What is the composition of each data object and what attributes describe the object

  7. Questions answered by a Data Model • Where do objects currently reside • What are the relationships between each object and other objects • What is the relationship between the objects and the processes that transform them

  8. To answer those questions,Data modeling makes use of Entity-Relationship Diagram(ERD) • ERD enables a Software Engineer to identify data objects and their relationships using a graphical notation

  9. DATA OBJECTS A data object is a representation of almost any composite information that must be understood by software.By composite information,we mean something that has a number of different properties or attributes. A person is a data object A car is a data object

  10. KeyOne or more attributes which uniquely identify a data object

  11. Attributes of Person: Name,Address,Age, Driving license number Driving license number is the key Attributes of Car:Make,Model,Chassis Number, Body type,Color Chassis Number is the key

  12. RELATIONSHIPS Data objects are connected to one another in a variety of different ways Here, owns is the relationship Example: a Person owns a Car

  13. Identification of Objects, Attributes & Relationships Problem: A University should schedule its class rooms for final Exams. Examinations will be conducted for all courses for students of all sections

  14. Data Objects • Course • Section • Room

  15. Attributes of Course • Name • Department • Code

  16. Attributes of Section • S-number • Enrollment

  17. Attributes of Room • R-number • Capacity • Building

  18. Relationships: • Code & S-number

  19. Entity Relationship Model

  20. Simple and Composite Attributes • CITY is a Simple attribute • NAME is a Composite attribute because we can subdivide it into First Name,Middle Name and Last Name

  21. Single and Multi Valued Attributes • AGE is a single valued attribute • DEPENDENT-NAME is a multi valued attribute

  22. Derived Attributes • EMPLOYEMENT-LENGTH of Employee entity set is a derived attribute of Start-date and Current-date

  23. Keys • Super Key • Candidate Key For example,Consider CUSTOMER entity set with attributes (1)Social security (2)Customer name (3)Customer street (4)Customer city Now,Social security is a super key.Also,any set of attributes containing Social security forms a super key So,Social-security is also candidate key

  24. ENTITY-RELATIONSHIP DIAGRAM A E-R diagram consists of following components: • Rectangles-represent Entity sets • Ellipses-represent Attributes • Diamonds-represent Relationship sets • Lines-link attributes to Entity sets and Entity sets to relationship sets • Double Ellipses-represent multi valued attributes • Dashed Ellipses-denote derived attributes • Double lines-indicate total participation of an entity in a relationship set

  25. E-R diagram corresponding to Customers and Loans

  26. One to Many Many to One One to One RELATIONSHIPS BETWEEN ENTITY SETS

  27. RELATIONSHIP SETS So,Attributes of Borrower :Social Security, Loan-number

  28. WEAK ENTITY SETS For example, an entity set with attributes Name,Age,Height is a Weak Entity Set

  29. STRONG ENTITY SET • An Entity set with Passport no.,Name ,age,Height,Address is a Strong Entity Set as Passport no. can be used as key attribute

  30. Summary • Definition of Modeling • Questions answered by Data Modeling • Definitions of Data Object,Attributes and Relationships

  31. Summary(contd.) • Analyzing a given problem and finding Data Objects, Attributes and Relationships between objects of that problem • Introduction to Entity – Relationship Modelling

  32. Summary(Contd.) • Simple and Composite Attributes • Single and Multivalued Attributes • Derived Attributes • Candidate Keys • Entity-Relationship Diagram

  33. Summary(contd.) • Weak Entity Sets • Strong Entity Sets

More Related