Instant Download for Database Systems A Practical Approach to Design Implementation and Management 6th Edition Connolly Solutions Manual 2024 Full Chapters in PDF
Instant Download for Database Systems A Practical Approach to Design Implementation and Management 6th Edition Connolly Solutions Manual 2024 Full Chapters in PDF
https://testbankfan.com/product/database-systems-design-
implementation-and-management-12th-edition-coronel-solutions-manual/
https://testbankfan.com/product/database-systems-design-
implementation-and-management-13th-edition-coronel-solutions-manual/
https://testbankfan.com/product/database-systems-design-
implementation-and-management-11th-edition-coronel-solutions-manual/
https://testbankfan.com/product/horngrens-accounting-global-
edition-10th-edition-nobles-test-bank/
Introduction to Operations Research 9th Edition Hillier
Solutions Manual
https://testbankfan.com/product/introduction-to-operations-
research-9th-edition-hillier-solutions-manual/
https://testbankfan.com/product/introduction-to-mechanical-
engineering-3rd-edition-wickert-solutions-manual/
https://testbankfan.com/product/fundamentals-of-management-8th-
edition-robbins-test-bank/
https://testbankfan.com/product/dental-materials-foundations-and-
applications-11th-edition-powers-test-bank/
https://testbankfan.com/product/general-organic-and-biological-
chemistry-2nd-edition-frost-test-bank/
Organizational Communication Balancing Creativity and
Constraint 7th Edition Eisenberg Solutions Manual
https://testbankfan.com/product/organizational-communication-
balancing-creativity-and-constraint-7th-edition-eisenberg-solutions-
manual/
SOLUTIONS TO REVIEW QUESTIONS
AND EXERCISES
2
Database Systems: Instructor’s Guide - Part III
Review Questions
27.2 Compare and contrast the different definitions of object-oriented data models.
27.3 Describe the main modeling primitives of the functional data model.
The main modeling primitives are entities and functional relationships (see Section 27.2.2).
27.4 What is a persistent programming language and how does it differ from an OODBMS?
A language that provides its users with the ability to (transparently) preserve data across
successive executions of a program, and even allows such data to be used by different
programs (see Section 27.2.3). Main difference between PPL and OODBMS is that the
OODBMS tends to provide more DBMS-related services.
27.5 Discuss the difference between the two-level storage model used by conventional DBMSs and
the single-level storage model used by OODBMSs.
27.6 How does this single-level storage model affect data access?
27.7 Describe the main strategies that can be used to create persistent objects.
Checkpointing, serialization, and explicit paging. Explicit paging includes reachability-based and
allocation-based persistence (see Section 27.3.3).
27.8 What is pointer swizzling? Discuss the different approaches to pointer swizzling.
3
Database Systems: Instructor’s Guide - Part III
27.9 Describe the types of transaction protocol that can be useful in design applications.
27.10 Discuss why version management may be a useful facility for some applications.
There are many applications that need access to the previous state of an object. For example, the
development of a particular design is often an experimental and incremental process, the scope of
which changes with time. It is therefore necessary in databases that store designs to keep track of
the evolution of design objects and the changes made to a design by various transactions. See
Section 27.4.2.
27.11 Discuss why schema control may be a useful facility for some applications.
Engineering design is an incremental process and evolves with time. To support this process,
applications require considerable flexibility in dynamically defining and modifying the database
schema. For example, it should be possible to modify class definitions, the inheritance structure,
and specifications of attributes and methods without requiring system shutdown. See Section
27.4.3.
• Structural diagrams, which describe the static relationships between components, and
include:
o class diagrams,
o object diagrams,
o component diagrams,
o deployment diagrams.
• Behavioral diagrams, which describe the dynamic relationships between components, and
include:
o use case diagrams,
o sequence diagrams,
4
Database Systems: Instructor’s Guide - Part III
o collaboration diagrams,
o statechart diagrams,
o activity diagrams.
Exercises
27.16 For the DreamHome case study documented in Appendix A, suggest attributes and methods
that would be appropriate for Branch, Staff, and PropertyForRent classes.
The attributes should be similar to those documented in the textbook. The student would be
expected to come up with standard get/set methods, such as GetStaffSalary, PutStaffSalary,
and then methods for registering new properties for rent, new owners, new clients,
appointments for viewings, and so on.
27.17 Produce use case diagrams and a set of associated sequence diagrams for the DreamHome case
study documented in Appendix A.
Students should use the “Data Transactions” sections of Appendix A to derive a list of use
cases. The diagrams should be similar to those seen in Figure 27.20 for use cases and 27.21
for sequence diagrams. In Section A.1 the actor is Branch User, and in Section A.2 the actor is
Staff User.
27.18 Produce use case diagrams and a set of associated sequence diagrams for the University
Accommodation Office case study documented in Appendix B.1.
Students should use the “Query Transactions” sections of Appendix B.1 to derive a list of use
cases. The diagrams should be similar to those seen in Figure 27.20 for use cases and 27.21
for sequence diagrams. The actor is administrative user.
27.19 Produce use case diagrams and a set of associated sequence diagrams for the Easy Drive
School of Motoring case study documented in Appendix B.2.
Students should use the “Query Transactions” sections of Appendix B.2 to derive a list of use
cases. The diagrams should be similar to those seen in Figure 27.20 for use cases and 27.21
for sequence diagrams. The actor is administrative user.
27.20 Produce use case diagrams and a set of associated sequence diagrams for the Wellmeadows
Hospital case study documented in Appendix B.3.
Students should use the “Transaction Requirements” sections of Appendix B.3 to derive a list
of use cases. The diagrams should be similar to those seen in Figure 27.20 for use cases and
27.21 for sequence diagrams. The actor is hospital worker.
5
Database Systems: Instructor’s Guide - Part III
27.21 You have been asked by the Managing Director of DreamHome to investigate and prepare a
report on the applicability of an OODBMS for your organization. The report should compare
the technology of the RDBMS with that of the OODBMS, and should address the advantages
and disadvantages of implementing an OODBMS within the organization, and any perceived
problem areas. Finally, the report should contain a fully justified set of conclusions on the
applicability of the OODBMS for DreamHome.
27.22 For the relational Hotel schema in the Exercises at the end of Chapter 4, suggest a number of
methods that would be applicable to the system. Produce an object-oriented schema for the
system.
Room Hotel
Contains
roomNo {PK} hotelNo {PK}
hotelNo {PK} 1..* 1..1 hotelName
type city
price
createNewHotel
createNewRoom destroyHotel
destroyRoom changeHotelName
changeRoomPrice getHotelName
changeRoomType
getRoomPrice
getRoomType
1..1
Gets
1..*
6
Database Systems: Instructor’s Guide - Part III
27.23 For the relational Project schema in the Exercises at the end of Chapter 5, suggest a number of
methods that would be applicable to the system. Produce an object-oriented schema for the
system.
27.24 For the relational Library schema in the Exercises at the end of Chapter 5, suggest a number of
methods that would be applicable to the system. Produce an object-oriented schema for the
system.
27.25 Produce an object-oriented database design for the DreamHome case study documented in
Appendix A. State any assumptions necessary to support your design.
The student should produce a model similar to Figure 16.9 with some methods added. You
may prefer to get the student to do this particular exercise in two parts: one to produce an
object-oriented design for the Staff view and one for the Branch view.
27.26 Produce an object-oriented database design for the University Accommodation Office case study
presented in Appendix B.1. State any assumptions necessary to support your design.
The student should produce a model similar to that given in the solution to Exercise 16.16 with
some methods added.
27.27 Produce an object-oriented database design for the EasyDrive School of Motoring case study
presented in Appendix B.2. State any assumptions necessary to support your design.
The student should produce a model similar to that given in the solution to Exercise 16.18 with
some methods added.
27.28 Produce an object-oriented database design for the Wellmeadows Hospital case study presented
in Appendix B.3. State any assumptions necessary to support your design.
The student should produce a model similar to that given in the solution to Exercise 16.21 with
some methods added. Again, you may prefer to get the student to do this particular exercise based
on the particular views that have been identified (Charge Nurse, Director, and Personnel).
7
Database Systems: Instructor’s Guide - Part III
27.29 Repeat Exercises 27.22 to 27.28 but produce a schema using the functional data model.
Diagramatically illustrate each schema.
string
string string
string
hotelName hotelName
string city
hotelNo
RoomIn city string
hotelNo Room Hotel
sex
Contains
Gets BookingFor
string
guestName
date
MadeBy guestNo
dateFrom string
Booking
Guest
dateTo Makes
date guestAddress
string
8
Database Systems: Instructor’s Guide - Part III
string
invoiceNo
Invoice
Hall Flat
Has string
matricNo
InspectionFor
Inspection Student
ManagedBy Manages
UndertakenBy HasNOK
staffNo courseNo
string string
Using the above two diagrams as exemplars and the solutions to Exercises 27.23 and 25.28,
should be relatively straightforward to create the diagrams for the remaining case studies.
9
Database Systems: Instructor’s Guide - Part III
27.30 Using the rules for schema consistency given in Section 27.4.3 and the sample schema given
in Figure 27.11, consider each of the following modifications and state what the effect of the
change should be to the schema:
10
Database Systems: Instructor’s Guide - Part III
Review Questions
28.1 Discuss the main concepts of the ODMG Object Model. Give an example to illustrate each of
the concepts.
The ODMG OM is a superset of the OMG OM and specifies the following basic modeling
primitives:
• The basic modeling primitives are the object and the literal. Only an object has a unique
identifier.
• Objects and literals can be categorized into types. All objects and literals of a given type
exhibit common behavior and state. A type is itself an object. An object is sometimes
referred to as an instance of its type.
• Behavior is defined by a set of operations that can be performed on or by the object.
Operations may have a list of typed input/output parameters and may return a typed
result.
• State is defined by the values an object carries for a set of properties. A property may be
either an attribute of the object or a relationship between the object and one or more
other objects. Typically, the values of an object’s properties can change over time.
• An ODMS stores objects, enabling them to be shared by multiple users and applications.
An ODMS is based on a schema that is defined in the Object Definition Language
(ODL), and contains instances of the types defined by its schema.
ODL is a language for defining the specifications of object types for ODMG-compliant
systems, equivalent to the Data Definition Language (DDL) of traditional DBMSs. Its main
objective is to facilitate portability of schemas between compliant systems while helping to
provide interoperability between ODMSs. The ODL defines the attributes and relationships of
types and specifies the signature of the operations, but it does not address the implementation
of signatures. The syntax of ODL extends the Interface Definition Language (IDL) of the
CORBA. The ODMG hope that the ODL will be the basis for integrating schemas from
multiple sources and applications. See Section 28.2.3.
ODMG OQL is used to specify how database objects are retrieved and manipulated within the
application program (see Section 28.2.4).
11
Database Systems: Instructor’s Guide - Part III
28.4 How does the ODMG GROUP BY clause differ from the SQL GROUP BY clause? Give an
example to illustrate your answer.
The OQL GROUP BY has been extended to provide an explicit reference to the collection of
objects within each group (which in OQL is called a partition). See Example 28.6.
28.5 How does the ODMG aggregate functions differ from the SQL aggregate functions? Give an
example to illustrate your answer.
The OQL aggregate functions can be applied within the select clause or to the result of the
select operation. For example, the following two expressions are equivalent in OQL:
Note, OQL allows aggregate functions to be applied to any collection of the appropriate type
and , unlike, SQL, can be used in any part of the query. See Example 28.5.
The Object Interchange Format (OIF) is a specification language used to dump and load the
current state of an ODMS to and from one or more files. OIF can be used to exchange
persistent objects between ODMSs, seed data, provide documentation, and drive test suites.
See Section 28.2.5.
28.7 Briefly discuss how the ODMG C++ language binding works.
A C++ class library is provided containing classes and functions that implement the ODL
constructs. In addition, OML (Object Manipulation Language) is used to specify how database
objects are retrieved and manipulated within the application program. To create a working
application, the C++ ODL declarations are passed through a C++ ODL preprocessor, which
has the effect of generating a C++ header file containing the object database definition and
storing the ODMS meta-data in the database. The user’s C++ application, which contains
OML, is then compiled in the normal way along with the generated object database definition
C++ header file. Finally, the object code output by the compiler is linked with the ODMS
runtime library to produce the required executable image. See Section 28.2.5.
Exercises
28.8 Map the object-oriented design for the Hotel case study produced in Exercise 27.22 to the ODMG
ODL.
class Hotel {
(extent hotels key hotelNo)
attribute string hotelNo;
attribute string hotelName;
12
Database Systems: Instructor’s Guide - Part III
class Room {
(extent rooms key hotelNo, roomNo)
attribute string hotelNo;
attribute string roomNo;
attribute string hotelName;
attribute string city;
relationship <Hotel> ContainedIn inverse Hotel::Contains;
relationship set<Booking> Gets inverse Booking::MadeFor;
class Guest {
(extent guests key guestNo)
attribute string guestNo;
attribute string guestName;
attribute string guestAddress;
relationship set<Booking> Makes inverse Booking::MadeFor;
…
}
class Booking {
(extent bookings key (hotelNo, guestNo, dateFrom))
13
Database Systems: Instructor’s Guide - Part III
hotel
or to sort them:
(b) List all single rooms with a price below £20.00 per night.
SELECT h.rooms
FROM h IN hotel
WHERE h.rooms.price < 20
(d) List the price and type of all rooms at the Grosvenor Hotel.
SELECT g
FROM g IN guests
b IN g.booked_for
h IN b.booking_for
WHERE b.dateFrom <= ‘01-01-05’ AND
b.dateTo >= ‘01-01-05’ AND
h.name = ‘Grosvenor Hotel’
(f) List the details of all rooms at the Grosvenor Hotel, including the name of the guest
staying in the room, if the room is occupied.
define occupied as
SELECT STRUCT(h.rooms,
14
Database Systems: Instructor’s Guide - Part III
SELECT g.name
FROM g IN guest
b IN g.booked_for
h IN b.booking_for
WHERE b.dateFrom <= ‘01-01-15’ AND
b.dateTo >= ‘01-01-15’ AND
h.name = ‘Grosvenor Hotel’)
FROM h IN hotel
UNION
SELECT STRUCT(h.rooms, nil)
FROM h IN hotel, y IN occupied
WHERE h.rooms.roomNo != y.roomNo
(g) List the guest details (guestNo, name and address) of all guests staying at the Grosvenor
Hotel.
28.11 Map the object-oriented database design for the DreamHome case study produced in Exercise
27.25 to the ODMG ODL.
class Branch {
(extent branches key branchNo)
15
Database Systems: Instructor’s Guide - Part III
class Person {
attribute struct PName {string fName, string lName} name;
}
class PropertyForRent {
(extent rentals key propertyNo)
16
Database Systems: Instructor’s Guide - Part III
28.12 Map the object-oriented database design for the University Accommodation Office case study
produced in Exercise 27.26 to the ODMG ODL.
Using the object-oriented design produced in Exercise 27.26 and the relational schema given
in the solution to Exercise 17.10, then the answer can easily be derived in a similar manner to
the two solutions above and the solution to Exercise 28.14 below.
28.13 Map the object-oriented database design for the EasyDrive School of Motoring case study
produced in Exercise 27.27 to the ODMG ODL.
Using the object-oriented design produced in Exercise 27.27 and the relational schema given
in the solution to Exercise 17.11, then the answer can easily be derived in a similar manner to
the two solutions above and the solution to Exercise 28.14 below.
28.14 Map the object-oriented database design for the Wellmeadows case study produced in
Exercise 27.28 to the ODMG ODL.
class Ward {
(extent wards key wardNo)
17
Database Systems: Instructor’s Guide - Part III
class Person {
attribute struct PName {string fName, string lName} name;
attribute string address;
attribute string telNo;
attribute date DOB;
attribute char sex;
}
18
Database Systems: Instructor’s Guide - Part III
class StaffRota {
(extent rotas)
deftype struct NextOfKin {string nName, string nRelationship, string nAddress, string nTelNo;}
deftype struct OutPatientAppointment {date outPatDate, time outPatTime;}
class Patient extends Person{
(extent patients key patNo)
19
Database Systems: Instructor’s Guide - Part III
class Doctor {
(extent gps key (docName, clinicNo))
class Appointment {
(extent appointments key appNo)
class WaitingList {
(extent waiting )
class Medication {
(extent medications)
20
Database Systems: Instructor’s Guide - Part III
class Pharmaceutical {
(extent drugs key drugNo)
class Non-Surgical/Surgical {
(extent supplies key itemNo)
class Requisition {
(extent requisitions key reqNo)
21
Database Systems: Instructor’s Guide - Part III
class Supplier {
(extent suppliers key supplierNo)
22
Discovering Diverse Content Through
Random Scribd Documents
The Project Gutenberg eBook of La bona gent
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.
Language: Catalan
Santiago Rusiñol
1906
Personatges
Escena I
(Sr. Batista, Batistet, Sr. Pepet, una Criada, Home primer, Home
segon i aviat una Dòna)
Batistet: Sis.
Batistet: El descuento!
Batistet: Tal com están serà a pes de plata. Veig que han llimat les
inicials.
Criada: Si, senyor… L’escut dels meus amos. No’s pensin que’ls
hagi robats.
Home segon: Però si de una trista americana ja me’n van donar vuit
i mitja.
Sr. Batista: Una americana val més que un jaqué, perquè es porta
més que un jaqué. An aquesta casa som demòcrates. Comprem per
les majories.
Sr. Batista: Pitjor. Una casaca de ministre val menos que una levita.
Com més disfreça, menos quartos.
(L’home cobra i se’n va. Entra una dòna corrent i s’apropa al taulell.)
Dòna: Tinc l’home molt mal. Tinc un fill que no li puc pagar el
didatge. Compadeixi-s de una pobre, senyor!
(Plora.)
Sr. Batista: Senyal qu’és vell. Les coses no’s pagan per fetxes.
Sr. Batista: Ja m’ho penso que ho demaneu pels fills. Totes les
mares que venen ho demanen per lo meteix, i que’n venen un floret
de mares! Però una cosa són els fills i un altra cosa és el negoci.
També m’agrada fer favors, però no pas aquí.
Dòna: El meu home quatre duros. Però ara fa dos mesos que’m jeu,
i una cerca, i s’empenya…
Dòna: Si fos per mi, ja seria morta. Vostè, senyor, no pot saber-ho
què m’arrenco d’aquí, d’aquí el cor, amb aquêt bocinet de seda. Dèu
anys de tenir-lo tancat, de guardar-la aquesta recordança! Quan a
casa eram feliços, i obria l’armari, i el veia, no sé, me semblava que
havia obert un sagrari. Avui, quan l’he obert per durlo aquí, m’ha
semblat, Deu meu! m’ha semblat que obria una tomba.
Sr. Batista: Jo necessito dèu milions. I prou! que tenim altres feines, i
en tenim d’aixugar d’altres de llàgrimes.
Sr. Batista: Aneu a la casa del costat, que allí ni vos obriràn la porta.
Escena II
(Sr. Batista, Batistet i Sr. Pepet)
Sr. Batista: Es que a mi’m fa riure aquesta gent! Es pensen que això
és una mina. Vinga portar roba inutil, i prendes passades de moda, i
coses ventureres que semblen robades de un fossar, i pagueu-los,
deu-los lo que vulguin, i per torna, aconsoleu-los! Aviat hauria de
posar una agencia de consol si m’hagués d’escoltar á tots els que
venen!
Sr. Batista: Lo que vulgui, no, un xiquet menos. Doncs, té: aqui porto
unes sabates, decents, però am mitjes soles; uns pantalons que no
eren meus, però que ho semblen; i una levita que fòra taques,
encare serà una levita. Que estalvien tant com jo, els pobres?
Sr. Batista: I doncs que aprenguin i no’s queixin, que tots tenim
motius de queixar-nos. Total: què havem deixat avui?
Batistet: Es lo meteix.
Batistet: Aixís ho faré, tio Batista. Vostè és més que pare per mi.
Batistet: Un home que pensa bé. (baixa el Sr. Pepet del escriptori.)
No és veritat, senyor Pepet?
Sr. Pepet: Conta que fa cinquanta anys que estic an aquesta casilla!
Que’n vida dels vells ja hi era…
Sr. Batista: (apagant el llum de l’escriptori del Sr. Pepet) És ben cert!
Batistet: Vaja, que no és tan màquina com això. També haurà passat
els seus bons ratos!
Sr. Pepet: Si; tinc sis fills: bé n’he d’haver passat alguns de bons
ratos.
Sr. Pepet: Els fa riure que’ls fills m’hagin donat bons ratos? Jo sóc
com aquella dòna, també’n vaig distreure a estimar, i a cada afecció
que tenia, ja me la veia venir: un altra criatura als braços.
Sr. Pepet: Que quin goig m’han donat, me pregunta? Per fer-li
entendre, no més li diré que una cosa. Afiguri-s que cada fill li
produeix un cent per cent i que va doblant els interessos, o afiguris
que jo sóc Caja, i que m’apunto aquêt assiento: Yo a Varios o a Seis
hijos comandita.
Sr. Pepet: Hijos comandita a Yo; es dir, am mi, i encare amb una
fracció.
Sr. Pepet: Jo porto Major de tot. A cada fill o net que’m neix, li obro
un compte corrent, i el compte n’es tan de corrent que, saben lo que
hi trobaràn avui per demà que jo falti? Les planes dels ingressos,
blanques; i les planes dels gastos… plenes.
Sr. Batista: Sóc jo que no’n tinc, de tenir un home aixís a la casa!
Escena III
(Sr. Batista i Sr. Pepet)
Sr. Batista: I no’l tinc de soportar, sant varó! Ja sap que jo sóc molt
considerat; que aprecio la dependencia per lo que val en si meteixa,
i per l’utilitat que dóna; i la prova de que el considero, és que vull
parlar am vostè com a home de confiança.
Sr. Batista: Jo, senyor Pepet, ja sap que fa molts anys que traballo.
Vaig heretar aquesta casa; l’he seguida am tota l’honradesa que ja
sap; sóc ben considerat an el comerç; tinc crèdit am la gent
conforme, i no dec res a ningú.
Sr. Batista: Estic arreglat, no més que arreglat, senyor Pepet; i com
que estic arreglat, me puc dedicar a fer bons préstams. Hi ha molts
joves menors d’edat que, am tot i ser de cases bones, tenen
d’esperar que’ls pares morin per poguer cobrar lo que’ls pertoca, i
pateixen i són esclaus i no poden ocupar el seu rango; i no està bé
que aquêts pobres fills esperin la mort dels pares. L’esperaré jo en
comptes d’ells.
Sr. Batista: Vostè ha estat cinquanta anys al comerç i’m gosa fer
aquesta pregunta? An el món no’s fa res de franc, i el que vulgui ser
lliure que ho pagui. Ademés, hi ha un altre assumpto que’m fa
cambiar de negoci.
Sr. Batista: Si, senyor. Jo, ja sap vostè que no tinc fills. O no’m devia
vagar d’estimar, segons les seves teories, o no’m devien estimar a
mi, perque no hi havia pagat prou bé, el cas és que no n’he tingut.
Sr. Batista: A mi tan m’hauria fet tenir-ne com no, la veritat. No’ls he
trobat mai a faltar! Si m’he casat dugues vegades ha sigut perque’m
cuidessin, i per això sempre he triat la minyona! Quan ne trobava
una d’economica, endreçada i que mirés per casa, l’he passada per
l’iglesia, vinga el civil, i santes pasqües! Però la dòna, la dòna no és
lo meteix. Vol una noia, vol companyia, s’anyora, i, res: que per
humil que siga… és dòna.
Sr. Batista: Què petita! Que’n mantingui qui vulgui d’infants! Divuit
anys, i am tots els coneixements, i bona per traballar!
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
testbankfan.com