Preview

04

Satisfactory Essays
Open Document
Open Document
4586 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
04
Chapter 4: Constraints

TRUE/FALSE

1. Constraints are rules used to enforce business rules, practices, and policies.

ANS: T PTS: 1 REF: 91

2. Constraints are used to ensure the accuracy and integrity of the data contained in the database.

ANS: T PTS: 1 REF: 91

3. A constraint can only be created as part of the CREATE TABLE command.

ANS: F PTS: 1 REF: 93

4. A constraint name can consist of up to 10 characters.

ANS: F PTS: 1 REF: 93

5. A primary key is usually given the abbreviation _pk in the constraint name if the name is assigned by the user.

ANS: T PTS: 1 REF: 93

6. Any constraint can be created at the table or the column level.

ANS: F PTS: 1 REF: 94

7. A foreign key constraint can only be created at the column level.

ANS: F PTS: 1 REF: 94 | 99

8. A NOT NULL constraint can only be created at the column level.

ANS: T PTS: 1 REF: 94

9. A constraint for a composite primary key must be created at the table level.

ANS: T PTS: 1 REF: 96

10. The CONSTRAINT keyword is required if the user is going to assign a name to a constraint.

ANS: T PTS: 1 REF: 94

11. A constraint is always enforced at the table level.

ANS: T PTS: 1 REF: 95

12. The table level approach can be used to create any constraint, except a CHECK constraint.

ANS: F PTS: 1 REF: 94

13. A PRIMARY KEY constraint will make certain the column designated as the primary key does not contain a NULL value.

ANS: T PTS: 1 REF: 95

14. The MODIFY clause is used with the ALTER TABLE command to add a PRIMARY KEY constraint to an existing table.

ANS: F PTS: 1 REF: 96

15. Only one PRIMARY KEY constraint can exist for each table.

ANS: T PTS: 1 REF: 97

16. A FOREIGN KEY constraint can be added to the column of a table to ensure that the referenced data value actually exists in the other table.

ANS: T PTS: 1 REF: 99

17. If a FOREIGN KEY constraint exists, then a record cannot be deleted from the parent table if that row is referenced by an entry in the child table.

ANS: T PTS:

You May Also Find These Documents Helpful

  • Satisfactory Essays

    PT2520 Unit7Labs Tramil

    • 330 Words
    • 1 Page

    13. What is referential integrity? Exists when every foreign key relates to an existing primary key. There are no orphan records in child tables that have no reference in a parent table.…

    • 330 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    It203 Homework 5

    • 319 Words
    • 2 Pages

    5. What restrictions does referential integrity place on the way data is entered into tables?…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    No Ans: CREATE TABLE dept (deptno NUMBER(2) NOT NULL, dname VARCHAR2(30) NOT NULL, loc VARCHAR2(20) CONSTRAINT deptno_pk PRIMARY KEY (deptno)); b. Table name: EMP i. Column datatype Mandatory? PK? FK?…

    • 1169 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Referential Integrity exists when every foreign key relates to an existing primary key. There are no orphan records in child tables that have no reference in a parent table.…

    • 327 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    7) In a one-to-many relationship, each row on in the primary key table can be related to any number of rows in the foreign key or child table.…

    • 613 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Pt2520 Final Answers 1/3

    • 329 Words
    • 2 Pages

    which of these best defines data integrity? The accuracy and correctness of data in database…

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

    cis3730_Exam1_Studyguide

    • 512 Words
    • 2 Pages

    Be able to give examples of tables, specify their primary keys, and explain how they are related through foreign keys.…

    • 512 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Defining a(n) primary key in a second table creates a relationship between that table and the table where the primary key was first defined. _________________________…

    • 585 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    a guide to mysql ch 7

    • 1287 Words
    • 9 Pages

    During the CREATE TABLE command, but can be modified using the ADD PRIMARY KEY command…

    • 1287 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    References: Taylor, B. M. (2010). Introduction to management science (11th ed.). Upper Saddle River, NJ:…

    • 649 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Information Systems

    • 386 Words
    • 2 Pages

    d) Explain how the two tables are related. Which table contains the foreign key? What is the foreign key?…

    • 386 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The Goal- Summary

    • 1385 Words
    • 6 Pages

    The book tells us the story of a plant manager, Alex Rogo, who is trying to save his plant, at least show some improvements within 90 days to keep it open. Alex 's primary problem is that his plant can not consistently get a quality product out of the plant on time at the cost that can beat the competition. His plant is losing money and if he cannot make it profitable, the management eventually will decide to close the plant. In his fight to save his plant, a physician, Jonah, helps him in achieving his objectives.…

    • 1385 Words
    • 6 Pages
    Good Essays
  • Better Essays

    In order to better utilize the TOC, it is important to identify what type of constraints there are. The two basic types are physical constraints and non-physical constraints. A physical constraint is something like the physical capacity of a machine. A non-physical constraint might be something like demand for a product, a corporate procedure, or an individual 's paradigm for looking at the world (pg. 46).…

    • 1236 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    Homework

    • 11623 Words
    • 47 Pages

    This article gives a good introduction to the objectives and techniques of the theory of constraints (TOC). There is also a…

    • 11623 Words
    • 47 Pages
    Powerful Essays

Related Topics