際際滷

際際滷Share a Scribd company logo
Muhammad Umair
Oracle Database 11g Developer Track
 Relational Model
 A set of database relations in which each relation has a distinct
name
 Mapping Entities into Relational Model
 Entity is mapped as a relation
 Name of entity become name of relation
 Attribute of entity becomes attributes of relation
 Primary key of relation becomes primary key of relation
 Mapping Entities into Relational Model
 One-to-many
 Insert primary key of entity having cardinality one into entity having
cardinality many
 One-to-one
 Having minimum cardinality one on one side and zero on other, Insert
primary key of entity having cardinality one into entity having cardinality
zero
 One-to-one
 Having minimum cardinality zero on both sides, Insert primary key of entity
any entity into other entity
 Many-to-many
 Create new relationship and put primary keys of both tables

More Related Content

Relational model

  • 1. Muhammad Umair Oracle Database 11g Developer Track
  • 2. Relational Model A set of database relations in which each relation has a distinct name Mapping Entities into Relational Model Entity is mapped as a relation Name of entity become name of relation Attribute of entity becomes attributes of relation Primary key of relation becomes primary key of relation
  • 3. Mapping Entities into Relational Model One-to-many Insert primary key of entity having cardinality one into entity having cardinality many One-to-one Having minimum cardinality one on one side and zero on other, Insert primary key of entity having cardinality one into entity having cardinality zero One-to-one Having minimum cardinality zero on both sides, Insert primary key of entity any entity into other entity Many-to-many Create new relationship and put primary keys of both tables