IDS Lecture 6 (Complete)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 57

Institute of Southern Punjab – ISP

(Department of Computer Science & IT)

Mr. Muhammad Noman Farooq


BSC-H (Computer Science)
MS (Telecomm. and Networks)
DWH & BI – Certified
Big Data Analytics – Certified

Honors:
Gold Medalist!
Magna Cumm Laude
8 + years of Experience in Lectureship & Professional Trainings
Teradata + Oracle + MySQL (Advanced) + Power BI + Tableau

Personal Email: noman.iefr@hotmail.com


Introduction to Database Systems

Enhanced Entity
Relationship
Diagrams (EERD)
Lecture# 6
Course Outline – Theory
Course Title: Database Systems
Course Code: CS-208
Credit Hours: 4 (3+1)

Lecture # Topics Covered (16 Lectures Plan) CLOs PLOs

Introduction to Database
1 • Basic Database Concepts
• Data Vs Information 1 1
• Database Approach vs File Based System

Database Environment
• Data Independence (Logical and Physical Data Independence)
2
• Flat File Vs Relational Data System
1 1
• File Processing Vs Database System Approach

Database Architecture
3 • Three level ANSI-SPARC schema architecture
• Database Development Process 1 1

3
The Relational Model
• Schema’s, Tuple’s, Domain.
4 • Relation Instance 1 1
• Keys of Relations
• Integrity Constraints
Entity Relationship Modeling
• Business Rules
5 • Entity 2 2
• Attributes
• Relationship (Type, Cardinality and Degree of Relationship)
ERD - Continued
• Entity Set
2 2
6 • Conceptual Data Modeling
• Relationship Diagrams
ERD - Continued
• Properties of Relation
• Well Structured Relation
7 • Data Anomalies 2 2

• Logical Database Design and Modeling


• Entity Relationship Model

Enhanced Entity Relationship Modeling


• Super Type, Sub Type Entities
8 • Disjoint Constraints
2 2
• Generalization and Specialization
• Total and Partial Specialization Rules
• Entity Clustering
SQL: Structured Query Language
• Introduction to SQL
• The ISO SQL data types
9 • Writing SQL Statement 2 2
• Understanding Keywords, Commands, Identifiers and Qualifier Character in SQL
• Data Definition Language (DDL)
• Understanding DROP, CREATE, ALTER and TRUNCATE operations
SQL (Continued)
• Data Manipulation Language (DML)
2 2
10 • Understanding INSERT, UPDATE, and DELETE operations 4
• Grouping and Aggregation in SQL
Relational Algebra
11 • Relational Algebra
• Unary Operations (Selection and Projection) 3 3
• Set Operations (Union, Set Difference, Intersection Operations and Cartesian Product)

Relational Algebra (Continued)


12 • Join Operations 3 3
• Division Operation
• Aggregate and Grouping Operations
Joining Concepts
• Joining Overview
13 • Types of Joins (Cross Join, Inner Join and Outer Join) 3 3
• Joins and Sub-Queries in SQL

Normalization
• Functional Dependencies
14 • Purpose of Normalization 3 3
• Normal Forms (1NF, 2NF, and 3NF)

Overview of Storage and Indexing


15 • File organization and indexing
• Index Data Structure 3 3

Next Generation Databases


• Data Warehousing
16 • Data Analytics 3 3
• Business Intelligence
5
Lecture 6: Enhanced Entity Relationship Diagrams
(EERD)
✓ Enhanced Entity Relationship Diagrams
(EERD)

✓ Sub Type and Super Type Relationships

✓ Entity Clustering

✓ Mapping/Transforming Enhanced Entity


Relationship Diagram
6
✓ Enhanced Entity Relationship Diagrams
(EERD)

7
Enhanced Entity Relationship Diagrams
(EERD)

8
✓ Sub Type and Super Type Relationships

9
Sub Type and Super Type Relationships

10
Continued…

11
Basic Concept and Notation

12
13
14
15
16
17
18
19
20
Representing Specialization and
Generalization

21
22
23
24
25
26
Specifying Constraint in Sub Type/Super Type
Relationships

27
28
29
Specifying Disjointness Constraints

30
31
32
Defining Subtype Discriminators

33
34
35
36
Defining Super Type/Sub Type Hierarchies

37
38
39
40
✓ Entity Clustering

41
Entity Clustering

42
43
44
45
46
47
48
✓ Mapping/Transforming Enhanced Entity
Relationship Diagram

49
Mapping/Transforming Enhanced Entity
Relationship Diagram

50
51
52
53
EERD Simulators/Tools
EERD Online Simulator: -
https://www.draw.io/
https://creately.com

Desktop Simulators for EERD: -

 Microsoft Visio

54
Recommended Readings
Chapter 4 from: -
✓ Modern Database Management by Jeffrey A.
Hoffer, Mary B. Presscott & Fred R. McFadden; 8th
Edition (Page No. 172-216)

Chapter 5 from: -
✓ Modern Database Management by Jeffrey A.
Hoffer, Mary B. Presscott & Fred R. McFadden, 8th
Edition (Page No. 242-243)
55
Summary of Lecture
➦ Lecture 6

✓ Enhanced Entity Relationship Diagrams (EERD)

✓ Sub Type and Super Type Relationships

✓ Entity Clustering

✓ Mapping/Transforming Enhanced Entity Relationship Diagram

56
✓ END OF LECTURE 6

57

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy