Top-Rated Free Essay
Preview

Database concepts

Good Essays
586 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Database concepts
Assignments Requirements
1. Look up the definition of functional dependency. Can you find a good example?
In relational database theory, a functional dependency is a constraint between two sets of attributes in a relation from a database.
Cars
Suppose one is designing a system to track vehicles and the capacity of their engines. Each vehicle has a unique vehicle identification number (VIN). One would write VIN → Engine Capacity because it would be inappropriate for a vehicle's engine to have more than one capacity. (Assuming , in this case, that vehicles only have one engine.) Transversely, Engine Capacity → VIN is incorrect because there could be many vehicles with the same engine capacity.
This functional dependency may suggest that the attribute Engine Capacity be placed in a relation with candidate key VIN. However, that may not always be appropriate. For example, if that functional dependency occurs as a result of the transitive functional dependencies VIN → Vehicl e Model and Vehicle Model → Engine Capacity then that would not result in a normalized relation. http://en.wikipedia.org/wiki/Transitive_dependency 2.Look up the definition of transitive dependency. Can you find a good example?
In Database Management System, a transitive dependency is a functional dependency which holds by virtue of transitivity. A transitive dependency can occur only in a relation that has three or more attributes. Let A, B, and C designate three distinct attributes (or distinct collections of attributes) in the relation. Suppose all three of the following conditions hold:
1. A → B
2. It is not the case that B → A
3. B → C
Then the functional dependency A → C (which follows from 1 and 3 by the axiom of transitivity) is a transitive dependency.
In database normalization, one of the important features of third normal form is that it excludes certain types of transitive dependencies. E.F. Codd, the inventor of the relational model, introduced the concepts of transitive dependence and third normal form in 1971.

http://en.wikipedia.org/wiki/Transitive_dependency

Example
A transitive dependency occurs in the following relation:
Book Genre Author Author Nationality
Twenty Thousand Leagues Under the Sea
Science Fiction
Jules Verne
French

Journey to the Center of the Earth
Science Fiction
Jules Verne
French
Leaves of Grass
Poetry
Walt Whitman
American

Anna Karenina
Literary Fiction
Leo Tolstoy
Russian

A Confession
Religious Autobiography
Leo Tolstoy
Russian

3.Look up “denormalization” and provide information on why anyone would want to do it.
In computing, denormalization is the process of attempting to optimize the read performance of a database by adding redundant data or by grouping data.[1][2] In some cases, denormalization is a means of addressing performance or scalability in relational database software.
A denormalized data model is not the same as a data model that has not been normalized, and denormalization should only take place after a satisfactory level of normalization has taken place and that any required constraints and/or rules have been created to deal with the inherent anomalies in the design. For example, all the relations are in third normal form and any relations with join and multi-valued dependencies are handled appropriately.

Examples of denormalization techniques include:
Materialised views, which may implement the following: Storing the count of the "many" objects in a one-to-many relationship as an attribute of the "one" relation
Adding attributes to a relation from another relation with which it will be joined

Star schemas, which are also known as fact-dimension models and have been extended to snowflake schemas
Prebuilt summarisation or OLAP cubes

Denormalization techniques are often used to improve the scalability of Web applications.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    16 F | You should limit repetition of attributes to the repetition of the primary key as a foreign key in a related table.…

    • 313 Words
    • 1 Page
    Satisfactory 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
  • Powerful Essays

    Pt2520 Unit 6

    • 1447 Words
    • 6 Pages

    Data independence, it exists when we were able to change the database structure or characteristics without affecting the…

    • 1447 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Nt1320 Unit 7

    • 2041 Words
    • 9 Pages

    The database design team transforms entities into tables and expresses relationships by defining foreign keys. The tables in the model are to be normalized before converting them into designs. Normalization is the process of converting poorly structured tables into two or more well-structured tables. Database practitioners classify tables into various normal forms according to the kinds of problems they have. Transforming a table into a normal form to remove duplicated data and other problems is called normalizing the table. After normalizing, the designer should represent the relationship among those tables to complete the design.…

    • 2041 Words
    • 9 Pages
    Good Essays
  • Satisfactory Essays

    Memo Week 3 Dbm 381

    • 329 Words
    • 2 Pages

    In efficiently storing data in the database, and eliminate redundancy, normalization is applied to be in five possible normal forms. Each form contains and enforces rules and some applies stricter rules based on the tables design. For the proposed database, we are using the third normal form design. This form will eliminate fields that do not depend on the key. In this form, tables meet the criteria for second normal form. Data that are not part of the key records will not be included in the tables. In other words, data that applies to more than one single record in the table will be placed in a separate table. The third normal form is more ideal because the data gathered by Taylor Ambulance Company frequently changes.…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This memo is to inform you that your service request SR-ta-001 has reached my desk and currently is in the process of being completed. The purpose of this memo is to report the progress on the service requests. Currently I am in the stage of normalizing the database to the third normal form. By normalizing the database to the third level of normalization I will ensure that the data is efficiently organized within the database by removing duplicate and redundant data from the database relations. Normalizing the data to the normal third will help free up space and make it easier for the users to retrieve the data by elimination of the same data stored in more than one relation. In addition, normalizing to this level will also ensure data integrity, scalability, and storage efficiency. I have made sure that that there are no repeating columns or rows within the same tables and each column has only one value and one data type therefore the level of 1 normalization has been completed. I then continued to normalize the database to the second level of normalization by ensuring that each nonkey attribute is fully dependent on the key columns of the table. Once level one and two normal form had been completed I continued by establishing primary and foreign keys along with relationships. I will keep in contact with you as the project nears completion.…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    • Define relational database architecture. Consider Microsoft® Access*', Microsoft SQL Server®', Oracle®, IBM DB2®, and so on.…

    • 352 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Cis 111

    • 790 Words
    • 4 Pages

    “The benefits of using the relational model would result in an easy to use, flexible, high performance database at a low cost.” (Anita, 2010) Therefore, allowing them to participate in the entire design process of the logical construction. The relational model provides an easy and flexible way of manipulating data with a system that offers:…

    • 790 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Data redundancy leads to data anomalies and corruption and generally should be avoided by design. Normalization would prevent redundancy and make the best possible usage of storage. By following the principles of normalization you can achieve a design that is highly flexible allowing the model to be extended when needed to account for new attributes, entity sets, and relationships. With normalization we can reduce redundancy, both to save space and to avoid inconsistencies in data which could affect information for reporting and…

    • 677 Words
    • 3 Pages
    Good Essays
  • Good Essays

    c1 sols

    • 1005 Words
    • 6 Pages

    4. Define a one-to-many relationship. An occurrence of data in one entity results in only one occurrence of data in the other entity.…

    • 1005 Words
    • 6 Pages
    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

    The Categorical Proposition

    • 2298 Words
    • 10 Pages

    "Some ID cards that are not easy documents to duplicate are forgeries that are not readily available on the Internet."…

    • 2298 Words
    • 10 Pages
    Satisfactory Essays
  • Powerful Essays

    IT Solutions

    • 2079 Words
    • 12 Pages

    A relation is said to be in Second Normal Form (2NF) if and only if it is already in first normal form and all non key attributes are dependent on the whole key. That is all partial dependencies are removed.…

    • 2079 Words
    • 12 Pages
    Powerful Essays
  • Better Essays

    The differences in the architectures are based on how the tables and records are related. Relational architecture is a very popular database. It is also the most mature and widely used database system in production. Relational databases can be used to track patient care in the form of treatments, outcomes of those treatments, and critical indicators of a patient 's current state such as blood pressure, heart rate, and blood glucose levels. They can also be used to interconnect with multiple informational systems throughout a healthcare facility. Relational databases have the potential to eliminate paper storage and transfer of information and to answer important questions about healthcare efficacy. Relational systems serve as the repositories of record behind nearly all online transactions and most online content management systems including social networks. This database also serves as a well-understood point of reference for new extensions and revolutions in database systems that may arise in the future. Another type of database architecture is the Object-oriented model. This model is powerful and quite complex. With the relatively new object-relational database model is the wide spread and simple relational database model extended by some basic object-oriented concepts. These allow them to work with the relational database model but also have some advantages of the…

    • 754 Words
    • 4 Pages
    Better Essays
  • Best Essays

    Structural dependence exists when it is possible to make changes in the file structure without affecting the application program’s ability to access the data.…

    • 2439 Words
    • 17 Pages
    Best Essays