100% found this document useful (2 votes)
424 views

Instant Download SQL in a Nutshell, 4th Edition Kevin Kline PDF All Chapters

Kevin

Uploaded by

bedeemayasvb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
424 views

Instant Download SQL in a Nutshell, 4th Edition Kevin Kline PDF All Chapters

Kevin

Uploaded by

bedeemayasvb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

Get ebook downloads in full at ebookmeta.

com

SQL in a Nutshell, 4th Edition Kevin Kline

https://ebookmeta.com/product/sql-in-a-nutshell-4th-edition-
kevin-kline/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

SQL in a Nutshell, 4th Edition (Third Early Release) Kevin


Kline & Regina O. Obe

https://ebookmeta.com/product/sql-in-a-nutshell-4th-edition-third-
early-release-kevin-kline-regina-o-obe/

ebookmeta.com

Python in a Nutshell, 4th Edition Alex Martelli

https://ebookmeta.com/product/python-in-a-nutshell-4th-edition-alex-
martelli/

ebookmeta.com

Consumer Protection Law in a Nutshell 4th Edition Dee


Pridgen Gene Marsh

https://ebookmeta.com/product/consumer-protection-law-in-a-
nutshell-4th-edition-dee-pridgen-gene-marsh/

ebookmeta.com

Charlie s Good Tonight the Life the Times and the Rolling
Stones the Authorized Biography of Charlie Watts 1st
Edition Paul Sexton
https://ebookmeta.com/product/charlie-s-good-tonight-the-life-the-
times-and-the-rolling-stones-the-authorized-biography-of-charlie-
watts-1st-edition-paul-sexton/
ebookmeta.com
Dessert Cookbook: A Dessert Cookbook with Delicious
Dessert Recipes 1st Edition Booksumo Press

https://ebookmeta.com/product/dessert-cookbook-a-dessert-cookbook-
with-delicious-dessert-recipes-1st-edition-booksumo-press/

ebookmeta.com

You're a Mean One, Matthew Prince (Boy Meets Boy 2) 1st


Edition Timothy Janovsky

https://ebookmeta.com/product/youre-a-mean-one-matthew-prince-boy-
meets-boy-2-1st-edition-timothy-janovsky-2/

ebookmeta.com

All or None Cooperation and Sustainability in Italy s Red


Belt Anthropology of Europe 3 1st Edition Alison Sánchez
Hall
https://ebookmeta.com/product/all-or-none-cooperation-and-
sustainability-in-italy-s-red-belt-anthropology-of-europe-3-1st-
edition-alison-sanchez-hall/
ebookmeta.com

Beginning Algebra, 6th Edition Miller

https://ebookmeta.com/product/beginning-algebra-6th-edition-miller/

ebookmeta.com

Food Chemistry: The Role of Additives, Preservatives and


Adulteration 1st Edition Mousumi Sen

https://ebookmeta.com/product/food-chemistry-the-role-of-additives-
preservatives-and-adulteration-1st-edition-mousumi-sen/

ebookmeta.com
In the Moment: Build Your Confidence, Communication and
Creativity at Work 1st Edition Neil Mullarkey

https://ebookmeta.com/product/in-the-moment-build-your-confidence-
communication-and-creativity-at-work-1st-edition-neil-mullarkey/

ebookmeta.com
SQL in a Nutshell
A Desktop Quick Reference

With Early Release ebooks, you get books in their earliest form—the author’s
raw and unedited content as they write—so you can take advantage of these
technologies long before the official release of these titles.

Kevin Kline, Regina O. Obe, and Leo S. Hsu


SQL in a Nutshell
by Kevin Kline , Regina O. Obe , and Leo S. Hsu
Copyright © 2021 O’Reilly Media. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North,
Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales
promotional use. Online editions are also available for most titles
(http://oreilly.com ). For more information, contact our
corporate/institutional sales department: 800-998-9938 or
corporate@oreilly.com .
Acquisitions Editor: Andy Kwan

Development Editor: Rita Fernando

Production Editor: Beth Kelly

Interior Designer: David Futato

Cover Designer: Karen Montgomery

Illustrator: Rebecca Demarest

November 2021: Fourth Edition


Revision History for the Early Release
2021-07-22: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781492088868 for


release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
SQL in a Nutshell , the cover image, and related trade dress are
trademarks of O’Reilly Media, Inc.
The views expressed in this work are those of the authors, and do
not represent the publisher’s views. While the publisher and the
authors have used good faith efforts to ensure that the information
and instructions contained in this work are accurate, the publisher
and the authors disclaim all responsibility for errors or omissions,
including without limitation responsibility for damages resulting from
the use of or reliance on this work. Use of the information and
instructions contained in this work is at your own risk. If any code
samples or other technology this work contains or describes is
subject to open source licenses or the intellectual property rights of
others, it is your responsibility to ensure that your use thereof
complies with such licenses and/or rights.
978-1-492-08879-0
[FILL IN]
Chapter 1. SQL History and
Implementations

A NOTE FOR EARLY RELEASE READERS


With Early Release ebooks, you get books in their earliest form—the author’s
raw and unedited content as they write—so you can take advantage of these
technologies long before the official release of these titles.
This will be the 1st chapter of the final book.
If you have comments about how we might improve the content and/or
examples in this book, or if you notice missing material within this chapter,
please reach out to the editor at rfernando@oreilly.com.

In the early 1970s, the seminal work of IBM research fellow Dr. E. F.
Codd led to the development of a relational data model product
called SEQUEL, or Structured English Query Language . SEQUEL
ultimately became SQL, or Structured Query Language .
IBM, along with other relational database vendors, wanted a
standardized method for accessing and manipulating data in a
relational database. Although IBM was the first to develop relational
database theory, Oracle was first to market the technology. Over
time, SQL proved popular enough in the marketplace to attract the
attention of the American National Standards Institute (ANSI) in
cooperation with the International Standards Organization (ISO),
which released standards for SQL in 1986, 1989, 1992, 1999, 2003,
2006, 2011, and 2016.
Since 1986, various competing languages have allowed developers
to access and manipulate relational data. However, few were as easy
to learn or as universally accepted as SQL. Programmers and
administrators now have the benefit of being able to learn a single
language that, with minor adjustments, is applicable to a wide
variety of database platforms, applications, and products.
SQL in a Nutshell , Fourth Edition, provides the syntax for five
common implementations of SQL:
The ANSI/ISO SQL standard

MySQL version 8 and MariaDB 10.5

Oracle Database 19c

PostgreSQL version 13

Microsoft’s SQL Server 2019


The Relational Model and ANSI SQL
Relational database management systems (RDBMSs) such as those
covered in this book are the primary engines of information systems
worldwide, and particularly of web applications and distributed
client/server computing systems. They enable a multitude of users
to quickly and simultaneously access, create, edit, and manipulate
data without impacting other users. They also allow developers to
write useful applications to access their resources and provide
administrators with the capabilities they need to maintain, secure,
and optimize organizational data resources.
An RDBMS is defined as a system whose users view data as a
collection of tables related to each other through common data
values. Data is stored in tables , which are composed of rows and
columns . Tables of independent data can be linked (or related ) to
one another if they each have unique, identifying columns of data
(called keys ) that represent data values held in common. E. F. Codd
first described relational database theory in his landmark paper “A
Relational Model of Data for Large Shared Data Banks,” published in
the Communications of the ACM (Association for Computing
Machinery) in June, 1970. Under Codd’s new relational data model,
data was structured (into tables of rows and columns); manageable
using operations such as selections, projections, and joins; and
consistent as the result of integrity rules such as keys and referential
integrity. Codd also articulated rules that governed how a relational
database should be designed. The process for applying these rules is
now known as normalization .
Codd’s Rules for Relational Database Systems
Codd applied rigorous mathematical theories (primarily set theory)
to the management of data, and he compiled a list of criteria a
database must meet to be considered relational. At its core, the
relational database concept centers around storing data in tables.
This concept is now so common as to seem trivial; however, not long
ago the goal of designing a system capable of sustaining the
relational model was considered a long shot with limited usefulness.
Following are Codd’s Twelve Principles of Relational Databases :
1. Information is represented logically in tables.

2. Data must be logically accessible by table, primary key, and


column.

3. Null values must be uniformly treated as “missing information,”


not as empty strings, blanks, or zeros.

4. Metadata (data about the database) must be stored in the


database just as regular data is.

5. A single language must be able to define data, views, integrity


constraints, authorization, transactions, and data manipulation.

6. Views must show the updates of their base tables and vice
versa.

7. A single operation must be available to do each of the following


operations: retrieve data, insert data, update data, or delete
data.

8. Batch and end-user operations are logically separate from


physical storage and access methods.
9. Batch and end-user operations can change the database
schema without having to recreate it or the applications built
upon it.

10. Integrity constraints must be available and stored in the


metadata, not in an application program.

11. The data manipulation language of the relational system should


not care where or how the physical data is distributed and
should not require alteration if the physical data is centralized
or distributed.

12. Any row processing done in the system must obey the same
integrity rules and constraints that set-processing operations
do.
These principles continue to be the litmus test used to validate the
“relational” characteristics of a database platform; a database that
does not meet all of these rules is not fully relational. While these
rules do not apply to applications development, they do determine
whether the database engine itself can be considered truly
“relational.” Currently, most commercial RDBMS products pass Codd’s
test. All platforms discussed in the reference material of SQL in a
Nutshell , Fourth Edition satisfy these requirements, while the most
prominent NoSQL data platforms are discovered in Chapter 9.
Understanding Codd’s principles assists developers in the proper
development and design of relational databases (RDBs). The
following sections detail how some of these requirements are met
within SQL using RDBs.

Data structures (rules 1, 2, and 8)


Codd’s rules 1 and 2 state that “information is represented logically
in tables” and that “data must be logically accessible by table,
primary key, and column.” So, the process of defining a table for a
relational database does not require that programs instruct the
database how to interact with the underlying physical data
structures. Furthermore, SQL logically isolates the processes of
accessing data and physically maintaining that data, as required by
rule 8: “batch and end-user operations are logically separate from
physical storage and access methods.”
In the relational model, data is shown logically as a two-dimensional
table that describes a single entity (for example, business expenses).
Academics refer to tables as entities and to columns as attributes .
Tables are composed of rows , or records (academics call them
tuples ), and columns (called attributes , since each column of a
table describes a specific attribute of the entity). The intersection of
a record and a column provides a single value . However, it is quite
common to hear this referred to as a field , from spreadsheet
parlance. The column or columns whose values uniquely identify
each record can act as a primary key . These days this
representation seems elementary, but it was actually quite innovative
when it was first proposed.
The SQL standard defines a whole data structure hierarchy beyond
simple tables, though tables are the core data structure. Relational
design handles data on a table-by-table basis, not on a record-by-
record basis. This table-centric orientation is the heart of set
programming. Consequently, almost all SQL commands operate
much more efficiently against sets of data within or across tables
than against individual records. Said another way, effective SQL
programming requires that you think in terms of sets of data, rather
than of individual rows.
Figure 1-1 is a description of SQL’s terminology used to describe the
hierarchical data structures used by a relational database: clusters
contain sets of catalogs ; catalogs contain sets of s chemas ;
schemas contain sets of objects , such as tables and views ; and
tables are composed of sets of columns and records .
Figure 1-1. SQL3 dataset hierarchy

For example, in a Business_Expense table, a column called


Expense_Date might show when an expense was incurred. Each
record in the table describes a specific entity; in this case, everything
that makes up a business expense (when it happened, how much it
cost, who incurred the expense, what it was for, and so on).
Each attribute of an expense—in other words, each column—is
supposed to be atomic ; that is, each column is supposed to contain
one, and only one, value. If a table is constructed in which the
intersection of a row and column can contain more than one distinct
value, one of SQL’s primary design guidelines has been violated.
Some of the database platforms discussed in this book do allow you
to place more than one value into a column, via the VARRAY or
TABLE data types or, more common in the last several years, XML or
J SON data types.
Rules of behavior are specified for column values. Foremost is that
column values must share a common domain , better known as a
data type . For example, if the Expense_Date field is defined as
having a DATE data type, the value ELMER should not be placed into
that field because it is a string, not a date, and the Expense_Date
field can contain only dates. In addition, the SQL standard allows
further control of column values through the application of
constraints (discussed in detail in Chapter 2) and assertions . A SQL
constraint might, for instance, limit Expense_Date to expenses less
than a year old. Additionally, data access for all individuals and
computer processes is controlled at the schema level by an
AuthorizationID or user . Permissions to access or modify specific
sets of data may be granted or restricted on a per-user basis.
SQL databases also employ character sets and collations . Character
sets are the “symbols” or “alphabets” used by the “language” of the
data. For example, the American English character set does not
contain the special character for ñ in the Spanish character set.
Collations are sets of sorting rules that operate on a character set. A
collation defines how a given data manipulation operation sorts data.
For example, an American English character set might be sorted
either by character-order, case-insensitive , or by character-order,
case-sensitive .

NOTE
The ANSI/ISO standard does not say how data should be sorted, only
that platforms must provide common collations found in a given
language.

It is important to know what collation you are using when writing


SQL code against a database platform, as it can have a direct impact
on how queries behave, and particularly on the behavior of the
WHERE and ORDER BY clauses of SELECT statements. For example,
a query that sorts data using a binary collation will return data in a
very different order than one that sorts data using, say, an American
English collation. This is also very important when migrating SQL
code between database platforms since their default behavior may
vary widely. For example, Oracle is normally case-sensitive, while
Microsoft SQL Server is not case sensitive. So moving an unmodified
query from Oracle to SQL Server might produce a wildly different
result set because Oracle would evaluate “Halloween” and
“HALLOWEEN” as two unequal values, whereas SQL Server would
see them as equal, by default.

NULLs (rule 3)
Most databases allow any of their supported data types to store
NULL values. Inexperienced SQL developers tend to think of NULL as
zero or blank. In fact, NULL is neither of these. In SQL, NULL literally
means that the value is unknown or indeterminate. (This question
alone—whether NULL should be considered unknown or
Other documents randomly have
different content
He sent for Lois and told her about it, and she wept a little, partly for
joy and partly, he suspected, because she did not want him to take on
any new responsibilities.
Harker flicked the tears away. He stretched gently, mindful of his
sutures.
Lois said, "It's all finished, isn't it? The struggling and the conniving,
the plotting and scheming? Everything's going to be all right now."
He smiled at her. He was thinking that the stream of events could
have come out much worse. He had taken a desperate gamble, and
he and humanity both were that much the richer for it.
But the world as he had known it for forty-odd years was dead, and
would not return to life. This was a new era—an era in which the
darkest fact of existence, death, no longer loomed high over man.
Staggering tasks awaited mankind now. A new code of laws was
needed, a new ethical system. The first chapter had closed, but the
rest of the book remained to be written.
He squeezed her hand tightly. "No, Lois. It isn't all finished. The
hardest part of the job is just beginning. But everything's going to be
all right, now. Yes. Everything's going to be all right."
*** END OF THE PROJECT GUTENBERG EBOOK RECALLED TO
LIFE ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying copyright
royalties. Special rules, set forth in the General Terms of Use part of
this license, apply to copying and distributing Project Gutenberg™
electronic works to protect the PROJECT GUTENBERG™ concept
and trademark. Project Gutenberg is a registered trademark, and
may not be used if you charge for an eBook, except by following the
terms of the trademark license, including paying royalties for use of
the Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is very
easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the free


distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund from
the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only be


used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law in
the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name
associated with the work. You can easily comply with the terms of
this agreement by keeping this work in the same format with its
attached full Project Gutenberg™ License when you share it without
charge with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.

1.E. Unless you have removed all references to Project Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears, or
with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning of
this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1 with
active links or immediate access to the full terms of the Project
Gutenberg™ License.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or expense
to the user, provide a copy, a means of exporting a copy, or a means
of obtaining a copy upon request, of the work in its original “Plain
Vanilla ASCII” or other form. Any alternate format must include the
full Project Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt that
s/he does not agree to the terms of the full Project Gutenberg™
License. You must require such a user to return or destroy all
copies of the works possessed in a physical medium and
discontinue all use of and all access to other copies of Project
Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in paragraph
1.F.3, the Project Gutenberg Literary Archive Foundation, the owner
of the Project Gutenberg™ trademark, and any other party
distributing a Project Gutenberg™ electronic work under this
agreement, disclaim all liability to you for damages, costs and
expenses, including legal fees. YOU AGREE THAT YOU HAVE NO
REMEDIES FOR NEGLIGENCE, STRICT LIABILITY, BREACH OF
WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE
PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE THAT THE
FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving it,
you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or entity
that provided you with the defective work may elect to provide a
replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.
1.F.6. INDEMNITY - You agree to indemnify and hold the
Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and distribution
of Project Gutenberg™ electronic works, harmless from all liability,
costs and expenses, including legal fees, that arise directly or
indirectly from any of the following which you do or cause to occur:
(a) distribution of this or any Project Gutenberg™ work, (b)
alteration, modification, or additions or deletions to any Project
Gutenberg™ work, and (c) any Defect you cause.

Section 2. Information about the Mission of


Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many small
donations ($1 to $5,000) are particularly important to maintaining tax
exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About Project


Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.

Project Gutenberg™ eBooks are often created from several printed


editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.

You might also like