SlideShare a Scribd company logo
Unit -2
DATABASE DESIGN (ENTITY (OBJECT), ENTITY SET, ENTITY TYPE -
PART 3
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 1
Database Design – Entity (Object)
An entity is an object in the real world with an independent
existence that can be differentiated from other objects. An
entity might be
◦ An object with physical existence (e.g., a lecturer, a student, a car)
◦ An object with conceptual existence (e.g., a course, a job, a
position)
Entities can be classified based on their strength. An entity
is considered weak if its tables are existence dependent.
◦ That is, it cannot exist without a relationship with another entity
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 2
Database Design – Entity (Object)
◦ Its primary key is derived from the primary key of the parent entity
◦ The Spouse table, in the COMPANY database, is a weak entity because its primary key is dependent on
the Employee table. Without a corresponding employee record, the spouse record would not exist.
An entity is considered strong if it can exist apart from all of its
related entities.
◦ Kernels are strong entities.
◦ A table without a foreign key or a table that contains a foreign key that can
contain nulls is a strong entity
Another term to know is entity type which defines a collection of
similar entities
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 3
Database Design – Entity (Object)
An entity set is a collection of entities of an entity type at a particular
point of time. An entity type is represented by a name in a box. For
example, in Figure, the entity type is EMPLOYEE.
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 4
Database Design – Entity (Object)
Kinds of Entities
You should also be familiar with different kinds of entities including
independent entities, dependent entities and characteristic entities.
These are described below.
◦ Independent entities
◦ Dependent entities
◦ Characteristics entities
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 5
Database Design – Entity (Object)
Independent entities
Independent entities, also referred to as kernels, are the backbone
of the database. They are what other tables are based on. Kernels
have the following characteristics:
◦ They are the building blocks of a database.
◦ The primary key may be simple or composite.
◦ The primary key is not a foreign key.
◦ They do not depend on another entity for their existence.
If we refer back to our COMPANY database, examples of an
independent entity include the Customer table, Employee table or
Product table.
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 6
Database Design – Entity (Object)
Dependent Entities
Dependent entities, also referred to as derived entities, depend on
other tables for their meaning. These entities have the following
characteristics:
◦ Dependent entities are used to connect two kernels together.
◦ They are said to be existence dependent on two or more tables.
◦ Many to many relationships become associative tables with at least two
foreign keys.
◦ They may contain other attributes.
◦ The foreign key identifies each associated table.
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 7
Characteristic entities
Characteristic entities provide more information about
another table. These entities have the following
characteristics:
◦ They represent multivalued attributes.
◦ They describe other entities.
◦ They typically have a one to many relationship.
◦ The foreign key is used to further identify the characterized table.
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 8
◦Options for primary key are as follows:
◦ Use a composite of foreign key plus a qualifying column
◦ Create a new simple primary key. In the COMPANY database,
these might include:
◦ Employee (EID, Name, Address, Age, Salary) – EID is the simple
primary key.
◦ EmployeePhone (EID, Phone) – EID is part of a composite
primary key. Here, EID is also a foreign key.
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 9
References
1. https://resources.saylor.org/wwwresources/archived/site/wp-
content/uploads/2014/12/CS403-1.10-Database-Design-2nd-Edition-CCBY.pdf
2. Database System Concepts 6th edition by korth and Sudarshan
9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 10
Ad

More Related Content

What's hot (20)

Relational model
Relational modelRelational model
Relational model
Dabbal Singh Mahara
 
ER MODEL
ER MODELER MODEL
ER MODEL
Rupali Rana
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
sadique_ghitm
 
Entity Relationship design issues
Entity Relationship design issuesEntity Relationship design issues
Entity Relationship design issues
Megha Sharma
 
Entity (types, attibute types)
Entity (types, attibute types)Entity (types, attibute types)
Entity (types, attibute types)
Zaheer Soomro
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
Kabindra Koirala
 
Mapping cardinality (cardinality constraint) in ER MODEL
Mapping cardinality (cardinality constraint) in ER MODELMapping cardinality (cardinality constraint) in ER MODEL
Mapping cardinality (cardinality constraint) in ER MODEL
RUpaliLohar
 
E r diagram
E r diagramE r diagram
E r diagram
SandhyaTatekalva
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
ssuser20b618
 
Generalization and specialization
Generalization and specializationGeneralization and specialization
Generalization and specialization
Knowledge Center Computer
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R model
Paurav Shah
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
Smriti Jain
 
Dbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational ModelDbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational Model
Amiya9439793168
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approach
Luina Pani
 
Association agggregation and composition
Association agggregation and compositionAssociation agggregation and composition
Association agggregation and composition
baabtra.com - No. 1 supplier of quality freshers
 
Database design process
Database design processDatabase design process
Database design process
Tayyab Hameed
 
Union in c language
Union  in c languageUnion  in c language
Union in c language
tanmaymodi4
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
koolkampus
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
Slideshare
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
Nishant Munjal
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
sadique_ghitm
 
Entity Relationship design issues
Entity Relationship design issuesEntity Relationship design issues
Entity Relationship design issues
Megha Sharma
 
Entity (types, attibute types)
Entity (types, attibute types)Entity (types, attibute types)
Entity (types, attibute types)
Zaheer Soomro
 
Mapping cardinality (cardinality constraint) in ER MODEL
Mapping cardinality (cardinality constraint) in ER MODELMapping cardinality (cardinality constraint) in ER MODEL
Mapping cardinality (cardinality constraint) in ER MODEL
RUpaliLohar
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
ssuser20b618
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R model
Paurav Shah
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
Smriti Jain
 
Dbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational ModelDbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational Model
Amiya9439793168
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approach
Luina Pani
 
Database design process
Database design processDatabase design process
Database design process
Tayyab Hameed
 
Union in c language
Union  in c languageUnion  in c language
Union in c language
tanmaymodi4
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
koolkampus
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
Slideshare
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
Nishant Munjal
 

Similar to Database design (entity, entity set and entity type) unit 2 part 3 (20)

Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
affairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
affairs cloud
 
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
cherkoswelday3
 
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptxCOMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
claritoBaluyot2
 
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptxCOMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
claritoBaluyot2
 
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
cherkoswelday3
 
DBMS Unit 2 ppt.ppt
DBMS Unit 2 ppt.pptDBMS Unit 2 ppt.ppt
DBMS Unit 2 ppt.ppt
PraveenS761061
 
Advance database system(part 4)
Advance database system(part 4)Advance database system(part 4)
Advance database system(part 4)
Abdullah Khosa
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML
نبيله نواز
 
Unit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdfUnit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdf
MaryJacob24
 
UNIT II DBMS.pptx
UNIT II DBMS.pptxUNIT II DBMS.pptx
UNIT II DBMS.pptx
NIVETHA37590
 
RDBMS Unit-2.pdf Entity Relationship Diagram
RDBMS Unit-2.pdf Entity Relationship DiagramRDBMS Unit-2.pdf Entity Relationship Diagram
RDBMS Unit-2.pdf Entity Relationship Diagram
ChaithraCSHirematt
 
Chapter-3 Data Modeling Using the Entity-Relationship Model
Chapter-3  Data Modeling Using the Entity-Relationship ModelChapter-3  Data Modeling Using the Entity-Relationship Model
Chapter-3 Data Modeling Using the Entity-Relationship Model
Raj vardhan
 
rdbmsdol.pptx
rdbmsdol.pptxrdbmsdol.pptx
rdbmsdol.pptx
Dolchandra
 
rdbmsdol.pptx
rdbmsdol.pptxrdbmsdol.pptx
rdbmsdol.pptx
Dolchandra
 
Unit1 rdbms study_materials
Unit1 rdbms study_materialsUnit1 rdbms study_materials
Unit1 rdbms study_materials
gayaramesh
 
Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)
gayaramesh
 
Database Systems Design, Implementation, and Manageme.docx
Database Systems Design, Implementation, and Manageme.docxDatabase Systems Design, Implementation, and Manageme.docx
Database Systems Design, Implementation, and Manageme.docx
theodorelove43763
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
Infotech27
 
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEMRELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
saranyaksr92
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
affairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
affairs cloud
 
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
cherkoswelday3
 
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptxCOMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
claritoBaluyot2
 
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptxCOMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
claritoBaluyot2
 
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
cherkoswelday3
 
Advance database system(part 4)
Advance database system(part 4)Advance database system(part 4)
Advance database system(part 4)
Abdullah Khosa
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML
نبيله نواز
 
Unit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdfUnit 2-Data Modeling.pdf
Unit 2-Data Modeling.pdf
MaryJacob24
 
RDBMS Unit-2.pdf Entity Relationship Diagram
RDBMS Unit-2.pdf Entity Relationship DiagramRDBMS Unit-2.pdf Entity Relationship Diagram
RDBMS Unit-2.pdf Entity Relationship Diagram
ChaithraCSHirematt
 
Chapter-3 Data Modeling Using the Entity-Relationship Model
Chapter-3  Data Modeling Using the Entity-Relationship ModelChapter-3  Data Modeling Using the Entity-Relationship Model
Chapter-3 Data Modeling Using the Entity-Relationship Model
Raj vardhan
 
Unit1 rdbms study_materials
Unit1 rdbms study_materialsUnit1 rdbms study_materials
Unit1 rdbms study_materials
gayaramesh
 
Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)
gayaramesh
 
Database Systems Design, Implementation, and Manageme.docx
Database Systems Design, Implementation, and Manageme.docxDatabase Systems Design, Implementation, and Manageme.docx
Database Systems Design, Implementation, and Manageme.docx
theodorelove43763
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
Infotech27
 
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEMRELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
RELATIONAL DATABASE PURPOSE OF DATABASE SYSTEM
saranyaksr92
 
Ad

More from Ram Paliwal (20)

Mis classification By Ram K Paliwal
Mis classification By Ram K PaliwalMis classification By Ram K Paliwal
Mis classification By Ram K Paliwal
Ram Paliwal
 
Management inofrmation system basics by ram k paliwal
Management inofrmation system basics by ram k paliwalManagement inofrmation system basics by ram k paliwal
Management inofrmation system basics by ram k paliwal
Ram Paliwal
 
Database design (entity attribute and its types) unit 2 part 4
Database design (entity attribute and its types)  unit 2 part 4Database design (entity attribute and its types)  unit 2 part 4
Database design (entity attribute and its types) unit 2 part 4
Ram Paliwal
 
Database design (conceptual, logical and physical design) unit 2 part 2
Database design (conceptual, logical and physical design)  unit 2 part 2Database design (conceptual, logical and physical design)  unit 2 part 2
Database design (conceptual, logical and physical design) unit 2 part 2
Ram Paliwal
 
Database development life cycle unit 2 part 1
Database development life cycle  unit 2 part 1Database development life cycle  unit 2 part 1
Database development life cycle unit 2 part 1
Ram Paliwal
 
Memory hierarchy unit 2 by ram k paliwal
Memory hierarchy  unit 2 by ram k paliwalMemory hierarchy  unit 2 by ram k paliwal
Memory hierarchy unit 2 by ram k paliwal
Ram Paliwal
 
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwalCpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Ram Paliwal
 
System component and system calls unit 1 by ram k paliwal
System component and system calls unit 1 by ram k paliwalSystem component and system calls unit 1 by ram k paliwal
System component and system calls unit 1 by ram k paliwal
Ram Paliwal
 
Sdlc spiral model in software engineering basics by ram k paliwal
Sdlc spiral model in software engineering basics by ram k paliwalSdlc spiral model in software engineering basics by ram k paliwal
Sdlc spiral model in software engineering basics by ram k paliwal
Ram Paliwal
 
Types of operating system unit 1 by Ram K Paliwal
Types of operating system  unit 1 by Ram K PaliwalTypes of operating system  unit 1 by Ram K Paliwal
Types of operating system unit 1 by Ram K Paliwal
Ram Paliwal
 
Software project planning in software engineering by ram k paliwal unit 2
Software project planning in software engineering by ram k paliwal unit 2Software project planning in software engineering by ram k paliwal unit 2
Software project planning in software engineering by ram k paliwal unit 2
Ram Paliwal
 
Software reuirement elicitation in software engineering basics by ram k paliwal
Software reuirement elicitation in software engineering basics by ram k paliwalSoftware reuirement elicitation in software engineering basics by ram k paliwal
Software reuirement elicitation in software engineering basics by ram k paliwal
Ram Paliwal
 
Srs (software requirement specification) in software engineering basics by ra...
Srs (software requirement specification) in software engineering basics by ra...Srs (software requirement specification) in software engineering basics by ra...
Srs (software requirement specification) in software engineering basics by ra...
Ram Paliwal
 
Sdlc process models in software engineering basics by ram k paliwal
Sdlc process models in software engineering basics by ram k paliwalSdlc process models in software engineering basics by ram k paliwal
Sdlc process models in software engineering basics by ram k paliwal
Ram Paliwal
 
Database models unit 1 part 2
Database models unit 1  part 2Database models unit 1  part 2
Database models unit 1 part 2
Ram Paliwal
 
Database overview unit 4 part 1
Database overview unit 4  part 1Database overview unit 4  part 1
Database overview unit 4 part 1
Ram Paliwal
 
Database development life cycle unit 2 part 1
Database development life cycle  unit 2 part 1Database development life cycle  unit 2 part 1
Database development life cycle unit 2 part 1
Ram Paliwal
 
Operating system basics function of os unit 1 by ram k paliwal part 1
Operating system basics function of os unit 1 by ram k paliwal part 1Operating system basics function of os unit 1 by ram k paliwal part 1
Operating system basics function of os unit 1 by ram k paliwal part 1
Ram Paliwal
 
Software process in software engineering basics by ram k paliwal part 2
Software process in software engineering basics by ram k paliwal part 2Software process in software engineering basics by ram k paliwal part 2
Software process in software engineering basics by ram k paliwal part 2
Ram Paliwal
 
Software and software engineering basics by ram k paliwal
Software and software engineering basics by ram k paliwalSoftware and software engineering basics by ram k paliwal
Software and software engineering basics by ram k paliwal
Ram Paliwal
 
Mis classification By Ram K Paliwal
Mis classification By Ram K PaliwalMis classification By Ram K Paliwal
Mis classification By Ram K Paliwal
Ram Paliwal
 
Management inofrmation system basics by ram k paliwal
Management inofrmation system basics by ram k paliwalManagement inofrmation system basics by ram k paliwal
Management inofrmation system basics by ram k paliwal
Ram Paliwal
 
Database design (entity attribute and its types) unit 2 part 4
Database design (entity attribute and its types)  unit 2 part 4Database design (entity attribute and its types)  unit 2 part 4
Database design (entity attribute and its types) unit 2 part 4
Ram Paliwal
 
Database design (conceptual, logical and physical design) unit 2 part 2
Database design (conceptual, logical and physical design)  unit 2 part 2Database design (conceptual, logical and physical design)  unit 2 part 2
Database design (conceptual, logical and physical design) unit 2 part 2
Ram Paliwal
 
Database development life cycle unit 2 part 1
Database development life cycle  unit 2 part 1Database development life cycle  unit 2 part 1
Database development life cycle unit 2 part 1
Ram Paliwal
 
Memory hierarchy unit 2 by ram k paliwal
Memory hierarchy  unit 2 by ram k paliwalMemory hierarchy  unit 2 by ram k paliwal
Memory hierarchy unit 2 by ram k paliwal
Ram Paliwal
 
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwalCpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Ram Paliwal
 
System component and system calls unit 1 by ram k paliwal
System component and system calls unit 1 by ram k paliwalSystem component and system calls unit 1 by ram k paliwal
System component and system calls unit 1 by ram k paliwal
Ram Paliwal
 
Sdlc spiral model in software engineering basics by ram k paliwal
Sdlc spiral model in software engineering basics by ram k paliwalSdlc spiral model in software engineering basics by ram k paliwal
Sdlc spiral model in software engineering basics by ram k paliwal
Ram Paliwal
 
Types of operating system unit 1 by Ram K Paliwal
Types of operating system  unit 1 by Ram K PaliwalTypes of operating system  unit 1 by Ram K Paliwal
Types of operating system unit 1 by Ram K Paliwal
Ram Paliwal
 
Software project planning in software engineering by ram k paliwal unit 2
Software project planning in software engineering by ram k paliwal unit 2Software project planning in software engineering by ram k paliwal unit 2
Software project planning in software engineering by ram k paliwal unit 2
Ram Paliwal
 
Software reuirement elicitation in software engineering basics by ram k paliwal
Software reuirement elicitation in software engineering basics by ram k paliwalSoftware reuirement elicitation in software engineering basics by ram k paliwal
Software reuirement elicitation in software engineering basics by ram k paliwal
Ram Paliwal
 
Srs (software requirement specification) in software engineering basics by ra...
Srs (software requirement specification) in software engineering basics by ra...Srs (software requirement specification) in software engineering basics by ra...
Srs (software requirement specification) in software engineering basics by ra...
Ram Paliwal
 
Sdlc process models in software engineering basics by ram k paliwal
Sdlc process models in software engineering basics by ram k paliwalSdlc process models in software engineering basics by ram k paliwal
Sdlc process models in software engineering basics by ram k paliwal
Ram Paliwal
 
Database models unit 1 part 2
Database models unit 1  part 2Database models unit 1  part 2
Database models unit 1 part 2
Ram Paliwal
 
Database overview unit 4 part 1
Database overview unit 4  part 1Database overview unit 4  part 1
Database overview unit 4 part 1
Ram Paliwal
 
Database development life cycle unit 2 part 1
Database development life cycle  unit 2 part 1Database development life cycle  unit 2 part 1
Database development life cycle unit 2 part 1
Ram Paliwal
 
Operating system basics function of os unit 1 by ram k paliwal part 1
Operating system basics function of os unit 1 by ram k paliwal part 1Operating system basics function of os unit 1 by ram k paliwal part 1
Operating system basics function of os unit 1 by ram k paliwal part 1
Ram Paliwal
 
Software process in software engineering basics by ram k paliwal part 2
Software process in software engineering basics by ram k paliwal part 2Software process in software engineering basics by ram k paliwal part 2
Software process in software engineering basics by ram k paliwal part 2
Ram Paliwal
 
Software and software engineering basics by ram k paliwal
Software and software engineering basics by ram k paliwalSoftware and software engineering basics by ram k paliwal
Software and software engineering basics by ram k paliwal
Ram Paliwal
 
Ad

Recently uploaded (20)

Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Journal of Soft Computing in Civil Engineering
 
How to use nRF24L01 module with Arduino
How to use nRF24L01 module with ArduinoHow to use nRF24L01 module with Arduino
How to use nRF24L01 module with Arduino
CircuitDigest
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdffive-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
AdityaSharma944496
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdfRICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
MohamedAbdelkader115
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxbMain cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
SunilSingh610661
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
LECTURE-16 EARTHEN DAM - II.pptx it's uses
LECTURE-16 EARTHEN DAM - II.pptx it's usesLECTURE-16 EARTHEN DAM - II.pptx it's uses
LECTURE-16 EARTHEN DAM - II.pptx it's uses
CLokeshBehera123
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
How to use nRF24L01 module with Arduino
How to use nRF24L01 module with ArduinoHow to use nRF24L01 module with Arduino
How to use nRF24L01 module with Arduino
CircuitDigest
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdffive-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
AdityaSharma944496
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdfRICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
MohamedAbdelkader115
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxbMain cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
Main cotrol jdbjbdcnxbjbjzjjjcjicbjxbcjcxbjcxb
SunilSingh610661
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
LECTURE-16 EARTHEN DAM - II.pptx it's uses
LECTURE-16 EARTHEN DAM - II.pptx it's usesLECTURE-16 EARTHEN DAM - II.pptx it's uses
LECTURE-16 EARTHEN DAM - II.pptx it's uses
CLokeshBehera123
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 

Database design (entity, entity set and entity type) unit 2 part 3

  • 1. Unit -2 DATABASE DESIGN (ENTITY (OBJECT), ENTITY SET, ENTITY TYPE - PART 3 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 1
  • 2. Database Design – Entity (Object) An entity is an object in the real world with an independent existence that can be differentiated from other objects. An entity might be ◦ An object with physical existence (e.g., a lecturer, a student, a car) ◦ An object with conceptual existence (e.g., a course, a job, a position) Entities can be classified based on their strength. An entity is considered weak if its tables are existence dependent. ◦ That is, it cannot exist without a relationship with another entity 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 2
  • 3. Database Design – Entity (Object) ◦ Its primary key is derived from the primary key of the parent entity ◦ The Spouse table, in the COMPANY database, is a weak entity because its primary key is dependent on the Employee table. Without a corresponding employee record, the spouse record would not exist. An entity is considered strong if it can exist apart from all of its related entities. ◦ Kernels are strong entities. ◦ A table without a foreign key or a table that contains a foreign key that can contain nulls is a strong entity Another term to know is entity type which defines a collection of similar entities 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 3
  • 4. Database Design – Entity (Object) An entity set is a collection of entities of an entity type at a particular point of time. An entity type is represented by a name in a box. For example, in Figure, the entity type is EMPLOYEE. 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 4
  • 5. Database Design – Entity (Object) Kinds of Entities You should also be familiar with different kinds of entities including independent entities, dependent entities and characteristic entities. These are described below. ◦ Independent entities ◦ Dependent entities ◦ Characteristics entities 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 5
  • 6. Database Design – Entity (Object) Independent entities Independent entities, also referred to as kernels, are the backbone of the database. They are what other tables are based on. Kernels have the following characteristics: ◦ They are the building blocks of a database. ◦ The primary key may be simple or composite. ◦ The primary key is not a foreign key. ◦ They do not depend on another entity for their existence. If we refer back to our COMPANY database, examples of an independent entity include the Customer table, Employee table or Product table. 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 6
  • 7. Database Design – Entity (Object) Dependent Entities Dependent entities, also referred to as derived entities, depend on other tables for their meaning. These entities have the following characteristics: ◦ Dependent entities are used to connect two kernels together. ◦ They are said to be existence dependent on two or more tables. ◦ Many to many relationships become associative tables with at least two foreign keys. ◦ They may contain other attributes. ◦ The foreign key identifies each associated table. 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 7
  • 8. Characteristic entities Characteristic entities provide more information about another table. These entities have the following characteristics: ◦ They represent multivalued attributes. ◦ They describe other entities. ◦ They typically have a one to many relationship. ◦ The foreign key is used to further identify the characterized table. 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 8
  • 9. ◦Options for primary key are as follows: ◦ Use a composite of foreign key plus a qualifying column ◦ Create a new simple primary key. In the COMPANY database, these might include: ◦ Employee (EID, Name, Address, Age, Salary) – EID is the simple primary key. ◦ EmployeePhone (EID, Phone) – EID is part of a composite primary key. Here, EID is also a foreign key. 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 9
  • 10. References 1. https://resources.saylor.org/wwwresources/archived/site/wp- content/uploads/2014/12/CS403-1.10-Database-Design-2nd-Edition-CCBY.pdf 2. Database System Concepts 6th edition by korth and Sudarshan 9/4/2019 DATABASE DEVELOPMENT LIFE CYCLE -UNIT 2 PART 1- BY RAM K PALIWAL 10