Solution Manual For Oracle 12c: SQL 3rd Edition Casteel
Solution Manual For Oracle 12c: SQL 3rd Edition Casteel
Solution Manual For Oracle 12c: SQL 3rd Edition Casteel
com
http://testbankbell.com/product/solution-manual-for-
oracle-12c-sql-3rd-edition-casteel/
OR CLICK BUTTON
DOWLOAD EBOOK
https://testbankbell.com/product/solution-manual-for-oracle-sql-
by-example-4-e-4th-edition-alice-rischert/
https://testbankbell.com/product/solution-manual-for-sql-
fundamentals-3-e-3rd-edition-0137126026/
https://testbankbell.com/product/test-bank-for-guide-to-
oracle-10g-5th-edition-morrison/
https://testbankbell.com/product/solution-manual-for-
stationen-3rd-edition/
Solution Manual for GLOBAL, 3rd Edition
https://testbankbell.com/product/solution-manual-for-global-3rd-
edition/
https://testbankbell.com/product/solution-manual-for-strategic-
management-3rd-edition/
https://testbankbell.com/product/solution-manual-for-comp-3-3rd-
edition/
https://testbankbell.com/product/solution-manual-for-relg-
world-3rd-edition/
https://testbankbell.com/product/solution-manual-for-integrated-
business-projects-3rd-edition/
Oracle 12c SQL, ISBN: 9781305251038
Ch. 1 1
Chapter 1 Solutions
Review Questions
1. What is the purpose of an E-R model? To identify the entities about which the database
should store data and the relationships among those entities.
3. Give an example of three entities that might exist in a database for a medical office and some
attributes that would be stored in a table for each entity. Doctor: name, address, Social
Security Number, medical ID number; Patient: name, address, Social Security Number,
insurance policy information, medical history; Appointment: date, time, patient, doctor.
4. Define a one-to-many relationship. An occurrence of data in one entity can result in zero,
one, or many occurrences of the data in the other entity. Zero (or no) related records can
occur only in optional relationships.
5. Discuss the problems that can be caused by data redundancy. Can create data anomalies or
inconsistencies in the data, making it unreliable.
6. Explain the role of a primary key. The primary key is used to uniquely identify each row in a
table.
7. Describe how a foreign key is different from a primary key. A foreign key is used to
reference or join data in different tables. In most cases, the foreign key references a primary
key in another table. In a one-to-many relationship, the foreign key is stored in the “many”
entity.
8. List the steps of the normalization process. First, a primary key is identified and any
repeating groups are identified (1NF). Second, any partial dependencies are eliminated
(2NF). Third, any transitive dependencies are eliminated (3NF).
Oracle 12c SQL, ISBN: 9781305251038
Ch. 1 2
9. What type of relationship can’t be stored in a database? Why? A many-to-many relationship
can’t be stored in a database because there would be no way to restructure or rejoin the data
correctly.
10. Identify at least three reasons an organization might analyze historical sales data stored in
its database. Answers will vary. To determine the necessary inventory levels to support sales
fluctuations, to project employee-scheduling requirements, to determine appropriate
marketing campaigns based on historic purchasing patterns, and so forth.
Multiple Choice
1. d
2. b
3. d
4. a
5. c
6. a
7. a
8. d
9. d
10. c
11. b
12. b
13. a
14. b
15. b
16. d
17. c
18. c
19. a
20. c
Hands-On Assignments
1. Which tables and fields would you access to determine which book titles have been
purchased by a customer and when the order shipped? CUSTOMERS: Customer#;
ORDERS: Order#, Shipdate, Customer#; ORDERITEMS: Order#, ISBN; BOOKS: ISBN,
Title
2. How would you determine which orders have not yet been shipped to the customer? Identify
all orders that don’t have an entry for the date shipped.
3. If management needed to determine which book category generated the most sales in April
2009, which tables and fields would they consult to derive this information? ORDERS:
Oracle 12c SQL, ISBN: 9781305251038
Ch. 1 3
Orderdate, Order#; ORDERITEMS: Order#, ISBN, Quantity, Paideach; BOOKS: ISBN,
Category
4. Explain how you would determine how much profit was generated from orders placed in
April 2009. Determine the amount of profit generated by each book on an order item
(Paideach-Cost), multiply the profit for each book by the quantity purchased, and then total
the amount of profit generated by all orders placed in April.
5. If a customer inquired about a book written in 2003 by an author named Thompson, which
access path (tables and fields) would you need to follow to find the list of books meeting the
customer’s request? AUTHOR: Lname, AuthorID; BOOKAUTHOR: AuthorID, ISBN;
BOOKS: ISBN, Pubdate.
6. A college needs to track placement test scores for all incoming students. Each student can
take a variety of tests, including English and math. Some students are required to take
placement tests because of previous coursework.
Students Tests
7. Every employee in a company is assigned to one department. Every department can contain
many employees.
Departments Employees
8. A movie megaplex needs to collect and analyze movie attendance data. The company
maintains 16 theaters in a single location. Each movie offered can be shown in one or more
of the available theaters and is typically scheduled for three to six showings in a day. The
movies are rotated through the theaters to ensure that each is shown in one of the stadium-
seating theaters at least once.
10. Data for an information technology conference needs to be collected. The conference has a
variety of sessions scheduled over a two-day period. All attendees must register for the
sessions they plan to attend. Some speakers are presenting only one session, whereas others
are handling multiple sessions. Each session has only one speaker.
Advanced Challenge
Results of the normalization process will vary, depending on the assumptions made by the
student.
Unnormalized:
first name, last name, billing address, quantity, retail price, shipping address, order date, ship
date
1NF:
ORDERS: order #, shipping address, quantity, retail price, order date, ship date
2NF:
Oracle 12c SQL, ISBN: 9781305251038
Ch. 1 5
CUSTOMERS: customer #, first name, last name, billing address
3NF:
Additional entities and/or attributes: Answers will vary greatly. A Jails entity is an example of a
possible additional entity. Image items, such as a criminal photo and fingerprints, are examples
of additional attributes that might be required.
Oracle 12c SQL, ISBN: 9781305251038
Ch. 1 6
City Jail Database E-R
Model
Aliases Appeals
Alias_ID
Criminal_ID Appeal_ID
Alias Crime_ID
Filing_date
Crimes Hearing_date
Status
Crime_ID
Criminals Criminal_ID
Criminal_ID Classification
Last Date_charged Officers
First Status
Street Officer_ID
Hearing_date
City Last
Appeal_cut_date
State First
Zip Precinct
Phone Badge
V_status Phone
P_status Status
Crime_officers
Sentences
Crime_ID
Sentence_ID Officer_ID
Criminal_ID
Type
Prob_ID
Start_date Crime_charges
End_date
Violations Charge_ID
Crime_ID
Crime_code
Charge_status
Fine_amount
Prob_Officers Court_fee
Amount_paid
Prob_ID Pay_due_date
Last
First
Street
City
Crime_codes
State
Zip
Crime_code
Phone
Code_description
Email
Status
Another random document with
no related content on Scribd:
books, not from any scholarly interest, but simply because it became
the fashion to do so. Seneca speaks of great collections of books in
the hands of men who had never so much as read their titles.[255]
Such purchases must nevertheless have been important for the
encouragement of literary work in Rome. Many of the public baths
were furnished with libraries[255]; a country house could not be
complete without a library, says Cicero[256]; each one of the villas of
Italicus, according to Pliny, had its library[257]; Trimalchio, says
Petronius,[258] possessed no less than three. A statue of Hermes,
found in Rome, bears an epigram which speaks of βύβλοι in the
grove of the Muses, and which undoubtedly had been intended to be
placed in the library of some country villa.[259]
Among some of the larger private collections referred to are those
of the grammarian Epaphroditus, who possessed 30,000 volumes,
[260] and of Serenus Sammoaicus, who is credited with over 60,000
volumes.[261]
The impecunious Martial, on the other hand, tells us that his own
collection comprised less than 120 rolls.[262]
We have already referred to the practical interest taken by Martial
in the details of bookselling. We find him quoting the authority of the
booksellers against certain critics, who were not willing to rank
Lucian as a poet of repute, and showing that after thirty years or
more there was still a steady demand for Lucian’s poetical works.
Martial takes the ground that continued popular appreciation is
sufficient evidence of literary repute, whatever the critics may say to
the contrary.[263]
The same satirist refers more than once to many amiable and
deserving authors, who, despite their talents, succeeded in reaching
no public at all other than the unhappy guests who learned from
experience to dread the admirable dinners which had to be paid for
by listening to literary productions. The practice of recitations on the
part of the host must have been quite general, if when no such
performance was intended it was considered desirable to mention
the fact in the invitations. Martial quotes himself as promising to
Stella in inviting him to dinner, that under no provocation will he be
tempted to recite anything, not even though Stella should recite his
own poem on the “Wars of the Giants.”[264]
Martial explains the inferiority of the literary production of the reign
of Domitian by the fact that there was no Mæcenas to give
encouragement to authors. All the great poets of the Augustan age
had, as he recalls, been placed in easy circumstances (as far as they
were not so already) either through the direct bounty of Mæcenas or
as a result of his influence over the Court. According to the view of
Martial, literature possessing any lasting value is impossible without
the leisure and freedom from care which comes from an assured
income. Mæcenas, and the fashion of subsidizing literature initiated
by him, appear in a crude way, in presenting encouragement for
literary work, to have supplied the place of a copyright law.
There may, of course, often have been question as to what
constituted a “proper compensation” for a poetical effort. Tacitus
speaks of a certain Roman knight, C. Lutorius Priscus, who had won
some repute from a poem on the death of Germanicus. He
thereupon composed another poem on the death of Drusus (son of
Tiberius), who was at the time seriously ill, but who was perverse
enough to recover. Priscus had, however, already read his poem
aloud, after which he was promptly put to death under a vote of the
Senate, whether on account of the badness of the poem, or because
he had prophesied the death of the Prince, Tacitus does not state.
[265]