Preview

homework

Good Essays
Open Document
Open Document
548 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
homework
Homework Assignment 6
Chapter 7

1. (6 points, 2 points ea)
Contrast the following terms:
a. base table; view
b. dynamic view; materialized view
c. catalog; schema

2. (6 points, 2 points ea) Distinguish among data definition commands, data manipulation commands, and data control commands.

3. (4 points) Describe the components and structure of a typical SQL environment.

4. (6 points, 2 points ea)
Drawing on material covered in prior chapters, explain the factors to be considered in deciding whether to create a key index for a table in SQL. (Hint: there are three.)

5. (6 points, 3 points ea)
a. What is the difference between COUNT, COUNT DISTINCT, and COUNT(*) in SQL? b. When will these three commands generate the same and different results?

6. (4 points, 2 points each)
a. What is the evaluation order for the Boolean operators (AND, OR, NOT) in an SQL command? b. How can one be sure that the operators will work in the desired order rather than in this prescribed order?

7. (6 points)
In what order are the clauses of an SQL statement processed?

The following are based on the class scheduling 3NF relations along with some sample data shown ERD depicted in Figure 6-11. Not shown in this figure are the data for an ASSIGNMENT relation, which represents a many-to-many relationship between faculty and sections.

8. (20 points, 2 points each) Write a database description for each of the relations shown, using SQL DDL (shorten, abbreviate, or change any data names as needed for your SQL version). Assume the following attribute data types:

STUDENT_ID (integer, primary key) STUDENT_NAME (25 characters) FACULTY_ID (integer, primary key) FACULTY_NAME (25 characters) COURSE_ID (8 characters, primary key) COURSE_NAME (15 characters) DATE_QUALIFIED (date) SECTION_ID (integer, primary key) SEMESTER (7 characters)

9. (9 points, 3 points ea)
Write SQL definition commands for each of the following queries: a.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Homework Unit 3

    • 354 Words
    • 2 Pages

    5. OR operator- Creates an expression that is true when with of the expressions are true.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit 5 assignment 1

    • 423 Words
    • 3 Pages

    6. When determining if a number is within a range, the OR operator would be best to use.…

    • 423 Words
    • 3 Pages
    Satisfactory 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
  • Satisfactory Essays

    Homework

    • 911 Words
    • 4 Pages

    * Harbor Beach Jacket $69.50 Beach Street Jacket $49.50 * Seal Beach Sweater EASY FIT $49.50 * First Jetty Sweater EASY FIT $44.50 * El Morro T-Shirt $17.50 $15 Belmont Shore Top EASY FIT $39.50 * San Elijo Top EASY FIT $34.50 * Manhattan Beach Top EASY FIT $39.50 * Victoria Beach Tank EASY FIT $34.50 River Jetties Top EASY FIT $34.50 * Swami's Beach Tank EASY FIT $17.50 $12 * Swami's Beach Tank EASY FIT $17.50 $12 * Cardiff Tank ONLINE ONLY $17.50 * Laguna Niguel Tank EASY FIT $19.50 $15 *…

    • 911 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Homework

    • 727 Words
    • 3 Pages

    1. Describe Rome in 1402. How did Rome begin to change once the papacy returned to Rome? Why did the papacy rebuild the city? What affect did the papal palaces have on pilgrims according to Paolo Cortesi?…

    • 727 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    Homework

    • 1033 Words
    • 3 Pages

    Over periods of time, many movie producers have tried to copy the exact details of the literacy text Les Miserables. Some audiences have enjoyed the movie versions, and some have enjoyed the literacy text. Overall the movie cannot compare to the amazing details of the text. Some may try to make the movie look and sound unique and remain in the boundaries of the book, but most times the literacy text takes the audience’s attention over the movie. The movie version laves out many descriptive details that just have to be included or else it does not stand a chance against the literacy text in comparison. Although there are differences and similarities between the video clip and the literacy text, it is very important to recognize comparing and contrasting the two, to understand the point of Les Miserables.…

    • 1033 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    homework

    • 895 Words
    • 6 Pages

    include a motor vehicle which has Bodily Injury limits less than your damages. This is…

    • 895 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Homework

    • 443 Words
    • 2 Pages

    2. ________________-the sum of all the chemical reactions that occur within the cells of an organism.…

    • 443 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    homework

    • 267 Words
    • 2 Pages

    4. What are the questions of fact? How does a persuasive speech on a question of fact differ from an informative speech? Give an example of a specific purpose statement for a persuasive speech on a question of fact.…

    • 267 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    homework

    • 483 Words
    • 2 Pages

    --U1, U2, U3...U6 unemployement (U6 are discouraged workers. 16%. part time workers who would prefer full time)…

    • 483 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    database

    • 4800 Words
    • 20 Pages

    The clause SELECT COUNT (*) results in a table with a single row and a single column.…

    • 4800 Words
    • 20 Pages
    Better Essays
  • Good Essays

    homework

    • 2600 Words
    • 11 Pages

    1. Your employees are skilled and experienced customer service representatives who perform non-routine tasks to solve unique customer problems. They provide the distinct competitive advantage for the company through quality, high-touch and responsive service. You are part of the succession planning for the company and will help select your replacement for the next manager/leader for the group. What would be your recommendations to the hiring team and why? (Be sure to consider company strategy, structure of work, and leadership style in your answer.)…

    • 2600 Words
    • 11 Pages
    Good Essays
  • Satisfactory Essays

    microsoft access

    • 470 Words
    • 2 Pages

    1b). Using the five tables below, create tables and link them through relationships. The tables should contain primary and foreign keys (where needed). (5 points)…

    • 470 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    praveen

    • 335 Words
    • 2 Pages

    03) Briefly describe how to using character and date values with substitution variables in SQL?…

    • 335 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    4. What are the pitfalls in relational database design? With a suitable example, explain the role…

    • 1795 Words
    • 8 Pages
    Satisfactory Essays

Related Topics