Preview

Relational Model

Good Essays
Open Document
Open Document
393 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Relational Model
Relational Model: Data Structure
The relational database model consists of three parts: data structure (this section), data integrity, and data manipulation. The data structure model defines how to represent data. Most basic to the data structure model is the relation which is illustrated below:

A relation, which is the most basic part of the data structure model, has two parts: relation heading and relation body: * Relation Heading
A relation heading is a set of (attribute, domain) pairs (i.e., (column, column-type) pairs). For the relation above, the relation heading is: { (ID, integer), (Name, string), (Dept, string) }. The number of these pairs is known as the relation degree, therefore, the relation above is a degree three relation. * Relation Body
A relation body is a set of tuples (i.e., rows). A tuple (row) can be thought of as an instance of the Employee relation. Formally, a tuple is a set of (attribute, value) pairs, in other words (column, value) pairs. The tuple represented by ID of 1, is actually this set { (ID, 1), (Name, Smith), (Dept, Sales) }. The number of tuples is known as the relation cardinality. For the relation above, it has a cardinality of 2.
Being able to reference attributes (columns) by name and tuples (rows) by primary key values provides a data model that has no physical storage model associated with the data organization. The relational data model is the only one that achieves complete physical data independence. Applications do not need to know at all how data is organized as long as the database takes care of finding the right data when the application provides table and column names along with primary key values.
Another fundamental part of the relation model data structure is the concept of a domain. Simply stated, a domain combines two pieces of information - the set (possibly infinite) of allowable values that an attribute (column can have), and the semantics (meaning) of the values. In other words, a domain

You May Also Find These Documents Helpful

  • Good Essays

    An entity relationship diagram (ERD) is a graphical documentation technique used in the designing of database within organizations to describe the entities and their direct relationships (Bagranoff, Simkin, & Strand, 2008). The ERD diagram consists of entities, attributes, and relationship. The entity represents a rectangular; the diamond is symbolized by describing the relationship of the entities, oval shape describes the attributes, and the lines connect all three to describe their relationship. Attached is an ERD of Kudler Fine Foods showing their existing data tables.…

    • 496 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Week 1 SOW 1

    • 452 Words
    • 2 Pages

    Building the Physical Database: The data model will be translated into the Relational Database Management system of choice. All Tables and Columns with specific data types will be created and will include Relational and other constraints.…

    • 452 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    cis3730_Exam1_Studyguide

    • 512 Words
    • 2 Pages

    Relationships: is a collection of data organized based on a model derived from 1st order predicate logic…

    • 512 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Rick Dadier, a war veteran is hired to teach at North Manual High School. This is his first teaching assignment, so he can support himself and his pregnant wife. Dadier learns quickly that the school has a severe discipline problem, and the established teachers advise him how to deal with the students. Regardless, Dadier tries to discipline the class and this provokes a violent response in which Dadier is ambushed by a group of students. Dadier then goes to seek advice from his old mentor and is then faced with two choices too either go to another school or stay at the school. Dadier returns to the school the next day and is reported by a student for using racial epithets. Due to this Dadier is called into the principal’s office and after a heated argument where Dadier reasons with the principle, after the principal attempts to regain his trust by giving him the Christmas Show. The movie continues with Dadier and his colleagues in the classroom where he is enraged about the complacent and complaining attitude from his fellow teachers as well as their lack of innovation and ideas to fix the juvenile delinquency of the kids. Dadier then tries to connect with the kids through a simple cartoon by making them think. In an attempt…

    • 1684 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    8. What is a relational database? A data base that organizes data into overlapping tables. They follow a set of very specific rules that ensure data contained in the database will be consistent.…

    • 421 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Unit 3 research

    • 383 Words
    • 2 Pages

    An entity-relationship diagram is a specialized graphic that illustrates the relationships between entities in a database. ER diagrams often use symbols to represent three different types of information. Boxes are commonly used to represent entities. Diamonds are normally used to represent relationships and ovals are used to represent attributes…

    • 383 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    IST223 Crib sheet

    • 3425 Words
    • 7 Pages

    rectangles, and relationships are shown by lines between the rectangles. Attributes are generally listed within the rectangle. The many side of many relationships is represented by a crows footentity-relationship (E-R) modelA set of constructs and conventions used to create data models. The things in the users world are represented by entities, and the associations among those things are represented by relationships. The results are usually documented in an entity-relationship (E-R) diagramID-dependent entityan entity whose identifier includes the identifier of another entityidentifierwhich are attributes that name, or identify, entity instancesidentifying relationshipIn such relationships, the parent is always required, but the child (the ID-dependent entity) may or may not be required, depending on application requirements. Identifying relationships are shown with solid lines in E-R diagrams.is-aRelationships among supertype/subtype entitiesmandatoryat least one entity instance must participate in the relationshipmaximum cardinalityThe maximum cardinality is the maximum number of entity instances that can participate in a relationship instance.minimum cardinalityThe minimum cardinality is the minimum number of entity instances that must participate in a relationship instance.nonidentifying relationshiprelationship drawn with a dashed line (refer to Figure 5-7) is used between strong entities and is called a nonidentifying relationship because there are no ID-dependent entities in the relationship.null valueare a problem because they are ambiguous. They can mean that a value is inappropriate, unknown, or known, but not yet been entered into the databaseparentAn entity or row on the one side of a one-to-many relationshiprecursive relationshipoccurs when an entity type has a relationship to itself.relationship classAssociations among entity classesrelationship instanceassociations among entity instances.strong entityan entity that represents something that can exist…

    • 3425 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Dbm 381 Week 1paper

    • 885 Words
    • 4 Pages

    A database consists of one or more tables; each containing data stored as individual records. Different database architectures determine how the tables and records are organized or related…

    • 885 Words
    • 4 Pages
    Good Essays
  • Good Essays

    One theme or topic; something of importance to a user that needs to be represented in a database. In the entity-relationship model, entities are restricted to things that can be represented by a single table. An example of this is in the EMPLOYEE table; data about the entity (the employee) is in the table rows and data about the entity’s attributes are in the rows.…

    • 805 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    MIS 535 Final Exam

    • 592 Words
    • 3 Pages

    8. (TCO C) What types of relationships are possible in a relational database? Describe and give an example of each.…

    • 592 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This quote came from Juliet and depicts the theme of punishment. Juliet is saying this string of hyperboles to Friar Laurence giving examples as to what she would rather do than marry Paris. Capulet has agreed to let Paris marry Juliet the next thursday. He thinks that by doing this it will cheer Juliet because she has been crying over Tybalt and Romeo. Capulet doesn’t know that Juliet is already married to Romeo. Juliet goes to Friar’s cell to seek a solution. While she is there she tells the Friar things that she would rather do than marry Paris such as”chain me with roaring bears” She states that she would rather do all of these things than marry…

    • 119 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    In “The Masque of the Red Death” by Edgar Allan Poe, Poe uses imagery and symbolism to create an allegory that communicates to the reader the idea that there is no escaping death, no matter what we do. This story is about a man known as Prince Prospero who represents the forces of life, fighting the good fight against death. Or at least running from death by shutting himself up in a fancy castle so he can keep throwing parties. Poe first uses imagery to describe the appearance of the Red Death; The Red Death had “scarlet stains upon the body” (Poe 456). The scarlet stains symbolizes the true appearance of the Red Death or a victim of the Red Death.…

    • 245 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    Relational Database Paper

    • 547 Words
    • 3 Pages

    A relationship is an important component of a relational database. A relationship exists between two tables when one or more key fields from one table are matched to one or more key fields in another table. The fields in both tables usually have the same name, data type, and size. It also helps to further refine table structures and minimize redundant data.…

    • 547 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 4

    • 784 Words
    • 4 Pages

    3. Before any row can be entered in the SECTION table, the COURSE_ID to be…

    • 784 Words
    • 4 Pages
    Satisfactory Essays
  • Best Essays

    Figure 2 : Relation Model developed by Kourkit and Wall (2008). Source : Kourkit and Wall (2008)…

    • 3704 Words
    • 15 Pages
    Best Essays