Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

33
Indira Gandhi National Open University presents

Transcript of Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

Page 1: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

Indira Gandhi

National Open University

presents

Page 2: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

A Video Lecture

Course:Systems Analysis

Page 3: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

DATA MODELING

Page 4: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

• 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. A Video Lecture Course: Systems Analysis.

• 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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

KeyOne or more attributes which uniquely identify a data object

Page 11: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

• Course

• Section

• Room

Data Objects

Page 15: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

• Name

• Department

• Code

Attributes of Course

Page 16: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

• S-number

• Enrollment

Attributes of Section

Page 17: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

• R-number

• Capacity

• Building

Attributes of Room

Page 18: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

Relationships:

• Code & S-number

Page 19: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

Entity Relationship Model

Page 20: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

E-R diagram corresponding to Customers and Loans

Page 26: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

RELATIONSHIPS BETWEEN ENTITY SETS

• One to Many

• Many to One

• One to One

Page 27: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

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

Page 28: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

Summary

• Definition of Modeling

• Questions answered by Data Modeling

• Definitions of Data Object,Attributes and Relationships

Page 31: Indira Gandhi National Open University presents. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

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. A Video Lecture Course: Systems Analysis.

Summary(contd.)

• Weak Entity Sets

• Strong Entity Sets