Docsity

Database Management: Primary & Foreign Keys, Entity Identifiers, Candidate Keys, Slides of Database Management Systems (DBMS)

Partial preview of the text

Download Database Management: Primary & Foreign Keys, Entity Identifiers, Candidate Keys and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Slide 2 WCC

Entity Identifier

  • (^) one or more attributes of the entity which is used to identify the entity instance
  • (^) Roll_No or Std_Code of the STUDENT entity
  • (^) more than one attribute is called composite identifier

Slide 4

  • (^) combination of attributes from a Key known as Composite Key
  • (^) attribute that uniquely identifies the each instance of an entity type
  • (^) used for establishing relationships between entities

Slide 5

Primary key

An attribute or combination of

attributes that unique identify each

instance of an entity type is known

as Primary key

Slide 7

For example in the EMPLOYEE

entity of Organization that has

attributes ‘EmpCode’ , EmpName’,

Empsalary’, ‘ EmpDOB’. Each

employee has unique Code

assigned by the Organization

  • Slide
  • Slide

Slide 10

  • (^) Roll_No’, NIC’, Regis_No’, and ‘Phone_No
  • (^) Any one of these attributes can be selected as Primary key
  • (^) Candidate Keys for the STUDENT entity

Slide 11

  • (^) one of the Candidate Key is selected as Primary key, the other Candidate Keys of an entity become Alternate Keys

Slide 13

value must match with a Primary

Key in other Table

Foreign Key refers to is called the

Parent Table.

Slide 14

Foreign Key is used to Link data

from one table to another