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

    2. What is a primary key? Each table usually has one column designated as a primary key . This key uniquely identifies each row in the table.…

    • 330 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    It203 Homework 5

    • 319 Words
    • 2 Pages

    A primary key is specified by the selecting the column, right-clicking, then selecting Set Primary Key.…

    • 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

    cis3730_Exam1_Studyguide

    • 512 Words
    • 2 Pages

    Given a table or a set of tables, be able to specify their primary keys and foreign keys.…

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

    Pt2520 Final Answers 1/3

    • 329 Words
    • 2 Pages

    which of the following best describes an attribute that can be primary key? candidate key…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    b) You are to clearly mark Primary and Foreign Keys as shown in the sample below:…

    • 1494 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    True False

    • 378 Words
    • 2 Pages

    1. A requirement is something a database needs to do in order to fulfill its purpose.…

    • 378 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

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

    • 649 Words
    • 3 Pages
    Powerful Essays
  • Powerful Essays

    Music

    • 1176 Words
    • 5 Pages

    | Primary Key – may contain alpha and numeric. You create this, do not use autonumber.…

    • 1176 Words
    • 5 Pages
    Powerful 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