Guide To SQL 9th Edition by Pratt Last Solution Manual
Guide To SQL 9th Edition by Pratt Last Solution Manual
Testbank:
https://testbankpack.com/p/test-bank-for-guide-to-sql-9th-edition-pratt-
111152727x-9781111527273/
Solution Manual
https://testbankpack.com/p/solution-manual-for-guide-to-sql-9th-edition-
pratt-111152727x-9781111527273/
Solutions
8. To qualify the name of a field, indicate the table in which the field appears. You do this
by preceding the name of the field with the name of the table and a period.
A Guide to SQL, Ninth Edition Solutions 2-2
9. A column (attribute), B, is functionally dependent on another column, A (or possibly a
collection of columns), if at any point in time a value for A determines a single value
for B.
10. Column A (or a collection of columns) is the primary key for a table if (1) All columns
in the table are functionally dependent on A and (2) No subcollection of the columns in
A (assuming A is a collection of columns and not just a single column) also has
property 1. The primary key of the CUSTOMER table is the CUSTOMER_NUM
column. The primary key of the TRIP table is the TRIP_ID column. The primary key
of the GUIDE table is the GUIDE_NUM column. The primary key of the
A Guide to SQL, Ninth Edition Solutions 2-3
Relations:
DEPARTMENT (DEPARTMENT_NUM, DEPARTMENT_NAME)
ADVISOR (ADVISOR_NUM, ADVISOR_LAST_NAME, ADVISOR_FIRST_NAME,
DEPARTMENT_NUM)
COURSE (COURSE_CODE, DESCRIPTION)
STUDENT (STUDENT_NUM, STUDENT_LAST_NAME, STUDENT_FIRST_NAME,
ADVISOR_NUM
STUDENT_COURSE (STUDENT_NUM, COURSE_CODE, GRADE)
Entity-Relationship diagram: (NOTE: Your rectangles may be in different
positions as long as they are connected by the same arrows.)
DEPARTMENT
ADVISOR
12. A table (relation) is in first normal form (1NF) if it does not contain repeating groups.
13. A table (relation) is in second normal form if it is in first normal form and no nonkey
column is dependent on only a portion of the primary key. If a table is not in second
normal form, the table contains redundancy, which leads to a variety of update
anomalies. A change in a value can require not just one change, but several. There is
the possibility of inconsistent data. Adding additional data to the database may not be
possible without creating artificial values for part of the key. Finally, deletions of
certain items can result in inadvertently deleting crucial information from the
database.
A Guide to SQL, Ninth Edition Solutions 2-4
14. A table is in third normal form if it is in second normal form and if the only
determinants it contains are candidate keys. A change in a value can require not just
one change, but several. There is the possibility of inconsistent data. Adding certain
additional data to the database may not be possible without creating artificial rows in
the table. Finally, deletions of certain items can result in inadvertently deleting crucial
information from the database.
15.
STUDENT (STUDENT_NUM, STUDENT_LAST_NAME, STUDENT_FIRST_NAME,
ADVISOR_NUM)
ADVISOR (ADVISOR_NUM, ADVISOR_LAST_NAME, ADVISOR_FIRST_NAME)
COURSE (COURSE_CODE, DESCRIPTION)
STUDENT_COURSE (STUDENT_NUM, COURSE_CODE, GRADE)
16. [Critical Thinking] If a student can have more than one advisor, there is a many-to-
many relatioship between students and advisors. Remove ADVISOR_NUM from the
STUDENT relation and add a relation STUDENT_ADVISOR)
STUDENT (STUDENT_NUM, STUDENT_LAST_NAME, STUDENT_FIRST_NAME)
ADVISOR (ADVISOR_NUM, ADVISOR_LAST_NAME, ADVISOR_FIRST_NAME)
STUDENT_ADVISOR (ADVISOR_NUM, STUDENT_NUM)
COURSE (COURSE_CODE, DESCRIPTION)
STUDENT_COURSE (STUDENT_NUM, COURSE_CODE, GRADE)
17. [Critical Thinking] If students can repeat a course, then the STUDENT_NUM,
COURSE_CODE, YEAR, and SEMESTER determine the grade.
STUDENT (STUDENT_NUM, STUDENT_LAST_NAME, STUDENT_FIRST_NAME,
ADVISOR_NUM)
ADVISOR (ADVISOR_NUM, ADVISOR_LAST_NAME, ADVISOR_FIRST_NAME)
COURSE (COURSE_CODE, DESCRIPTION)
STUDENT_COURSE (STUDENT_NUM, COURSE_CODE, YEAR, SEMESTER, GRADE)
1.D. The copyright laws of the place where you are located also govern
what you can do with this work. Copyright laws in most countries are in
a constant state of change. If you are outside the United States, check the
laws of your country in addition to the terms of this agreement before
downloading, copying, displaying, performing, distributing or creating
derivative works based on this work or any other Project Gutenberg™
work. The Foundation makes no representations concerning the
copyright status of any work in any country other than the United States.
1.E.1. The following sentence, with active links to, or other immediate
access to, the full Project Gutenberg™ License must appear prominently
whenever any copy of a Project Gutenberg™ work (any work on which
the phrase “Project Gutenberg” appears, or with which the phrase
“Project Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:
This eBook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
eBook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form, including
any word processing or hypertext form. However, if you provide access
to or distribute copies of a Project Gutenberg™ work in a format other
than “Plain Vanilla ASCII” or other format used in the official version
posted on the official Project Gutenberg™ website (www.gutenberg.org),
you must, at no additional cost, fee or expense to the user, provide a
copy, a means of exporting a copy, or a means of obtaining a copy upon
request, of the work in its original “Plain Vanilla ASCII” or other form.
Any alternate format must include the full Project Gutenberg™ License
as specified in paragraph 1.E.1.
1.E.7. Do not charge a fee for access to, viewing, displaying, performing,
copying or distributing any Project Gutenberg™ works unless you
comply with paragraph 1.E.8 or 1.E.9.
1.E.8. You may charge a reasonable fee for copies of or providing access
to or distributing Project Gutenberg™ electronic works provided that:
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the method
you already use to calculate your applicable taxes. The fee is owed
to the owner of the Project Gutenberg™ trademark, but he has
agreed to donate royalties under this paragraph to the Project
Gutenberg Literary Archive Foundation. Royalty payments must be
paid within 60 days following each date on which you prepare (or
are legally required to prepare) your periodic tax returns. Royalty
payments should be clearly marked as such and sent to the Project
Gutenberg Literary Archive Foundation at the address specified in
Section 4, “Information about donations to the Project Gutenberg
Literary Archive Foundation.”
• You provide a full refund of any money paid by a user who notifies
you in writing (or by e-mail) within 30 days of receipt that s/he does
not agree to the terms of the full Project Gutenberg™ License. You
must require such a user to return or destroy all copies of the works
possessed in a physical medium and discontinue all use of and all
access to other copies of Project Gutenberg™ works.
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.1. Project Gutenberg volunteers and employees expend considerable
effort to identify, do copyright research on, transcribe and proofread
works not protected by U.S. copyright law in creating the Project
Gutenberg™ collection. Despite these efforts, Project Gutenberg™
electronic works, and the medium on which they may be stored, may
contain “Defects,” such as, but not limited to, incomplete, inaccurate or
corrupt data, transcription errors, a copyright or other intellectual
property infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be read by
your equipment.
The Foundation’s business office is located at 809 North 1500 West, Salt
Lake City, UT 84116, (801) 596-1887. Email contact links and up to date
contact information can be found at the Foundation’s website and official
page at www.gutenberg.org/contact
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of other
ways including checks, online payments and credit card donations. To
donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search facility:
www.gutenberg.org.