New Page 1
Welcome to basicsofcomputer.com
 

Share This Free Knowledge With Your Friends:

Home » Transformation of E-R Model into Relational Data Model » Types of Relationships in Database and Representing Relationship » Representing Ternary Relationship in DBMS

Representing Ternary Relationship in DBMS:

A ternary relationship is a simultaneous relationship among instances of three entity types. This type of relationship has degree three. An example of ternary relationship is shown below, in which three entities ORDER, CUSTOMER and SALESPERSON are associated with each other.

In most cases, a ternary relationship among ORDER : CUSTOMER : SALESPERSON is treated as two separate binary relationships. Suppose an order has a single customer, but a customer can have many orders. Hence the relationship between CUSTOMER and ORDER is one-to-many. Similarly, an order has one salesperson and a salesperson has many orders. So the relationship between SALESPERSON and ORDER is also one-to-many.

There may also be relationship between SALESPERSON and CUSTOMER. For example, a customer can place orders only with a particular salesperson. The relationship between SALESPERSON and CUSTOMER is one-to-one.

The above-mentioned relationships can be represented into relation as:

  • Create relations one for each entity type participating in the ternary relationship.
  • Place the key of CUSTOMER in ORDER.
  • Place the key of SALESPERSON in ORDER. So the corresponding relations are:

ORDER (Order-No, Order Date, Promised Date, Customer-No, Salesperson-No)

CUSTOMER (Customer-No, Address)

SALESPERSON (Salesperson-No, Name, Phone)

Representing Binary Relationship

Representing Unary Relationship

Representing Ternary Relationship

Representing IS-A Relationship

Relevant Articles:

Steps to Convert E-R Model into Relational database design
Representing Entities
Types of Relationships in Database and Representing Relationship
Normalize the Relation
Representing Entities Case Study
 
New Page 1

Basic Computer Science

   
» The Age of Information

» Types of Computer and Digital Age

» Input and Output Devices

» Storage Devices Of Computer

» Central Processing Unit

» Software: The Power Behind The Power

» Data Communication and Computer Networks

» The Nature Of Information

» The System Theory

» Transaction Processing System (TPS) and Management Information System (MIS)

» Decision Support System (DSS) and Executive Support System (ESS)

» Expert System (ES) and Office Information System (OIS)

 

Operating Systems

   
» Introduction to Operating System

» Introduction to Process Management

» Threads and CPU Scheduling

» Process Synchronization in Operating System

» Deadlocks

» Memory Management in Operating System

» Virtual Memory in Operating System

» File System Management in Operating System

» I/O and Device Management

» Security

» Linux Operating System

 

Database Management System

   
» Introduction to Database Systems

» Database System Architecture

» Database Administration and Database Development Process

» The Entity-Relationship Model

» Semantic Object Model

» Logical Database Design and Relational Data Model

» Normalization in Database

» Transformation of E-R Model into Relational Data Model

» Representing Semantic Object Model and Types of Semantic Object Model

» Physical Database Design

» Introduction to Structured Query Language (SQL)

» Implementation of Relational Database and Database Application Design

» Client Server Database Systems & Open Database Connectivity (ODBC)

 

Questions and Answers

   
» Basics of Information Technology

» Computer Architecture

» Data Communication

» Information Networks

» Fundamentals of the Internet

» Application and Uses of Computer

» Security, Copyright and The Law

» Windows Operating Systems

» Spreadsheet Software

» Process Management in CPU

» CPU Scheduling

» Process Synchronization

» Deadlocks

» Memory Management

» Database Systems

» Database System Architecture

» Database Administration and Database Development Process
 
 
New Page 1
 

Home                Dictionary                 Contact us                   About us                    Privacy policy                  Link to us                   Advertise

Copy right ©  2012