Skip to main content

What is Çardinality in Database


What is Çardinality in Database



Çardinality:

1) It defines the number of entities in one entity set, which can be associated with the
number of entities of other set via relationship set. (No of rows)
2) There are the following types of mapping of cardinalities.
One entity from entity set A can be associated with at
most one entity of entity set B and vice versa.


One-to-Many: .

1) One entity from entity set “A” can be associated with more than one entities of entity set “B”.
2) However an entity from entity set “B” can be associated with at most one entity.

Many-to- One

1)More than one entities from entity set “A” can be associated with at most one entity of entity set “B”.
2) However an entity from entity set “B” can be associated with more than one entity from entity set “A”.

Many-to-Many:

1) One entity from entity set “A” can be associated with more than one entities of entity set “B”.
2) Similarly, an entity from entity set “B” can be associated with more than one entity from entity set “A”.

Popular posts from this blog

What is hypertext markup language or HTML?

What is HTML?  What is hypertext markup language or HTML? HTML is that the normal nomenclature for making web content. HTML stands for Hyper Text nomenclature HTML describes the structure of an internet page HTML consists of a series of parts HTML parts tell the browser a way to show the content HTML parts are painted by tags HTML tags label items of content like " heading ", " paragraph ", " table " Browsers don't show the hypertext markup language tags, however use them to render the content of the page Following is the example of markup language - <!DOCTYPE html> <html> <head>  <title>Page Title</title> </ head > <body>  <h1> My initial Heading </h1> <p> My initial paragraph .</p> </body>  </html> !DOCTYPE html> defines this document to be HTML5 element is that the root part of associate hypertext markup language page element contains m...

What is Relational Database Model

Relational Database Model: 1) The relational database model is developed by “ Edgar F. Codd ” at IBM in 1970. 2) The relational Database Model used the basic concept of a relation or table. 3) A table is a collection of records and each record in a table Contains the same fields. 4) Every row or entity (called Tuple) must have a unique identification or key based on the data. What is Data Base Model 5) The different tables may have the common column name (Attribute), but a single table must not Contain multiple columns (Attributes) with the same name. 6) The relationship between the two tables is implemented using a common and unique attribute in the tables. 7) Columns are attributes that belong to the entity modeled by the table. 8) order of rows (tuples/entity) and columns (attributes) is not important. 9) But every Tuple must be unique. It means that for every record or Tuple in a table there is something that uniquely identified ¡t from any ot...

What is Normalization in the database

What is Normalization in the database Normalization : 1). Normalization is the process of organizing the tables to minimize data redundancy 2)Redundancy   is storing the same data item in more than one place. Database normalization is a design technique) by which an existing database is modified to minimize redundancy and dependency of data. 4) Edgar F. Codd introduced the concept of normalization in 1970.Objectives   of normalization: Edgar F. Codd stated the objectives of normalization are as follows. To free the collection of relations from undesirable insertion, update and deletion dependencies. 2) To reduce the need for restructuring the collection of relations as new types of data are introduced, and thus increase the life span of application programs. To make the relations model more informative to users. 4 To make the collection of relations neutral to the query statistics. is normalization? Explain 1 NF with suitable example _____ ...