Preview

07

Good Essays
Open Document
Open Document
4772 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
07
Database Processing, 13e (Kroenke/Auer)
Chapter 7: SQL for Database Construction and Application Processing

1) The SQL CREATE TABLE statement is used to name a new table and describe the table's columns.
Answer: TRUE
Diff: 1 Page Ref: 281

2) The SQL keyword CONSTRAINT is used to define one of five types of constraints.
Answer: TRUE
Diff: 1 Page Ref: 283

3) The SQL keyword PRIMARY KEY is used to designate the column(s) that are the primary key for the table.
Answer: TRUE
Diff: 1 Page Ref: 283, 289

4) The SQL keyword CONSTRAINT is used to limit column values to specific values.
Answer: TRUE
Diff: 2 Page Ref: 283, 289

5) The SQL keyword CONSTRAINT is used in conjunction with the SQL keywords PRIMARY KEY and FOREIGN KEY.
Answer: TRUE
Diff: 1 Page Ref: 289-290

6) One advantage of using the CONSTRAINT command to define a primary key is that the database designer controls the name of the constraint.
Answer: TRUE
Diff: 3 Page Ref: 289-290

7) The SQL keyword UNIQUE is used to define alternative keys.
Answer: TRUE
Diff: 2 Page Ref: 290

8) If the table PRODUCT has a column PRICE, and PRICE has the data type Numeric (8,2), the value 98765 stored in that field will be displayed by the DBMS as 98765.00.
Answer: FALSE
Diff: 3 Page Ref: 289 Fig 7-4

9) If the table ITEM has a column WEIGHT, and WEIGHT has the data type Numeric (7,2), the value 4321 with be displayed by the DBMS as 43.21.
Answer: TRUE
Diff: 2 Page Ref: 289 Fig 7-4

10) The SQL keyword CHECK is used to limit column values to specific values.
Answer: TRUE
Diff: 2 Page Ref: 289, 292
11) The SQL keyword MODIFY is used to change the structure, properties or constraints of a table.
Answer: FALSE
Diff: 1 Page Ref: 298

12) Data values to be added to a table are specified by using the SQL VALUES clause.
Answer: TRUE
Diff: 2 Page Ref: 300-301

13) The SQL keyword DELETE is used to delete a table's structure.
Answer: FALSE
Diff: 1 Page

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

    Nt1310 Unit 1 Quiz

    • 1980 Words
    • 8 Pages

    6 . For an unconditional approach to a particular part of a complex PL/SQL block, which of the following control structures can be used?…

    • 1980 Words
    • 8 Pages
    Good 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

    If you allow nulls, you can leave that column blank when you are entering data.…

    • 327 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

    Unit 18 - Database P1, M1

    • 995 Words
    • 4 Pages

    A Table is where you are organised and store data so you have to create the table before store any data. By creating table, you need to define few things, Fields name, Data type, and the Description.…

    • 995 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    10. What purpose does a primary key serve in a table? It serves as the identifier for that table.…

    • 421 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    • Note. A key is a unique identifier that distinguishes rows within a database table. To view examples, please refer to your text.…

    • 103 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    04

    • 4586 Words
    • 34 Pages

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

    • 4586 Words
    • 34 Pages
    Satisfactory Essays
  • Good Essays

    Data Base

    • 2312 Words
    • 10 Pages

    While designing and defining tables in databases, it is important to find out the data type for each column in the data tables. A data type is an attribute which defines the type of data an object can retain: integer, string, data and time, etc. There are basically three main types: text, numbers and date/times. The data types are different, depending on the database management system (DBMS), the various types of which include SQL Server, Oracle and MySQL.…

    • 2312 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    Database and Page Ref

    • 4307 Words
    • 19 Pages

    8) One important reason for documenting changes to the database structure is for diagnosing errors.…

    • 4307 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Questions Unit 2 Pt2520

    • 389 Words
    • 2 Pages

    * Natural keys prevent duplicate rows, because the attributes are part of the primary key. Any duplicate set of data will be rejected from being inserted by plain primary key logic (unique and not null). This dramatically increases the overall data quality compared to artificial keys.…

    • 389 Words
    • 2 Pages
    Good Essays
  • Better Essays

    Normalization of the database: This is a critical step for making the database. Normalization will help create table structures as well…

    • 3100 Words
    • 13 Pages
    Better Essays
  • Satisfactory Essays

    Dbms Utilization

    • 262 Words
    • 2 Pages

    The most popular definition of an RDBMS is often considered to be less precise, some argue that the presentation of data as a collection of rows and columns are qualified enough to be regarded as an RDBMS. Typically, a database is said to meet the criteria as RDBMS if it meets the laws specified in 12 Codd law, but in fact, most database systems do not fully support the implementation of these laws Codd.…

    • 262 Words
    • 2 Pages
    Satisfactory Essays

Related Topics