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

    Homework

    • 463 Words
    • 2 Pages

    The GASB provides requirements for investment pools. First, internal investment pools, which account for investments of the reporting entity, are to be spread out to the funds providing the resources, when preparing financial statements. Any governments participate in external investment pools where investment…

    • 463 Words
    • 2 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

    • 450 Words
    • 3 Pages

    Appendix D JavaScript Objects Read the directions carefully and write JavaScript code that addresses the requirements. Copy your code directly into the appendix document and post your assignment. Write a line of code using the Location object to return the uniform resource locator (URL) of a web page to a variable called myWebPage. Write a line of code using the Navigator object to return the web browser name to a variable called myBrowserName. Write a line of code using the Screen object to return the height of the display screen, not including operating system features such as the Microsoft Windows Taskbar, to a variable called myScreenHeight. Write a line of JavaScript code using the Windows object and other properties to open a new web browser window with the Google home page displaying and no menu bar. html head script…

    • 450 Words
    • 3 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

    Discussion Board

    • 460 Words
    • 2 Pages

    I need to complete this assignment but I am having a hard time understanding it. Can someone give me some pointers on what to write on the DB? I just need a guide to start off with.…

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

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

    • 1795 Words
    • 8 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

Related Topics