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
  • 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
  • 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
  • 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
  • Good Essays

    Cis 111

    • 790 Words
    • 4 Pages

    The relational model would provide Acme Global with a better understanding of the data needs of their organization. A Relational model offers data independence and efficient access. “The conceptual and external schemas provide independence from physical storage decisions and logical design decisions respectively.” (Ramakrishnan, 2007)…

    • 790 Words
    • 4 Pages
    Good 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

    Cis 276

    • 374 Words
    • 2 Pages

    7.What is an ER diagram? An entity-relationship (E-R) diagram represents a database visually by using a rectangle for each entity that includes the entity’s name above the rectangle and the entity’s columns inside the rectangle, using a line to connect two entities that have a relationship, and placing a dot at the end of a line to indicate the “many” part…

    • 374 Words
    • 2 Pages
    Satisfactory 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

    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
  • Good Essays

    Relational Model

    • 406 Words
    • 2 Pages

    Figure 2. Relational Model provides an overview of the table content, table column/attributes and the relationships that connects them. The identified relationships are as follow: a single customer can make multiple sales (1:M), a single sale contains specific set of sales details (1:1), the same payment could be used for multiple sales (1:M). Furthermore, an order details can contain multiple books or product items (1:M), a single author can have multiple books in the store (1:M) just as a single publisher can publish many different books and authors (1:M).…

    • 406 Words
    • 2 Pages
    Good 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