indira gandhi national open university presents

33
Indira Gandhi National Open University presents

Upload: primo

Post on 11-Jan-2016

45 views

Category:

Documents


3 download

DESCRIPTION

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. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Indira Gandhi  National Open University presents

Indira Gandhi

National Open University

presents

Page 2: Indira Gandhi  National Open University presents

A Video Lecture

Course:Systems Analysis

Page 3: Indira Gandhi  National Open University presents

DATA MODELING

Page 4: Indira Gandhi  National Open University presents

MODEL

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

Page 5: Indira Gandhi  National Open University presents

DATA MODELING

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

Page 6: Indira Gandhi  National Open University presents

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

Page 7: Indira Gandhi  National Open University presents

• 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

Questions answered by a Data Model

Page 8: Indira Gandhi  National Open University presents

• 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

Page 9: Indira Gandhi  National Open University presents

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

Page 10: Indira Gandhi  National Open University presents

KeyOne or more attributes which uniquely identify a data object

Page 11: Indira Gandhi  National Open University presents

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

Page 12: Indira Gandhi  National Open University presents

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

Page 13: Indira Gandhi  National Open University presents

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

Page 14: Indira Gandhi  National Open University presents

• Course

• Section

• Room

Data Objects

Page 15: Indira Gandhi  National Open University presents

• Name

• Department

• Code

Attributes of Course

Page 16: Indira Gandhi  National Open University presents

• S-number

• Enrollment

Attributes of Section

Page 17: Indira Gandhi  National Open University presents

• R-number

• Capacity

• Building

Attributes of Room

Page 18: Indira Gandhi  National Open University presents

Relationships:

• Code & S-number

Page 19: Indira Gandhi  National Open University presents

Entity Relationship Model

Page 20: Indira Gandhi  National Open University presents

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

Page 21: Indira Gandhi  National Open University presents

Single and Multi Valued Attributes

• AGE is a single valued attribute

• DEPENDENT-NAME is a multi valued attribute

Page 22: Indira Gandhi  National Open University presents

Derived Attributes

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

Page 23: Indira Gandhi  National Open University presents

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

Page 24: Indira Gandhi  National Open University presents

ENTITY-RELATIONSHIP DIAGRAMA 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

Page 25: Indira Gandhi  National Open University presents

E-R diagram corresponding to Customers and Loans

Page 26: Indira Gandhi  National Open University presents

RELATIONSHIPS BETWEEN ENTITY SETS

• One to Many

• Many to One

• One to One

Page 27: Indira Gandhi  National Open University presents

RELATIONSHIP SETSSo,Attributes of Borrower :Social Security, Loan-number

Page 28: Indira Gandhi  National Open University presents

WEAK ENTITY SETS

For example, an entity set with attributes Name,Age,Height is a Weak Entity Set

Page 29: Indira Gandhi  National Open University presents

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

Page 30: Indira Gandhi  National Open University presents

Summary

• Definition of Modeling

• Questions answered by Data Modeling

• Definitions of Data Object,Attributes and Relationships

Page 31: Indira Gandhi  National Open University presents

Summary(contd.)

• Analyzing a given problem and finding Data Objects, Attributes and Relationships between objects of that problem

• Introduction to Entity – Relationship Modelling

Page 32: Indira Gandhi  National Open University presents

Summary(Contd.)

• Simple and Composite Attributes

• Single and Multivalued Attributes

• Derived Attributes

• Candidate Keys

• Entity-Relationship Diagram

Page 33: Indira Gandhi  National Open University presents

Summary(contd.)

• Weak Entity Sets

• Strong Entity Sets