SlideShare a Scribd company logo
1 of 28
Free Video Lectures for MCA 
By: 
video.edhole.com
Introduction to Data Modeling 
CS 146 
video.edhole.com
What is a Data Model? 
 Definition: precise description of the data content in a 
system 
 Types of data models: 
1. Conceptual: describes WHAT the system contains 
2. Logical: describes HOW the system will be implemented, 
regardless of the DBMS 
3. Physical: describes HOW the system will be implemented 
using a specific DBMS 
video.edhole.com
Why do we need to create data models? 
 To aid in the development of a sound database design 
that does not allow anomalies or inconsistencies 
 Goal: to create database tables that do not contain 
duplicate data values that can become inconsistent 
video.edhole.com
Types of Data Models 
 Entity-Relationship (E-R) Models 
 Only addresses data and relationships 
 Classic, simplest 
 Best for deriving a sound table design 
 Many extensions/variations exist 
 Basis for most other modeling approaches 
 UML (unified modeling language) 
 Class models 
 Goes beyond data, also models behaviors 
video.edhole.com
Creating an Entity-Relationship Model 
1. Identify entities 
2. Identify entity attributes and primary keys 
3. Specify relationships 
video.edhole.com
Data Entities 
 Entity 
 A "thing" about which you want to store data in an 
application 
 Multiple examples (instances) of the entity must exist 
 Goal: 
 Store data about each entity in a separate table 
 Do not store duplicate data in multiple tables or records 
 Examples: CUSTOMER, PRODUCT 
video.edhole.com
Data Model Naming Conventions 
 Entity names are short, descriptive, compound word 
singular nouns 
 UWEC_STUDENT, CANDY_PRODUCT, 
 Entity names will ultimately correspond to table names 
 Why singular? 
 Makes more sense when you start talking about relationships 
video.edhole.com
Data Entity Instances 
 Entity instance 
 A specific occurrence (data value) of an entity 
 An entity must have multiple entity instances or it is not 
really an entity! 
 Examples: Davey Jones, Celestial Cashew Crunch 
video.edhole.com
ER Model Attributes 
 Attribute 
 A characteristic (data field) of an entity that you want to 
store in the database 
 Examples: CUST_ID, PROD_DESC 
 Attribute value 
 The value of a particular attribute for a particular entity 
instance 
 Examples: 42, "Nuts Not Nachos" 
video.edhole.com
Data Model Naming Conventions 
(continued) 
 Attribute names are descriptive compound words 
that correspond to the entity name 
 Attribute names will ultimately correspond to field names 
 Every attribute name within the database should be unique 
video.edhole.com
ER Model Notation 
 Represent entities as rectangles 
 List attributes within the rectangle 
Entity 
Attributes 
Primary key 
video.edhole.com
Attributes Selection Issues 
 Primary key 
 Atomic 
 Composite 
 Multi-valued 
 Derived 
video.edhole.com
Primary Key Attributes 
 Attribute whose value is unique for every entity instance 
 Every entity MUST have a PK 
 Designate by: 
 Placing as first attribute in the entity 
 Underline 
 Label using "PK" 
video.edhole.com
Selecting Primary Keys 
 Must be values that are: 
 Unique for every possible record 
 Do not change 
 Best practice: numeric with no blank spaces or 
formatting characters 
 Often you need to create a surrogate key 
 ID value that serves only to identify the object in 
the database 
 Exception: objects with "natural" primary keys 
 SKU 
 ISBN 
 VIN 
video.edhole.com
Atomic and Composite Attributes 
 Atomic attribute: represents a single data value 
 15, “Daniel", 12/25/2009 
 Composite attribute: can be decomposed into atomic 
attributes 
 "James B. Brown" 
 "5580 Pinewood Road, Eau Claire, WI 54701" 
 Should you ever allow a composite attribute in a database? 
video.edhole.com
Composite Attributes 
 Decompose into atomic components for: 
 Sorting 
 Searching 
 Formatting 
Student 
Student_ID 
Student_Name 
Student_Address 
Student_DOB 
Student_Class 
Student_First_Name 
Student_MI 
Student_Last_Name 
Student_Address_Line_1 
Student_Address_Line_2 
Student_City 
Student_State 
Student_Country 
Student_Postal_Code 
video.edhole.com
Multi-Valued Attributes 
 Can have multiple values for the same entity 
Student 
Student_ID (PK) 
Student_First_Name 
Student_Last_Name 
Student_Address 
Student_DOB 
Student_Class 
Student_Phone1 
Student_Phone2 
Employee 
Employee_ID (PK) 
Employee_First_Name 
Employee_Last_Name 
Employee_Address 
Employee_DOB 
Employee_Dependent1 
Employee_Dependent2 
video.edhole.com
Handling Multi-valued Attributes 
 If it has a definite maximum number, leave as a repeating 
attribute 
 If the upper limit is variable, make a new entity 
Student 
Student_ID 
Student_First_Name 
Student_Last_Name 
Student_Address 
Student_DOB 
Student_Class 
Student_Phone1 
Student_Phone2 
Employee 
Employee_ID 
Employee_First_Name 
Employee_Last_Name 
Employee_Address 
Employee_DOB 
Employee_Dependent1 
Employee_Dependent2 
Dependent 
Dependent_ID 
has Dependent_Name 
video.edhole.com
Derived Attributes 
 Value that can be derived from other attributes 
 Student_Age = 22 (DOB = 11/20/1986, current date is 
11/13/2009) 
 Order_Total = $500 (Item 1 cost = $200, Item 2 cost = $300) 
video.edhole.com
Handling Derived Attributes 
 Store the underlying data values from which you can 
derive the attribute value … 
 Examples: 
 DOB => Age 
 CurrentPrice and UnitsSold of an item (for a sales order) 
 … unless the underlying values can change! 
 PRODUCT_PRICE, COURSE_CREDITS 
video.edhole.com
Creating an Entity-Relationship Model 
1. Identify entities 
2. Identify entity attributes and primary keys 
3. Specify relationships 
video.edhole.com
Data Model Relationships 
 Specify the number of instances of one entity that can 
be associated with instances of a related entity 
 Types: 
 1:M 
 1:1 
 M:M 
 “M” denotes some value greater than 1 whose upper bound 
is undetermined 
 This is called relationship cardinality 
video.edhole.com
Example 1:M Relationship 
Store_ID Store_Name Store_Address 
1 Northside 3233 Wisconsin St. 
2 Southside 4211 Golf Road 
Video_ID Video_Title Video_Format 
1000 The Princess Bride DVD 
1001 Sideways Bluray 
1002 Just Visiting DVD 
1003 Crash Bluray 
Store 
Store_ID 
Store_Name 
Store_Address 
Rents 
Video 
Video_ID 
Video_Title 
Video_Format 
video.edhole.com
Example 1:1 Relationship 
Spouse_ID Spouse_Name 
52 Ryan, Judy 
53 Redmann, Rudy 
Customer_ 
ID 
Customer_ 
Name 
Customer_Address 
1 Ryan, Paul 5454 Hyde Court 
2 Myers, Mary 112 Birch Place 
Spouse 
Spouse_ID 
Spouse_Name 
Has 
Customer 
Customer_ID 
Customer_Name 
Customer_Address 
video.edhole.com
Example M:M Relationship 
Video 
Video_ID 
Video_Title 
Rents 
Customer 
Customer_ID 
Customer_Name 
Customer_Address 
video.edhole.com
Example ER Model 
video.edhole.com
Summary: The Data Modeling 
Process 
 Define entities 
 Define attributes 
 Define relationships 
 Identify relationship cardinality (1:1, 1:M, M:M) 
video.edhole.com

More Related Content

Similar to Free video lectures for mca

Logical ERD 2022.pptx
Logical ERD  2022.pptxLogical ERD  2022.pptx
Logical ERD 2022.pptxJeff Jacobs
 
Zend Framework And Doctrine
Zend Framework And DoctrineZend Framework And Doctrine
Zend Framework And Doctrineisaaczfoster
 
Ado.net entity framework_4.0
Ado.net entity framework_4.0Ado.net entity framework_4.0
Ado.net entity framework_4.0Rishu Mehra
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework OverviewEyal Vardi
 
How do i connect to that
How do i connect to thatHow do i connect to that
How do i connect to thatBecky Bertram
 
Introduction to Data Vault Modeling
Introduction to Data Vault ModelingIntroduction to Data Vault Modeling
Introduction to Data Vault ModelingKent Graziano
 
Problems in Enterprise Integration: Schematic Heterogeneities between Semanti...
Problems in Enterprise Integration: Schematic Heterogeneities between Semanti...Problems in Enterprise Integration: Schematic Heterogeneities between Semanti...
Problems in Enterprise Integration: Schematic Heterogeneities between Semanti...Amit Sheth
 
So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)Amit Sheth
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modellingNovita Sari
 
01 data modeling-and-er-diagrams
01 data modeling-and-er-diagrams01 data modeling-and-er-diagrams
01 data modeling-and-er-diagramsglubox
 
So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)Amit Sheth
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity FrameworkHasnain Iqbal
 
#SPSVancouver 2016 - The importance of metadata
#SPSVancouver 2016 - The importance of metadata#SPSVancouver 2016 - The importance of metadata
#SPSVancouver 2016 - The importance of metadataVincent Biret
 

Similar to Free video lectures for mca (20)

Logical ERD 2022.pptx
Logical ERD  2022.pptxLogical ERD  2022.pptx
Logical ERD 2022.pptx
 
Zend Framework And Doctrine
Zend Framework And DoctrineZend Framework And Doctrine
Zend Framework And Doctrine
 
Ado.net entity framework_4.0
Ado.net entity framework_4.0Ado.net entity framework_4.0
Ado.net entity framework_4.0
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
Ef code first
Ef code firstEf code first
Ef code first
 
DC-dot
DC-dotDC-dot
DC-dot
 
How do i connect to that
How do i connect to thatHow do i connect to that
How do i connect to that
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
ER Modeling.ppt
ER Modeling.pptER Modeling.ppt
ER Modeling.ppt
 
8.pptx
8.pptx8.pptx
8.pptx
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
 
Introduction to Data Vault Modeling
Introduction to Data Vault ModelingIntroduction to Data Vault Modeling
Introduction to Data Vault Modeling
 
Problems in Enterprise Integration: Schematic Heterogeneities between Semanti...
Problems in Enterprise Integration: Schematic Heterogeneities between Semanti...Problems in Enterprise Integration: Schematic Heterogeneities between Semanti...
Problems in Enterprise Integration: Schematic Heterogeneities between Semanti...
 
So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)
 
Net database
Net databaseNet database
Net database
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modelling
 
01 data modeling-and-er-diagrams
01 data modeling-and-er-diagrams01 data modeling-and-er-diagrams
01 data modeling-and-er-diagrams
 
So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)So Far (Schematically) yet So Near (Semantically)
So Far (Schematically) yet So Near (Semantically)
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity Framework
 
#SPSVancouver 2016 - The importance of metadata
#SPSVancouver 2016 - The importance of metadata#SPSVancouver 2016 - The importance of metadata
#SPSVancouver 2016 - The importance of metadata
 

More from Edhole.com

Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 

More from Edhole.com (20)

Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 

Recently uploaded

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 

Recently uploaded (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

Free video lectures for mca

  • 1. Free Video Lectures for MCA By: video.edhole.com
  • 2. Introduction to Data Modeling CS 146 video.edhole.com
  • 3. What is a Data Model?  Definition: precise description of the data content in a system  Types of data models: 1. Conceptual: describes WHAT the system contains 2. Logical: describes HOW the system will be implemented, regardless of the DBMS 3. Physical: describes HOW the system will be implemented using a specific DBMS video.edhole.com
  • 4. Why do we need to create data models?  To aid in the development of a sound database design that does not allow anomalies or inconsistencies  Goal: to create database tables that do not contain duplicate data values that can become inconsistent video.edhole.com
  • 5. Types of Data Models  Entity-Relationship (E-R) Models  Only addresses data and relationships  Classic, simplest  Best for deriving a sound table design  Many extensions/variations exist  Basis for most other modeling approaches  UML (unified modeling language)  Class models  Goes beyond data, also models behaviors video.edhole.com
  • 6. Creating an Entity-Relationship Model 1. Identify entities 2. Identify entity attributes and primary keys 3. Specify relationships video.edhole.com
  • 7. Data Entities  Entity  A "thing" about which you want to store data in an application  Multiple examples (instances) of the entity must exist  Goal:  Store data about each entity in a separate table  Do not store duplicate data in multiple tables or records  Examples: CUSTOMER, PRODUCT video.edhole.com
  • 8. Data Model Naming Conventions  Entity names are short, descriptive, compound word singular nouns  UWEC_STUDENT, CANDY_PRODUCT,  Entity names will ultimately correspond to table names  Why singular?  Makes more sense when you start talking about relationships video.edhole.com
  • 9. Data Entity Instances  Entity instance  A specific occurrence (data value) of an entity  An entity must have multiple entity instances or it is not really an entity!  Examples: Davey Jones, Celestial Cashew Crunch video.edhole.com
  • 10. ER Model Attributes  Attribute  A characteristic (data field) of an entity that you want to store in the database  Examples: CUST_ID, PROD_DESC  Attribute value  The value of a particular attribute for a particular entity instance  Examples: 42, "Nuts Not Nachos" video.edhole.com
  • 11. Data Model Naming Conventions (continued)  Attribute names are descriptive compound words that correspond to the entity name  Attribute names will ultimately correspond to field names  Every attribute name within the database should be unique video.edhole.com
  • 12. ER Model Notation  Represent entities as rectangles  List attributes within the rectangle Entity Attributes Primary key video.edhole.com
  • 13. Attributes Selection Issues  Primary key  Atomic  Composite  Multi-valued  Derived video.edhole.com
  • 14. Primary Key Attributes  Attribute whose value is unique for every entity instance  Every entity MUST have a PK  Designate by:  Placing as first attribute in the entity  Underline  Label using "PK" video.edhole.com
  • 15. Selecting Primary Keys  Must be values that are:  Unique for every possible record  Do not change  Best practice: numeric with no blank spaces or formatting characters  Often you need to create a surrogate key  ID value that serves only to identify the object in the database  Exception: objects with "natural" primary keys  SKU  ISBN  VIN video.edhole.com
  • 16. Atomic and Composite Attributes  Atomic attribute: represents a single data value  15, “Daniel", 12/25/2009  Composite attribute: can be decomposed into atomic attributes  "James B. Brown"  "5580 Pinewood Road, Eau Claire, WI 54701"  Should you ever allow a composite attribute in a database? video.edhole.com
  • 17. Composite Attributes  Decompose into atomic components for:  Sorting  Searching  Formatting Student Student_ID Student_Name Student_Address Student_DOB Student_Class Student_First_Name Student_MI Student_Last_Name Student_Address_Line_1 Student_Address_Line_2 Student_City Student_State Student_Country Student_Postal_Code video.edhole.com
  • 18. Multi-Valued Attributes  Can have multiple values for the same entity Student Student_ID (PK) Student_First_Name Student_Last_Name Student_Address Student_DOB Student_Class Student_Phone1 Student_Phone2 Employee Employee_ID (PK) Employee_First_Name Employee_Last_Name Employee_Address Employee_DOB Employee_Dependent1 Employee_Dependent2 video.edhole.com
  • 19. Handling Multi-valued Attributes  If it has a definite maximum number, leave as a repeating attribute  If the upper limit is variable, make a new entity Student Student_ID Student_First_Name Student_Last_Name Student_Address Student_DOB Student_Class Student_Phone1 Student_Phone2 Employee Employee_ID Employee_First_Name Employee_Last_Name Employee_Address Employee_DOB Employee_Dependent1 Employee_Dependent2 Dependent Dependent_ID has Dependent_Name video.edhole.com
  • 20. Derived Attributes  Value that can be derived from other attributes  Student_Age = 22 (DOB = 11/20/1986, current date is 11/13/2009)  Order_Total = $500 (Item 1 cost = $200, Item 2 cost = $300) video.edhole.com
  • 21. Handling Derived Attributes  Store the underlying data values from which you can derive the attribute value …  Examples:  DOB => Age  CurrentPrice and UnitsSold of an item (for a sales order)  … unless the underlying values can change!  PRODUCT_PRICE, COURSE_CREDITS video.edhole.com
  • 22. Creating an Entity-Relationship Model 1. Identify entities 2. Identify entity attributes and primary keys 3. Specify relationships video.edhole.com
  • 23. Data Model Relationships  Specify the number of instances of one entity that can be associated with instances of a related entity  Types:  1:M  1:1  M:M  “M” denotes some value greater than 1 whose upper bound is undetermined  This is called relationship cardinality video.edhole.com
  • 24. Example 1:M Relationship Store_ID Store_Name Store_Address 1 Northside 3233 Wisconsin St. 2 Southside 4211 Golf Road Video_ID Video_Title Video_Format 1000 The Princess Bride DVD 1001 Sideways Bluray 1002 Just Visiting DVD 1003 Crash Bluray Store Store_ID Store_Name Store_Address Rents Video Video_ID Video_Title Video_Format video.edhole.com
  • 25. Example 1:1 Relationship Spouse_ID Spouse_Name 52 Ryan, Judy 53 Redmann, Rudy Customer_ ID Customer_ Name Customer_Address 1 Ryan, Paul 5454 Hyde Court 2 Myers, Mary 112 Birch Place Spouse Spouse_ID Spouse_Name Has Customer Customer_ID Customer_Name Customer_Address video.edhole.com
  • 26. Example M:M Relationship Video Video_ID Video_Title Rents Customer Customer_ID Customer_Name Customer_Address video.edhole.com
  • 27. Example ER Model video.edhole.com
  • 28. Summary: The Data Modeling Process  Define entities  Define attributes  Define relationships  Identify relationship cardinality (1:1, 1:M, M:M) video.edhole.com