institute of southern punjab, multan - wordpress.com · 2017-12-14 · institute of southern...

54
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com E-Mail: [email protected]

Upload: others

Post on 17-Jun-2020

64 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Institute of Southern Punjab, Multan

Mr. Muhammad Nouman Farooq

BSC-H (Computer Science)

MS (Telecomm. and Networks)

Honors:

Magna Cumm Laude Honors Degree

Gold Medalist!

Blog Url: noumanfarooqatisp.wordpress.com

E-Mail: [email protected]

Page 2: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Advance Database Systems

Lecture# 3

Enhanced Entity

Relationship

Diagrams (EERD)

Page 3: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Lecture 3: Enhanced Entity Relationship Diagrams

(EERD)

Enhanced Entity Relationship Diagrams

(EERD)

Sub Type and Super Type Relationships

Entity Clustering

Mapping/Transforming Enhanced Entity

Relationship Diagram3

Page 4: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Enhanced Entity Relationship Diagrams

(EERD)

4

Page 5: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Enhanced Entity Relationship Diagrams

(EERD)

5

Page 6: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Sub Type and Super Type Relationships

6

Page 7: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Sub Type and Super Type Relationships

7

Page 8: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

8

Continued…

Page 9: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

9

Basic Concept and Notation

Page 10: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

10

Page 11: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

11

Page 12: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

12

Page 13: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

13

Page 14: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

14

Page 15: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

15

Page 16: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

16

Page 17: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

17

Page 18: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

18

Representing Specialization and

Generalization

Page 19: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

19

Page 20: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

20

Page 21: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

21

Page 22: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

22

Page 23: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

23

Page 24: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

24

Specifying Constraint in Sub Type/Super Type

Relationships

Page 25: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

25

Page 26: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

26

Page 27: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

27

Specifying Disjointness Constraints

Page 28: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

28

Page 29: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

29

Page 30: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

30

Defining Subtype Discriminators

Page 31: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

31

Page 32: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

32

Page 33: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

33

Page 34: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

34

Defining Super Type/Sub Type Hierarchies

Page 35: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

35

Page 36: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

36

Page 37: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

37

Page 38: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Entity Clustering

38

Page 39: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

39

Entity Clustering

Page 40: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

40

Page 41: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

41

Page 42: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

42

Page 43: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

43

Page 44: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

44

Page 45: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

45

Page 46: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Mapping/Transforming Enhanced Entity

Relationship Diagram

46

Page 47: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

47

Mapping/Transforming Enhanced Entity

Relationship Diagram

Page 48: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

48

Page 49: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

49

Page 50: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

50

Page 51: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

EERD Online Simulator: -

https://www.draw.io/

https://creately.com

Desktop Simulators for EERD: -

Microsoft Visio

51

EERD Simulators/Tools

Page 52: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Recommended Readings

Chapter 4 from: -

Modern Database Management by Jeffrey A. Hoffer, Mary B. Prescott

& Fred R. McFadden, 8th Edition (Page No. 172-216)

Chapter 5 from: -

Modern Database Management by Jeffrey A. Hoffer, Mary B. Prescott

& Fred R. McFadden, 8th Edition (Page No. 242-243)

52

Page 53: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

Summary of Lecture

53

Lecture 3➦

Enhanced Entity Relationship Diagrams (EERD)

Sub Type and Super Type Relationships

Entity Clustering

Mapping/Transforming Enhanced Entity Relationship Diagram

Page 54: Institute of Southern Punjab, Multan - WordPress.com · 2017-12-14 · Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks)

END OF LECTURE 3

54