A Guide to SQL 10th Edition Mark Shellman - eBook PDF download
A Guide to SQL 10th Edition Mark Shellman - eBook PDF download
https://ebooksecure.com/download/a-guide-to-sql-ebook-pdf/
http://ebooksecure.com/product/ebook-pdf-a-guide-to-sql-9th-
edition-by-philip-j-pratt/
https://ebooksecure.com/download/new-perspectives-microsoft-
office-365-access-2019-comprehensive-ebook-pdf/
https://ebooksecure.com/download/microsoft-sql-
server-2016-a-beginners-guide-ebook-pdf/
https://ebooksecure.com/download/comptia-security-guide-to-
network-security-fundamentals-ebook-pdf/
(eBook PDF) CompTIA A+ Core 1 Exam: Guide to Computing
Infrastructure 10th Edition
http://ebooksecure.com/product/ebook-pdf-comptia-a-core-1-exam-
guide-to-computing-infrastructure-10th-edition/
http://ebooksecure.com/product/ebook-pdf-classical-
mythology-10th-by-mark-morford/
http://ebooksecure.com/product/original-pdf-havards-nursing-
guide-to-drugs-10th-edition/
http://ebooksecure.com/product/ebook-pdf-learning-legal-rules-a-
students-guide-to-legal-method-and-reasoning-10th-edition/
https://ebooksecure.com/download/oca-oracle-database-sql-exam-
guide-exam-1z0-071-ebook-pdf/
A GUIDE TO SQL
Tenth Edition
Mark Shellman
Gaston College
Hassan Afyouni, Ed.D.
e-conn Chief Information Officer
Philip J. Pratt
Grand Valley State University
Mary Z. Last
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
This is an electronic version of the print textbook. Due to electronic rights restrictions,
some third party content may be suppressed. Editorial review has deemed that any suppressed
content does not materially affect the overall learning experience. The publisher reserves the right
to remove content from this title at any time if subsequent rights restrictions require it. For
valuable information on pricing, previous editions, changes to current editions, and alternate
formats, please visit www.cengage.com/highered to search by ISBN#, author, title, or keyword for
materials in your areas of interest.
Important Notice: Media content referenced within the product description or the product
text may not be available in the eBook version.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
A Guide to SQL, Tenth Edition © 2021, 2015 Cengage Learning, Inc.
Mark Shellman, Hassan Afyouni, WCN: 02-300
Philip J. Pratt, and Mary Z. Last Unless otherwise noted, all content is © Cengage.
SVP, Higher Education Product ALL RIGHTS RESERVED. No part of this work covered by the
Management: Erin Joyner copyright herein may be reproduced or distributed in any form
or by any means, except as permitted by U.S. copyright law,
VP, Product Management: Thais Alencar
without the prior written permission of the copyright owner.
Product Team Manager: Kristin McNary
Microsoft SQL Server is either a registered trademark or
Associate Product Manager: Danielle Klahr
trademark of Microsoft Corporation in the United States and/or
Product Assistants: Anna Goulart and other countries.
Tom Benedetto
MySQL is a registered trademark, and Oracle is a trademark of
Director, Learning Design: Rebecca von Gillern Oracle Corporation.
Senior Manager, Learning Design: Leigh Hefferon
Learning Designer: Emily Pope For product information and technology assistance,
Vice President, Marketing – Science, contact us at Cengage Customer & Sales Support,
1-800-354-9706 or support.cengage.com.
Technology, & Math: Jason Sakos
Marketing Director: Michele McTighe For permission to use material from this text or product,
submit all requests online at
Marketing Manager: Cassie Cloutier www.cengage.com/permissions.
Product Specialist: Mackenzie Paine
Director, Content Creation: Juliet Steiner Library of Congress Control Number: 2020911488
Senior Manager, Content Creation: Patty Stephan
ISBN: 978-0-357-36168-9
Content Manager: Michele Stulga
Developmental Editor: Joy Dark Cengage
200 Pier 4 Boulevard
Director, Digital Production Services: Krista
Boston, MA 02210
Kellman USA
Digital Delivery Lead: Jim Vaughey
Cengage is a leading provider of customized learning solutions
IP Analyst: Ashley Maynard with employees residing in nearly 40 different countries and
IP Project Manager: Carly Belcher sales in more than 125 countries around the world. Find your
Manufacturing Planner: Ron Montgomery local representative at www.cengage.com.
Production Service/Composition: SPi Global Cengage products are represented in Canada by Nelson
Design Director: Jack Pendleton Education, Ltd.
Text Designer: Lizz Anderson To learn more about Cengage platforms and services,
Cover Designer: Joe Devine,Red Hangar Design register or access your online learning solution, or
Cover image: © vs148/ShutterStock.com purchase materials for your course, visit www.cengage.com.
Notice to the Reader contained herein, the reader willingly assumes all risks
Publisher does not warrant or guarantee any of the in connection with such instructions. The publisher
products described herein or perform any independent makes no representations or warranties of any kind,
analysis in connection with any of the product including but not limited to, the warranties of fitness for
information contained herein. Publisher does not particular purpose or merchantability, nor are any such
assume, and expressly disclaims, any obligation to obtain representations implied with respect to the material set
and include information other than that provided to it forth herein, and the publisher takes no responsibility
by the manufacturer. The reader is expressly warned with respect to such material. The publisher shall not
to consider and adopt all safety precautions that might be liable for any special, consequential, or exemplary
be indicated by the activities described herein and to damages resulting, in whole or part, from the readers’
avoid all potential hazards. By following the instructions use of, or reliance upon, this material.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
TA B L E O F C O N T E N T S
Preface ix
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
iv Table of Contents
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents v
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
vi Table of Contents
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents vii
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
viii Table of Contents
Index I.1
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
P R E FAC E
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
x Preface
D I S T I N G U I S H I N G F E AT U R E S
Use of Examples
Starting in Module 3, each module contains multiple examples that use SQL to solve a
problem. Following each example, students will read about the commands that are used to
solve the stated problem, and then they will see the SQL commands used to arrive at the
solution. For most students, learning through examples is the most effective way to master
material. For this reason, instructors should encourage students to read the modules at
the computer and input the commands shown in the figures.
Case Studies
A running case study—KimTay Pet Supplies—is presented in all the examples within the
modules and in the first set of exercises at the end of each module. Although the data-
base is small in order to be manageable, the examples and exercises for the KimTay Pet
Supplies database simulate what a real business can accomplish using SQL commands.
Using the same case study as examples within the module and in the end-of-module exer-
cises ensures a high level of continuity to reinforce learning.
A second case study—the StayWell Student Accommodation database—is used in
a second set of exercises at the end of each module. This case study gives students a
chance to venture out “on their own” without the direct guidance of examples from
the text.
Helpful Hints
Helpful Hint boxes call out fundamental information and provide useful tips for the
successful implementation of SQL. Students should pay careful attention to the advice
within Helpful Hint boxes and are encouraged to review the hints as they are practicing
SQL skills.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Preface xi
Review Material
A Summary and Key Terms list appear at the end of each module, followed by Review
Questions that test students’ recall of the important points in the module and occasionally
test their ability to apply what they have learned. Critical Thinking questions that
reinforce problem-solving and analytical skills are included for review questions and
hands-on exercises. Each module also contains exercises related to the KimTay Pet
Supplies and StayWell Student Accommodation databases.
Appendices
Three appendices appear at the end of this text. Appendix A is an SQL reference that
describes the purpose and syntax for the major SQL commands featured in the text.
Students can use Appendix A to identify how and when to use important commands
quickly. The SQL reference appendix contains references to specific pages in the
text where the command is discussed to make it easy for students to find additional
information when they need to refer back to the section in the text where the topic is
covered.
Appendix B includes a “How Do I” reference, which lets students cross-reference the
appropriate section in Appendix A by searching for the answer to a question. Appendix C
is the 10 Commandments of Writing Queries. This appendix presents summarized steps
and rules for composing an SQL statement.
Instructor Support
The Tenth Edition includes a package of proven supplements for instructors and
students. The Instructor’s Resources offer a detailed electronic Instructor’s Manual,
figure files, Microsoft® PowerPoint® presentations, and the Cognero Test Bank. The
Instructor’s Manual includes suggestions and strategies for using this text as well as
answers to Review Questions and solutions to the end-of-module exercises. Figure files
allow instructors to create their own presentations using figures appearing in the text.
Instructors can also take advantage of lecture presentations provided on PowerPoint
slides; these presentations follow each module’s coverage precisely, include module
figures, and can be customized.
The Instructor’s Resources include the KimTay Pet Supplies and StayWell Student
Accommodation cases script files to create the tables and data in these databases in
MySQL, Oracle, and SQL Server. These files are provided so instructors have the choice of
assigning exercises in which students create the databases used in this text and load them
with data, or they can provide the MySQL, Oracle, or SQL Server script files to students to
automate and simplify these tasks.
O R G A N I Z AT I O N O F T H E T E X T
The text contains eight modules and three appendices, which are described in the follow-
ing sections.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
xii Preface
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Preface xiii
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
xiv Preface
Embedded Questions
In many places, you’ll find Q&A sections to ensure that you understand some crucial
material before you proceed. In some cases, the questions are designed to give you the
chance to consider some special concept in advance of its actual presentation. In all cases,
the answer to each question appears immediately after the question. You can simply read
the question and its answer, but you will benefit from taking time to determine the answer
to the question before checking your answer against the one given in the text.
End-of-Module Material
The end-of-module material consists of a Summary, a Key Terms list, Review Questions,
Critical Thinking questions, and exercises for the KimTay Pet Supplies and StayWell
Student Accommodation databases. The Summary briefly describes the material covered
in the module. The Review Questions require you to recall and apply the important mate-
rial in the module. The KimTay Pet Supplies and StayWell Student Accommodation exer-
cises test your knowledge of the module material; your instructor will assign one or more
of these exercises for you to complete. Critical-thinking questions that reinforce problem-
solving and analytical skills are included for review questions and hands-on exercises.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
A B O U T T H E AU T H O R S
Mary Z. Last
Mary Z. Last has taught computer information systems since 1984. She retired from
the University of Mary Hardin-Baylor, Belton, Texas, where she was an associate profes-
sor and the Director of the Center for Effectiveness in Learning and Teaching. Ms. Last is
actively involved in the Computing Educator’s Oral History Project that encourages young
women to pursue careers in math and science. She has been a contributing author to the
Shelly Cashman Series since 1992. She also authors many instructor resources for leading
database texts.
ACKNOWLEDGMENTS
From Mark Shellman:
I would first like to dedicate this text to the memory of parents, Mickey and Shelba
Shellman, that passed away during the writing of this text. No child has ever been more
loved and supported in their life than I. I would also like to thank my wife Donna Sue, and
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
xvi About the Authors
children, Taylor and Kimberly, for their support and patience during this project. Last,
but certainly not least, I would like to thank the entire development team of Amy Savino,
Michele Stulga, and Joy Dark, along with my co-author Hassan Afyouni. Thank you all
from the bottom of my heart for all of your support and caring during this project. It
means more than you will ever know. You are truly the best!
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
MODULE 1
INTRODUCTION TO
KIMTAY PET SUPPLIES
AND STAYWELL STUDENT
ACCOMMODATION DATABASES
OBJECTIVES
INTRODUCTION
In this module, you examine the database requirements of KimTay Pet Supplies—a
company that is used in the examples throughout the text. Then, you examine the
database requirements for StayWell, whose database is featured in the exercises that
appear at the end of each module.
WHAT IS A DATABASE?
Throughout this text, you will work with databases for two organizations: KimTay Pet
Supplies and StayWell. A database is a structure that contains different categories
of information and the relationships between these categories. For example, the
KimTay Pet Supplies database contains information about categories such as sales
representatives (sales reps), customers, invoices, and items. The StayWell database
contains information about the offices that manage the accommodation, the owners
of the accommodation, the residents, and the services (such as cleaning and
maintenance) offered for the properties.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
2 Module 1
Each database also contains relationships between categories. For example, the
KimTay Pet Supplies database contains information that relates sales reps to the
customers they represent and customers to the invoices they have placed. The StayWell
database contains information that relates the two main company offices to the properties
that they manage, the owners, the different services to the service request, and to the
resident renting a property.
As you work through the modules in this text, you will learn more about these
databases and how to view and update the information they contain. As you read each
module, you will see examples from the KimTay Pet Supplies database. At the end of
each module, your instructor might assign the exercises for the KimTay Pet Supplies or
StayWell databases.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Introduction to KimTay Pet Supplies and StayWell Student Accommodation Databases 3
Extensions
Body
KimTay Pet Supplies also must store the following items in the database for each
customer’s invoice:
• The invoice number, the date the invoice was placed, and the ID of the
customer that placed the invoice. The customer’s name, full address, and
the ID of the sales rep who represents the customer are stored with the
customer information. The name of the sales rep is stored with the sales
rep information.
• The invoice number, the item ID, the quantity ordered, and the quoted price
for each invoice line. The item description is stored with the information
about items. The result of multiplying the number of units ordered by the
quoted price is not stored because the database can calculate it when needed.
The overall invoice total is not stored. Instead, the database calculates the total
whenever an invoice is printed or displayed on the screen.
Figure 1-2 shows sample data for KimTay Pet Supplies.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
4 Module 1
CUSTOMER
CUST_ FIRST_ LAST_ ADDRESS CITY STATE POSTAL EMAIL BALANCE CREDIT_ REP_
ID NAME NAME LIMIT ID
126 Joey Smith 17 Fourth St Cody WY 82414 jsmith17@ $80.68 $500.00 05
example.com
182 Billy Rufton 21 Simple Cir Garland WY 82435 billyruff@ $43.13 $750.00 10
example.com
227 Sandra Pincher 53 Verde Ln Powell WY 82440 spinch2@ $156.38 $500.00 15
example.com
294 Samantha Smith 14 Rock Ln Ralston WY 82440 ssmith5@ $58.60 $500.00 10
example.com
314 Tom Rascal 1 Rascal Farm Cody WY 82414 trascal3@ $17.25 $250.00 15
Rd example.com
375 Melanie Jackson 42 Blackwater Elk Butte WY 82433 mjackson5@ $252.25 $250.00 05
Way example.com
435 James Gonzalez 16 Rockway Rd Wapiti WY 82450 jgonzo@ $230.40 $1,000.00 15
example.com
492 Elmer Jackson 22 Jackson Garland WY 82435 ejackson4@ $45.20 $500.00 10
Farm Rd example.com
543 Angie Hendricks 27 Locklear Ln Powell WY 82440 ahendricks7@ $315.00 $750.00 05
example.com
616 Sally Cruz 199 18th Ave Ralston WY 82440 scruz5@ $8.33 $500.00 15
example.com
721 Leslie Smith 123 Sheepland Elk Butte WY 82433 lsmith12@ $166.65 $1,000.00 10
Rd example.com
795 Randy Blacksmith 75 Stream Rd Cody WY 82414 rblacksmith6@ $61.50 $500.00 05
example.com
SALES_REP
REP_ID FIRST_NAME LAST_NAME ADDRESS CITY STATE POSTAL CELL_PHONE COMMISSION RATE
ITEM
ITEM_ID DESCRIPTION ON_HAND CATEGORY LOCATION PRICE
AD72 Dog Feeding Station 12 DOG B $79.99
BC33 Feathers Bird Cage (12×24×18) 10 BRD B $79.99
CA75 Enclosed Cat Litter Station 15 CAT C $39.99
DT12 Dog Toy Gift Set 27 DOG B $39.99
FM23 Fly Mask with Ears 41 HOR C $24.95
FS39 Folding Saddle Stand 12 HOR C $39.99
FS42 Aquarium (55 Gallon) 5 FSH A $124.99
KH81 Wild Bird Food (25 lb) 24 BRD C $19.99
LD14 Locking Small Dog Door 14 DOG A $49.99
LP73 Large Pet Carrier 23 DOG B $59.99
PF19 Pump & Filter Kit 5 FSH A $74.99
QB92 Quilted Stable Blanket 32 HOR C $119.99
SP91 Small Pet Carrier 18 CAT B $39.99
UF39 Underground Fence System 7 DOG A $199.99
WB49 Insulated Water Bucket 34 HOR C $79.99
FIGURE
INVOICES1-2 Sample data for KimTay INVOICE_LINE
Pet Supplies
INVOICE_NUM INVOICE_DATE CUST_ID INVOICE_NUM ITEM_ID QUANTITY QUOTED_PRICE
14216 11/15/2021 125 14216 CA75 3 $37.99
14219 11/15/2021 227 14219 AD72 2 $79.99
14222 11/16/2021 294 14219 DT12 4 $39.99
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
14224
Editorial review has deemed 11/16/2021
that any suppressed content does not materially182
affect the overall learning
14222experience. CengageLD14 $47.99
Learning reserves the right to1remove additional content at any time if subsequent rights restrictions require it.
PF19 Pump & Filter Kit 5 FSH A $74.99
QB92 Quilted Stable Blanket 32 HOR C $119.99
SP91 Small Pet Carrier 18 CAT B $39.99
UF39 Introduction
Underground to KimTay
Fence System Pet Supplies
7 and StayWell
DOG A Student Accommodation
$199.99 Databases 5
WB49 Insulated Water Bucket 34 HOR C $79.99
INVOICES INVOICE_LINE
INVOICE_NUM INVOICE_DATE CUST_ID INVOICE_NUM ITEM_ID QUANTITY QUOTED_PRICE
14216 11/15/2021 125 14216 CA75 3 $37.99
14219 11/15/2021 227 14219 AD72 2 $79.99
14222 11/16/2021 294 14219 DT12 4 $39.99
14224 11/16/2021 182 14222 LD14 1 $47.99
14228 11/18/2021 435 14224 KH81 4 $18.99
14231 11/18/2021 125 14228 FS42 1 $124.99
14233 11/18/2021 435 14228 PF19 1 $74.99
14237 11/19/2021 616 14231 UF39 2 $189.99
14233 KH81 1 $19.99
14233 QB92 4 $109.95
In the SALES_REP table, you see that there are four reps, whose ID values are
05, 10, 15, and 20. The name of sales rep 05 is Susan Garcia. Her street address is
42 Mountain Ln. She lives in Cody, WY, and her postal code is 82414. Her cell phone
number is 307-824-1245. Her total commission is $12,743.16, and her commission rate
is 0.04 (four percent).
In the CUSTOMER table, 12 KimTay Pet Supplies customers are identified with
the ID values of 126, 182, 227, 294, 314, 375, 435, 492, 543, 616, 721, and 795. The
name of customer number 126 is Joey Smith. This customer’s address is 17 Fourth St in
Cody, WY, with a postal code of 82414. The e-mail address of the customer is jsmith17@
example.com. The customer’s current balance is $80.68, and their credit limit is $500.00.
The value 05 in the REP_ID column indicates that Joey Smith is represented by sales rep
05 (Susan Garcia).
In the table named ITEM, you see that there are 15 items, whose item ID values are
AD72, BC33, CA75, DT12, FM23, FS39, FS42, KH81, LD14, LP73, PF19, QB92, SP91,
UF39, and WB49. Item AD72 is a Dog Feeding Station, and KimTay Pet Supplies has
12 units of this item on hand. The Dog Feeding Station item is in the DOG category, and it
is located in area B. The price of the Dog Feeding Station is $79.99. Other categories are
BRD (bird), CAT, FSH (fish), and HOR (horse).
In the table named INVOICES, you see that there are eight invoices which are
identified with the numbers 14216, 14219, 14222, 14224, 14228, 14231, 14233, and
14237. Invoice number 14216 was placed on November 15, 2021, by customer 125
(Joey Smith).
The table named INVOICE_LINE might seem strange at first glance. Why do you
need a separate table for the invoice lines? Could they be included in the INVOICES
table? The answer is technically yes. You could structure the table named INVOICES
as shown in Figure 1-3. Notice that this table contains the same invoices as shown in
Figure 1-2, with the same dates and customer ID numbers. In addition, each table row in
Figure 1-3 contains all the invoice lines for a given invoice. Examining the second row,
for example, you see that invoice 14219 has two invoice lines. One of the invoice lines is
for 2 units of item AD72 at $79.99 each, and the other invoice line is for 4 units of item
DT12 at $39.99 each.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
6 Module 1
Q&A
Question: How is the information from Figure 1-2 represented in Figure 1-3?
Answer: Examine the INVOICE_LINE table shown in Figure 1-2 and note the second and third rows.
The second row indicates that there is an invoice line on invoice 14219 for 2 units of item AD72 at
$79.99 each. The third row indicates that there is an invoice line on invoice 14219 for 4 units of item
DT12 at $39.99 each. Thus, the information that you find in Figure 1-3 is represented in Figure 1-2 in
two separate rows rather than in one row.
It might seem inefficient to use two rows to store information that could be rep-
resented in one row. There is a problem, however, with the arrangement shown in
Figure 1-3—the table is more complicated. In Figure 1-2, there is a single entry at each
INVOICES
INVOICE_NUM INVOICE_DATE CUST_ID ITEM_ID QUANTITY QUOTED_PRICE
location in the table. In Figure 1-3, some of the individual positions within the table
contain multiple entries, making it difficult to track the information between columns.
In the row for invoice number 14219, for example, it is crucial to know that the AD72
corresponds to the 2 in the QUANTITY column (not to the 4) and that it corresponds
to the $79.99 in the QUOTED_PRICE column (not to the $39.99). In addition, a more
complex table raises practical issues, such as the following:
• How much room do you allow for these multiple entries?
• What happens when an invoice has more invoice lines than you have allowed
room for?
• For a given item, how do you determine which invoices contain invoice lines
for that item?
Although none of these problems is unsolvable, they do add a level of complexity that
is not present in the arrangement shown in Figure 1-2. In Figure 1-2, there are no multiple
entries to worry about, it does not matter how many invoice lines exist for any invoice,
and finding every invoice that contains an invoice line for a given item is easy (just look
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Introduction to KimTay Pet Supplies and StayWell Student Accommodation Databases 7
for all invoice lines with the given item number in the ITEM_ID column). In general, this
simpler structure is preferable, and that is why invoice lines appear in a separate table.
To test your understanding of the KimTay Pet Supplies data, use Figure 1-2 to answer
the following questions.
Q&A
Question: What are the customer ID values of the customers represented by Susan Garcia?
Answer: 125, 375, 543, and 795. (Look up the REP_ID value of Susan Garcia in the SALES_REP table
and obtain the value 05. Then find all customers in the CUSTOMER table that have the value 05 in the
REP_ID field.)
Q&A
Question: What is the name of the customer that placed invoice 14222, and what is the name of the
sales rep who represents the customer?
Answer: Samantha Smith is the customer, and Richard Miller is the sales rep. (Look up the CUST_ID
value in the INVOICES table for invoice 14222 and obtain the ID value 294. Then find the customer
in the CUSTOMER table with the CUST_ID value of 294. Using the REP_ID value, which is 10,
find the name of the sales rep in the SALES_REP table.)
Q&A
Question: List all items that appear in invoice 14228. For each item, give the description, quantity
ordered, and quoted price.
Answer: Item ID: FS42; description: Aquarium (55 Gallon); quantity ordered: 1; and quoted
price: $124.99. Also, item ID: PF19; description: Pump & Filter Kit; quantity ordered: 1; and quoted
price: $74.99. (Look up each INVOICE_LINE table row on which the invoice number is 14228.
Each of these rows contains an item ID, quantity ordered, and quoted price. Use the item ID to look up
the corresponding item description in the ITEM table.)
Q&A
Question: Why is the QUOTED_PRICE column in the INVOICE_LINE table? Can’t you just use the
item ID and look up the price in the ITEM table?
Answer: If the QUOTED_PRICE column did not appear in the INVOICE_LINE table, you would need
to obtain the price for an item on an invoice line by looking up the price in the ITEM table. Although
this approach is reasonable, it prevents KimTay Pet Supplies from charging different prices to different
customers for the same item. Because KimTay Pet Supplies wants the flexibility to quote and charge
different prices to different customers, the QUOTED_PRICE column is included in the INVOICE_LINE
table. If you examine the INVOICE_LINE table, you will see cases in which the quoted price matches
the actual price in the ITEM table, and cases in which it differs. For example, in invoice number 14216,
Joey Smith bought three Enclosed Cat Litter Stations, and KimTay Pet Supplies charged only $37.99
each, not the regular price of $39.99.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
8 Module 1
StayWell is split into two offices to better manage the properties. This management
includes communicating with owners about the status and upkeep of their properties.
They also facilitate the payment from the properties, meaning that the owners get regu-
lar income without having to collect rent in arrears. Offices also advertise properties and
place students in appropriate properties, facilitating initial visits and taking deposits.
Lastly the office administers the maintenance of the properties, communicating with
residents, owners, and maintenance services. This is discussed later.
StayWell stores information about the owners of each property in the OWNER table,
as seen in Figure 1-5. Each owner is identified by a unique owner number that consists
of two uppercase letters followed by a three-digit number. For each owner, the table also
includes the last name, first name, address, city, state, and ZIP code. Notice the owners
are from across the United States. Although some apartments may be owned by a couple
or a family, only the primary contact is given.
Each property at each location is identified by a property ID, as seen in Figure 1-6.
Each property also includes the office number that manages the property, address, floor
size, the number of bedrooms, the number of floors, monthly rent per property, and the
owner number. The property ID is an integer unique for each property.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Introduction to KimTay Pet Supplies and StayWell Student Accommodation Databases 9
OWNER
OWNER_NUM LAST_NAME FIRST_NAME ADDRESS CITY STATE ZIP_CODE
MO100 Moore Elle-May 8006 W. Newport Ave. Reno NV 89508
PA101 Patel Makesh 7337 Sheffield St. Seattle WA 98119
AK102 Aksoy Ceyda 411 Griffin Rd. Seattle WA 98131
CO103 Cole Meerab 9486 Circle Ave. Olympia WA 98506
KO104 Kowalczyk Jakub 7431 S. Bishop St. Bellingham WA 98226
SI105 Sims Haydon 527 Primrose Rd. Portland OR 97203
BU106 Burke Ernest 613 Old Pleasant St. Twin Falls ID 83303
RE107 Redman Seth 7681 Fordham St. Seattle WA 98119
LO108 Lopez Janine 9856 Pumpkin Hill Ln. Everett WA 98213
BI109 Bianchi Nicole 7990 Willow Dr. New York NY 10005
JO110 Jones Ammarah 730 Military Ave. Seattle WA 98126
PROPERTY
PROPERTY_ID OFFICE_NUM ADDRESS SQR_FT BDRMS FLOORS MONTHLY_RENT OWNER_NUM
1 1 30 West Thomas Rd. 1,600 3 1 1,400 BU106
2 1 782 Queen Ln. 2,100 4 2 1,900 AK102
3 1 9800 Sunbeam Ave. 1,005 2 1 1,200 BI109
4 1 105 North Illinois Rd. 1,750 3 1 1,650 KO104
5 1 887 Vine Rd. 1,125 2 1 1,160 SI105
6 1 8 Laurel Dr. 2,125 4 2 2,050 MO100
7 2 447 Goldfield St. 1,675 3 2 1,700 CO103
8 2 594 Leatherwood Dr. 2,700 5 2 2,750 KO104
9 2 504 Windsor Ave. 700 2 1 1,050 PA101
10 2 891 Alton Dr. 1,300 3 1 1,600 LO108
11 2 9531 Sherwood Rd. 1,075 2 1 1,100 JO110
12 2 2 Bow Ridge Ave. 1,400 3 2 1,700 RE107
It might at first seem reasonable to include property IDs in the OWNER table, as it would
only add one more column. However, if you look at the tables, you notice that there are more
properties than owners because some owners have more than one property managed by
StayWell. If the OWNER table included the property codes, this would require some entries
to have more than one property ID. This would either require multiple property columns or
require single rows to contain multiple data entries, creating issues in cross-referencing.
StayWell provides maintenance services across the properties in the two areas;
this is shown in Figure 1-7. The SERVICE_CATEGORY table includes details of
these services. The CATEGORY_NUM provides a unique number for the service, and
CATEGORY_DESCRIPTION shows what the service is.
SERVICE_CATEGORY
CATEGORY_NUM CATEGORY_DESCRIPTION
1 Plumbing
2 Heating
3 Painting
4 Electrical systems
5 Carpentry
6 Furniture replacement
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
10 Module 1
The SERVICE_REQUEST, as shown in Figure 1-8, table shows requests that residents
have put into the offices for maintenance. Each row contains a unique service ID number,
the property ID, and the category relating to Figure 1-7. For example, the first line shows the
unique service ID, followed by the property ID, which is 11. Looking at the PROPERTY table,
we can see that this is 9531 Sherwood Rd, and by referencing the office number we can see
that this is managed by StayWell-Georgetown. The table includes details of the request, along
with the current status. The estimated time to complete the service is included, plus the
actual amount of time and the date of the action to be taken, where applicable.
The RESIDENTS database, as shown in Figure 1-9, includes details about the
residents living in each property. The RESIDENT column includes the first name and last
name for each of the residents, along with a resident ID. The PROPERTY_ID is the unique
identification number of the property in which they are staying.
SERVICE_REQUEST
SERVICE_ PROPERTY_ CATEGORY_ OFFICE_ DESCRIPTION STATUS EST_ SPENT_ NEXT_
ID ID NUMBER NUM HOURS HOURS SERVICE_DATE
1 11 2 2 The second Problem has 2 1 11/01/2019
bedroom been confirmed.
upstairs is not Central heating
heating up at engineer has
night. been scheduled.
2 1 4 1 A new strip light Scheduled 1 0 10/02/2019
is needed for the
kitchen.
3 6 5 1 The bathroom Service rep has 3 1 11/09/2019
door does not confirmed issue.
close properly. Scheduled to
be refitted.
4 2 4 1 New outlet has been Scheduled 1 0 10/02/2019
requested for the
first upstairs
bedroom. (There is
currently no outlet).
5 8 3 2 New paint job Open 10 0
requested for the
common area
(lounge).
6 4 1 1 Shower is Problem 4 2 10/07/2019
dripping confirmed.
when not in use. Plumber has
been scheduled.
7 2 2 1 Heating unit in Service rep 1 0 10/09/2019
the entrance confirmed the
smells like issue to be dust
it’s burning. in the heating unit.
To be cleaned.
8 9 1 2 Kitchen sink Problem 6 2 11/12/2019
does not drain confirmed.
properly. Plumber scheduled.
9 12 6 2 New sofa requested. Open 2 0
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Introduction to KimTay Pet Supplies and StayWell Student Accommodation Databases 11
RESIDENTS
RESIDENT_ID FIRST_NAME SURNAME PROPERTY_ID
1 Albie O’Ryan 1
2 Tariq Khan 1
3 Ismail Salib 1
4 Callen Beck 2
5 Milosz Polansky 2
6 Ashanti Lucas 2
7 Randy Woodrue 2
8 Aislinn Lawrence 3
9 Monique French 3
10 Amara Dejsuwan 4
12 Rosalie Blackmore 4
13 Carina Britton 4
14 Valentino Ortega 5
15 Kaylem Kent 5
16 Alessia Wagner 6
17 Tyrone Galvan 6
18 Constance Fleming 6
19 Eamonn Bain 6
20 Misbah Yacob 7
21 Gianluca Esposito 7
22 Elinor Lake 7
23 Ray Rosas 8
24 Damon Caldwell 8
25 Dawood Busby 8
26 Dora Harris 8
27 Leroy Stokes 8
28 Tamia Hess 9
29 Amelia Sanders 9
30 Zarah Byers 10
31 Sara Farrow 10
32 Delilah Roy 10
33 Dougie McDaniel 11
34 Tahir Halabi 11
35 Mila Zhikin 12
36 Glenn Donovan 12
37 Zayn Fowler 12
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
12 Module 1
Module Summary
• KimTay Pet Supplies is an organization whose information requirements include sales
reps, customers, items, invoices, and invoice lines.
• StayWell Student Accommodation is an organization whose information requirements
include management offices, property details, owners, residents, and services
requests.
Key Term
database
Case Exercises
Critical Thinking
1. KimTay Pet Supplies needs to be able to contact customers when problems arise concern-
ing an invoice. What other types of data could KimTay include in the CUSTOMER table to
assist in contacting customers?
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Discovering Diverse Content Through
Random Scribd Documents
"Not at all. It is a lady of a great deal more importance--in size, at
any rate. Miss Fauntleroy."
"Is your sister going to make a long stay with us, Rose?" he
quietly asked.
"My opinion is, that she'll make it just as long as you choose to
ask her: for ever and a day if Sir Isaac should please. Take care of
her, Frederick St. John! I never saw Charlotte put forth her
attractions as she is doing now."
Mrs. Darling and Rose took their departure from Castle Wafer,
leaving Charlotte and Georgina Beauclerc its only guests. It was
lovely weather, and the weeks went on. The mornings were chiefly
spent out of doors. Isaac St. John, so much stronger than he used to
be, had never gone about his grounds as he was going now. His
companions were always Charlotte Carleton and Georgina; Frederick
often strolling by their side. In the afternoon one or other of them
would be driven, out by Sir Isaac in his low pony-carriage, and the
other would be with Mrs. St. John, sitting at home with her or going
out in the close carriage, as the case might be. As to Frederick, he
was apparently leading a very idle life. In point of fact, he was
secretly busy as ever was a London detective, watching Mrs.
Carleton. He had been watching her closely ever since the departure
of Mrs. Darling and Rose, now three weeks ago, and he persuaded
himself that he did detect signs of incipient madness.
He also observed that whenever she was put out in this way, it
was always with reference to Isaac. One day in particular, it almost
came to open warfare.
"Are you going out?" asked Mrs. Carleton, drawing her shawl more
closely around her slender and stately form.
"I am going with Sir Isaac," replied Georgina: and Mrs. Carleton
made an almost imperceptible pause before she spoke again.
"You petted child!" he fondly said. "Who told you I was going to
Hatherton?"
"Brumm. I asked him what the pony-carriage had come round for
this morning. You will take me?" she continued, her voice and
manner irresistible in their sweetness.
"I suppose I must," he answered. "If Mrs. Carleton will allow me--
will excuse the trouble she has had in putting on her things. There!
put on your bonnet, my wilful, troublesome child; you would charm
a bird from its nest."
Let us give Georgina Beauclerc her due. She never suspected, any
more than did Sir Isaac, that Mrs. Carleton could by any possibility
regard her as a rival. Had she been told that Mrs. Carleton was
laying siege to the master of Castle Wafer, Georgina had retired to a
respectful distance and looked on. From her light-hearted youth,
they appeared very old to her. Mrs. Carleton was a widow, who had
lost all she cared for in life; Sir Isaac was a second father to her,
looking older, in his hump, than her own, and she was at liberty to
be free and familiar with him as a daughter.
Mrs. Carleton stood at the window as they drove off. She was
wholly mistaking matters, as we all do when ill-nature or prejudice is
upon us. The triumphant look in the girl's face and eyes, really
shining forth in her warm-hearted joyousness, and unsuspicious of
offence to any, was regarded by Charlotte Carleton as a displayed
triumph over her; the saucy farewell, which was more saucy in tone
than in words, and which was meant for no one in particular, but for
Frederick if any one, was taken by the unhappy lady to herself. That
strange evil look arose in her eyes as she gazed after the carriage,
and a shiver passed through her frame.
"I beg your pardon, Mrs. Carleton: you are dropping your shawl."
"Thank you," she said; "this silk shawl is given to slipping off."
At first she said no; but recalled the negative and thought she
would trouble him. It was so quiet indoors this morning without Sir
Isaac, and that gay, foolish girl, Georgina. Yes; if not interrupting
those apparently important letters, she would accept his offer.
So his mother had noticed it! "Not if the mistress were suitable."
"He might give it a worse, Frederick; I like her."
"It is only a suggestion that crossed me; it does seem next door to
an impossibility that Isaac should marry, after all. Don't let it make
you uncomfortable."
"Nay, mother mine, you mistake me," he said. "None would more
heartily welcome the thought of a wife for Isaac, should such be his
own desire; but I--I think I should not like the wife to be Mrs.
Carleton."
He spoke calmly, but a flush passed over his brow at the thought,
a chill to his heart. He quitted his mother and strolled outside.
Georgina was with Isaac then. She had edged herself between
him and the arm of the bench, and was taking up his attention, to
the exclusion of Mrs. Carleton. If the girl had only known the sin she
was committing in that lady's sight! Luring him away in her pretty
wilfulness to walk with her on the lower walks under the bright
stars; and he went without so much as a word of apology or regret
to Mrs. Carleton: and the sound of their voices as they paced
together, came up with a joyous ring on the still night air. Frederick
St. John watched her attentively under cover of the darkness; he
saw the distorted countenance, the fearful eyes, and he decided that
she was mad, and was meditating some revenge on Miss Beauclerc.
"I have had a letter from Rose," she said. "Would you like to see
it? She speaks of Paris as of an elysium."
"I saw only the white things she was wrapped in; the outline of
her figure. It was by that outline I took it to be Prance, and because
she was standing at Mrs. Carleton's door, which was then open, or
seemed to be."
"She sleeps in Mrs. Carleton's room. Did you not know it? There
was a little bed put into the room for her the day they came. Mrs.
Carleton does not like sleeping in a room alone."
"Just now I saw her in the corridor. I asked whether anything was
the matter last night, but she did not seem to know what I meant,
and I explained. She quite laughed at me, saying I must have been
suffering from nightmare."
"Entirely. She says it's not possible any one could have been there,
for she slept very badly last night, and must have heard the slightest
movement outside, had there been any, her bed being close to the
door. What do you think?" concluded Georgina.
Mr. St. John did not say what he thought: he chose rather to treat
it lightly. "It might have been a sort of nightmare."
"I did not intend to say anything to her. But Prance most likely
will."
"I could not sleep with my door locked. If a fire took place in the
house, I might be burnt up before any one could arouse me."
CHAPTER XXXIII.
A TELEGRAM
And how, indeed, could he think it? Look at her now. Sitting there
so calm, so gentle, by Georgina's side, handing the cup of tea to
Isaac she had just poured out, speaking with a sunny smile.
"I won't transgress this time, Sir Isaac, and give you too much
sugar. Indeed, I forgot before. I must have thought I was
sweetening for Mr. St. John."
"Ay, no doubt," replied Sir Isaac. "He can take any amount of
sugar. Do you remember when you were a little fellow, Fred, I would
half melt the lumps in my tea, and you would eat them for me?"
"I have had a letter from Alnwick this morning," observed Sir
Isaac, turning to Mrs. Carleton. "Drake remonstrates against the Hall
being left empty any longer. He says if I would only go to it for a
week, it would be an earnest that it will sometime be occupied
again. What should you all say to a week's visit there--provided Mrs.
St. John shall think herself well enough to undertake the journey?"
"I beg your pardon," cried Sir Isaac, in warm, considerate tones;
"I ought to have remembered. Then you would not like to go there?"
Of course that ended it, Sir Isaac intimated, and the conversation
dropped. He was ever solicitous for the comfort of Mrs. Carleton, in
small things as in great. This may have arisen solely from his
sympathy with her position, from the feeling that he was in
possession of the revenues she had once expected would be hers:
but that she attributed it to a warmer sentiment, there could be little
doubt.
"I will go with you, dear St. Isaac," was Mrs. Carleton's honeyed
answer; and Frederick St. John did not like to see the gratified look
that illumined his brother's face as he thanked her.
Perhaps he was right. He might have seen his way more clearly,
had there been tangible proof to bring forward concerning Mrs.
Carleton's state of mind; but there was none. To say, "I fear she is
not quite sane, or that she may hereafter become insane," would
naturally be met by the question, "What grounds have you for
thinking so?"--and he had really no good grounds to advance. And
yet he felt that Isaac ought to be warned, lest he should
compromise himself.
He rang the bell, and told the servant who answered it to send
Honour to him. He had not seen the girl, as far as he remembered,
since his present sojourn at home. The fact was, Honour's duties
had been changed, and lay downstairs now, instead of above. She
had given up the place of housemaid, which she found did not suit
her, to become assistant to the housekeeper, and was learning
cooking and confectionery. Not once in six months now would her
duties take her up the grand staircase, or bring her in contact with
the guests.
"Where have you been hiding yourself?" asked Mr. St. John, when
she appeared in obedience to his orders. "I never see you by any
chance."
Honour explained now. She looked just the same as ever, and she
still wore mourning for her beloved Benja.
"Honour, I want to ask you a question. And you must answer it,
for it is essential that you should do so. But you may rely upon my
discretion, and no trouble shall accrue to you from it. You once
spoke a word or two which led me to infer that your late mistress,
Mrs. Carleton St. John, was not altogether of sound mind. Did you
mean what you said?"
"It is not that, sir; it is that I don't well know how to answer you. I
remember what I said--you were asking me about that dreadful
night, saying that from the manner in which he had been burnt to
death it looked as though somebody had done it for the purpose;
and I answered, in the moment's haste, that nobody could have
done that, unless it was Mrs. St. John in her madness."
"I did, and I didn't, sir. I had seen my mistress two or three times
in a most awful passion; a passion, sir, that you would hardly believe
possible in a lady, and I meant that if she had done it, it must have
been in one of those mad fits of passion. But I did not really mean
that she had done it," resumed Honour, "and I could have bitten my
tongue out afterwards for answering so carelessly; it was the very
thing Mrs. Darling warned me against. There was no reason for
supposing the calamity to have been anything but pure accident."
"It occurred in this way, sir. After it was all over and the poor lamb
buried, I had brain fever; and they tell me I made all sorts of wild
accusations in it, amidst others that my mistress had set fire to
Benja and bolted the door upon him. After I got well, Mrs. Darling
told me of this. Nothing could be kinder than what she said, but she
warned me never to breathe such words again. I should not have
had such a thought, even in my delirium, but for the bolted doors; I
couldn't get over that at the time; but I came to the same
conclusion at last as other people--that poor Benja must have
fastened the one to keep me out, and that the other was not bolted
at all. It's likely enough, for I never was in such a flurry before,
smelling the burning so strong."
"So they tell me, sir. How I came to fancy such wicked thoughts is
the wonder. It's true that she was always jealous of Benja after her
own child was born, always hated him; and I suppose I remembered
that, even in my unconsciousness. Not an hour before the accident
she had beaten him cruelly."
"She did, sir. It's over now, and I said nothing about it: where was
the use? Well, all these things must have got jumbled together in my
poor fevered brain, and caused me to say what I did. I was very
sorry for it, sir, when I got well; I should never have thought of such
a thing in my senses."
"Oh no, never. In those frightful passions she was as one mad, sir,
but they were over directly. I hope you'll pardon me, sir, for having
been so foolish as to say it."
"It's only Honour Tritton, ma'am; do you not know her? You fool,
why did you put yourself in her sight!" added the woman to Honour
in whispered exasperation. "I told you to keep out of it--that she
didn't know you were here. The sight of you cannot be pleasant to
her remembrance."
Mr. St. John seemed equally stunned with Honour. "What is the
meaning of this?" he asked.
"I'm sure I don't know, sir," was the girl's answer, as she burst into
tears.
"Prance said she had warned you to keep out of Mrs. Carleton's
sight. Is that true?"
"Yes, sir, it's true. She said her mistress did not know I was at
Castle Wafer, and I had better take care and not show myself to
her."
"But why?"
"I don't know, sir. All she said was that Mrs. Carleton St. John was
fearfully angry with me still, knowing that, but for my carelessness in
leaving the child he would be alive now. I had kept out of her sight
until today. But it seemed to me now that she looked more terrified
than angry."
As it had to Mr. St. John. Honour went out about her business,
and he felt bewildered with the complication of events that seemed
to be arising. There came down an apology to the luncheon-room
from Mrs. Carleton, delivered by Prance. Her lady had a headache,
brought on by being so long in the hot sun without a parasol, and
was now lying down.
"How sorry I am!" exclaimed Sir Isaac. "She complained of the sun
when we were out."
"Not quite. To tell you the truth, Mr. St. John," she continued in
quiet, confidential tones, "the sight of that woman, Honour Tritton,
had as much to do with my headache as the heat. You know who
she was, I presume--nurse to my poor little stepson; the woman to
whose unpardonable carelessness his death was attributable. I have
never been able to think of the woman since without horror, and the
unexpected sight of her--for I had no idea she was at Castle Wafer--
was almost too much for me."
"As I hear. I wonder Sir Isaac should have engaged her. However,
of course, that is no business of mine. I hope she will not come into
my way again, for I have a perfect horror of her. But for her
wickedness, we might all still have been happy at Alnwick."
She rose as she spoke, and went on the lawn. Mrs. St. John was
there. Sir Isaac was then in his own sitting-room, and Frederick went
in to him. The table was strewed with papers, and he was writing
rapidly.
"Are you writing to stop it?" asked Frederick, when he had read
the note.
"I should telegraph," said Frederick. Sir Isaac laid down his pen.
"It might be the better plan, But you can say so little in a message."
"Do both," advised the younger brother. "I will go off at once and
send the message, and you can post your letter afterwards. You will
then have the satisfaction of knowing that all has been done that
can be done."
"Yes, that will be better. If you don't mind the trouble. But you will
hardly be back by dinner-time."
Sir Isaac wrote the message, and Frederick started with it, leaping
down the slopes buoyant as a schoolboy. It was a sensible relief,
perhaps, to what he had called his cross-grained mood. He had only
a short walk; for the railway had now been extended from
Lexington, and its small station was not far from the lodge gates of
Castle Wafer.
Mr. St. John entered the little telegraph office. He gave in his
message, and was exchanging a few words with the clerk, when the
rustle of petticoats was heard, and a female voice addressed the
clerk in hurried accents. Mr. St. John at the moment was behind the
partition, and unseen by the newcomer.
"Paris."
"What's to pay?"
"Twelve-and-sixpence."
The clink of silver was heard, dashed down upon the counter. "I
can't stop to argue about the charge, so I must pay it," grumbled
the voice. "But it's a great shame, young man."
She bustled out again as hurriedly as she had come in, not having
seen Mr. St. John, or suspected that the wooden partition had any
one behind it. He went to the door, looked after her, and recognized
Prance: he thought he had not been mistaken in the voice. She was
walking very fast indeed in the direction of Castle Wafer.
"I must see that message, Jones," said Mr. St. John, turning back
into the little room.
Mr. Jones hesitated; but there was an air of quiet command in the
words--and the speaker was the heir of Castle Wafer. He laid the
written message on the desk.
"Please come back as quick as you can. I don't like her symptoms.
I am afraid of something that I had better not write down here."
"Is it to go, sir?" asked the clerk.
"Oh yes, it is to go. Thank you. It's all right. I had a reason for
wishing to see it."
He took both her hands in his, and gazed steadfastly into her
excited face. The blushes began to rise.
She laughed, and would have drawn her hands away. But he held
them still.
"I can't wait: I must tell you. Papa and mamma are on their way
home. They will be at the Rectory tomorrow night."
"They have had news at the Rectory and sent up to tell me, I am
so glad! It seems ages and ages since I saw papa. Only think how I
might have been spared the trouble of writing that long letter to
mamma today, had I known?"
"Because it's the truth. I shall be glad when you are away from
here, safe in the dean's charge again."
There was an earnestness in his tone which caused her large eyes
to open.
"You have not been rude to me once this time until now," she
pouted. "Sir Isaac would not say that."
"Rude?"
"It is rude to tell me you want to get rid of me. I never said a
ruder thing to you than that, in my wildest days."
"I do want it," he answered, laughing. But he laid his hand upon
her head as he spoke, and looked fondly at her. Her eyelids fell.
But the words were spoken as though he did care for her.
Georgina ran away from him into the drawing-room. He followed,
and found them going in to dinner, Charlotte Carleton leaning on the
arm of Sir Isaac.
The question came from Mrs. Carleton, and it may be that it took
Sir Isaac somewhat by surprise, after her previous avoidance of the
subject. They were at dessert, not on this same day, but on the
next, for four-and-twenty hours have gone on.
"In what way do you mean?" Sir Isaac asked, consideration very
distinguishable in his tone. But it was called up by the subject alone.
"I am not sure. I have a place in the North, you know, hitherto
held in reserve should I leave Castle Wafer."
"As its master, yes, should Frederick marry. It has always been my
intention to resign it to him. But I dare say they would have me as
their guest for six months of the year."
Her handsome face was bent downwards; her raven hair, with the
perfumed white rose in it, was very close to her host.
"But shall you never marry?" she softly asked. "Why should you
not form ties of your own? Oh, Sir Isaac, it is what every one would
wish you to do."
Sir Isaac slightly shook his head. Frederick St. John's ears were
strained to catch the conversation, although he was giving his
attention to Miss Beauclerc.
"Do you know what I should like to do with Alnwick?"--and Sir
Isaac's voice dropped to a whisper. "I should like to see you in it."
"Then you must not run away from it," said Sir Isaac, smiling.
"I don't want to run away from it," she answered, her eyes lifted
pleadingly to his. "I have nowhere to run to. It is so hard--so very
hard to make a fresh home! And I have so little to make one with. I
lost all when I lost Alnwick."
A movement. Mrs. St. John was rising, and Frederick gave his
mother a mental blessing as he opened the door. Sir Isaac passed
the claret to him as he sat down, and he poured out a glass
mechanically, but did not touch it. In the last twenty-four hours his
doubts, as to Mrs. Carleton's designs on Sir Isaac, had become
certainties, and his spirit was troubled.
"You have been inviting Mrs. Carleton to prolong her stay here,
Isaac?"
"I invited her, when she first came, to stay as long as she liked,"
was Sir Isaac's reply. "I hope she will do so."
"Do you like her?"
"Very much indeed. I liked her the first time I ever saw her. Poor
thing! so meek, so gentle, and so unfortunate! she has all my
sympathy."
"She is very generous," returned Fred: and Sir Isaac did not detect
the irony of the remark. "I heard her say it would be a sin for you to
quit Castle Wafer; or something to that effect. It has been always
my own opinion, you know, Isaac."
The words evidently surprised Sir Isaac. He turned his keen eyes
upon the speaker. Frederick's were not lifted from the balancing
knife.
Down fell the knife on the dessert-plate, chipping a piece off its
edge. The culprit was vexed. Sir Isaac smiled.
"The old action, Fred. Do you remember breaking that beautiful
plate of Worcester porcelain in the same way?"
"I do: and how it vexed my mother, for it spoilt the set. They had
better not put me a knife and fork; make me go without, as they do
the children. I am sure to get playing with them."
"For another thing, I was going to say, Isaac--I am not sure that
she is sane."
"Then perhaps you will tell me what grounds you have for saying
this."
And here was Frederick's dilemma. What grounds had he? None.
The reasons that seemed weighty enough to his own mind, were as
nothing when spoken; and it suddenly struck him that he was not
justified in repeating the gossip of a girl as careless as Rose.
"I have seen a strange look in her face more than once," he said;
"a wild, awful expression in her eyes, that I don't believe could visit
the perfectly sane. Isaac, on my honour I don't speak without
believing that I have good reason--and that it lies in my duty to do
so."
"I think you speak without grounds, Frederick," said Sir Isaac,
gravely. "Many of us look wild enough at times. I have noticed
nothing of this."
"Yes, also."
"Then all I can say is, I don't understand you: unless, indeed, you
are more insane than she is. She may stop here for ever if she likes.
Remember, I enjoy the revenues that were once hers. And please
don't attempt anything of this sort again, Frederick."
Sir Isaac left the dining-room as he spoke, and Frederick took his
hat and went out, his veins tingling with a sense of shame and
failure. He could not speak to more effect than he had spoken now;
that wretched self-consciousness withheld him: and yet he felt that
Isaac ought to be warned. Were he indeed to marry her, and find
out afterwards that she was insane, Frederick believed that it would
kill him.
Losing his own father at an early age, and being much with Dean
Beauclerc, it is possible that Frederick St. John had insensibly grown
to look upon him almost in the light of a father. Certain it was, that