SQL Primer: An Accelerated Introduction to SQL Basics Rahul Batra - Get the ebook in PDF format for a complete experience
SQL Primer: An Accelerated Introduction to SQL Basics Rahul Batra - Get the ebook in PDF format for a complete experience
com
https://textbookfull.com/product/sql-primer-an-accelerated-
introduction-to-sql-basics-rahul-batra/
OR CLICK HERE
DOWLOAD EBOOK
https://textbookfull.com/product/learning-sql-master-sql-fundamentals-
alan-beaulieu/
textbookfull.com
https://textbookfull.com/product/sql-server-execution-plans-for-sql-
server-2008-through-to-2017-and-azure-sql-database-3rd-edition-grant-
fritchey/
textbookfull.com
https://textbookfull.com/product/practical-guide-to-oracle-sql-t-sql-
and-mysql-1st-edition-preston-zhang/
textbookfull.com
Azure SQL Revealed: A Guide to the Cloud for SQL Server
Professionals Bob Ward
https://textbookfull.com/product/azure-sql-revealed-a-guide-to-the-
cloud-for-sql-server-professionals-bob-ward/
textbookfull.com
https://textbookfull.com/product/excel-basics-to-blackbelt-an-
accelerated-guide-to-decision-support-designs-3rd-edition-elliot-
bendoly/
textbookfull.com
PROC SQL Beyond the Basics Using SAS Third Edition Kirk
Paul Lafler
https://textbookfull.com/product/proc-sql-beyond-the-basics-using-sas-
third-edition-kirk-paul-lafler/
textbookfull.com
https://textbookfull.com/product/azure-sql-revealed-a-guide-to-the-
cloud-for-sql-server-professionals-1st-edition-bob-ward/
textbookfull.com
https://textbookfull.com/product/sql-for-data-analytics-harness-the-
power-of-sql-to-extract-insights-from-data-3rd-edition-jun-shan/
textbookfull.com
SQL Primer
An Accelerated Introduction
to SQL Basics
—
Add a core competency to
your skill set that every
programmer, system administrator,
database administrator,
and data scientist should have
—
Rahul Batra
SQL Primer
An Accelerated Introduction
to SQL Basics
Rahul Batra
SQL Primer
Rahul Batra
Gurgaon, Haryana, India
v
Table of Contents
vi
Table of Contents
vii
Table of Contents
viii
Table of Contents
Index�������������������������������������������������������������������������������������������������189
ix
About the Author
Rahul Batra was first introduced to
programming in 1996 in GWBASIC, but he
did not seriously foray into it until 2001 when
he started learning C++. Along the way, there
were dabblings in many other languages like
C, Ruby, Perl, Python, and Lisp. He has worked
with databases such as PostgreSQL, Sybase
ASA, and SQLite. He is passionate about
sharing knowledge, especially with those who
are just starting out. Rahul currently lives and
works in Gurgaon, India.
xi
About the Technical Reviewer
Stefan Ardeleanu was born in Bucharest,
Romania, in 1967. He graduated Math and
Philosophy, and he was a math teacher for
10 years. Afterwards, he started a career in
software development. He felt attracted by
databases from the beginning so his entire
career in software industry has been related
to databases and, especially, to database
development and design.
Stefan Ardeleanu is a database specialist,
a database architect and developer, working
for many years under various systems as Oracle, SQL Server, DB2,
and PostgreSQL. He has experience in OLTP and Data warehouse and
replication systems.
Stefan is a passionate SQL guy, and he was able to develop and
improve a specific style of development. This style is reflected in his
various projects, including replication systems and data migration
systems, where this style is highly required.
xiii
Acknowledgments
I got into computing early, when I was around 12 years old. In those
days, buying a personal computer was an expensive affair. Especially in
a developing country like India where the computer revolution was slow
to reach the household level. I owe a debt of gratitude to my parents and
my sister for providing me with a PC. Without it, I certainly would not
have had as much passion for the field as I do now. Thank you for your
unwavering belief in me.
My wife not only acted as an editor for the early drafts of this text but
also took the lion’s share of taking care of our child while I was writing the
book. Thank you for your patience and encouragement.
Completing a book is rarely an individual effort. I thank the team at
Apress for working with me to bring this to fruition. Thank you, Jonathan
and Jill for taking a chance on me and keeping me focused. Thank you,
Stefan and Laura for combing through the text and improving the finished
product immensely.
Finally, thanks are in order to my early readers who suggested
improvements and caught errors – Keith Thompson, Nathan Adams, Paul
Guilbault, Jim Noh, and Sean Farrell.
xv
Introduction
I wrote the predecessor text to this book in late 2012 and put it on the
Internet hoping someone would find it useful. There was enough response
that I continued writing and we have this book as a result. There have
been lots of changes and additions over time, but the core aim remains the
same – a brief introduction to SQL assuming no prior experience in it.
After reading this text, the reader should be able to recognize the parts
of queries they encounter and even be able to write simple SQL statements
and queries themselves. The book, however, is not intended as a reference
work or for a full-time database administrator since it does not have
exhaustive topic coverage.
The book is written in a linear fashion – you start from Chapter 1 and
work your way forward. Being example heavy, I hope readers are able to
jump to certain topics and get a quick recap. The examples are worked out
in PostgreSQL and SQLite, but the goal is to remain DBMS implementation
agnostic as far as possible.
I encourage you to tinker with the statements and queries as you
progress through the book. Also, be sure to check out the appendices for
book recommendations to help you dig deeper in the world of SQL and
databases.
Your questions, comments, criticism, encouragement, and corrections
are most welcome and you can e-mail me at [email protected].
xvii
CHAPTER 1
An Introduction
to SQL
Modern society is driven by data. Whether it is at a personal level, like a
notebook containing scribbled notes; or at a countrywide level like Census
data, it has permeated all our workflows. There is always a growing need
to efficiently store and organize it so that meaningful information can be
extracted out of raw data.
A database is nothing but a collection of organized data. It doesn’t
have to be in a digital format to be called a database. A telephone directory
is a good example, which stores data about people and organizations with
a contact number. A to-do list is also a rudimentary form of a database.
With ever-larger amounts of data being collected about even the most
mundane of processes, digital databases have become increasingly
important since their inception in the 1960s.
Software that is used to manage a digital database is called a Database
Management System (DBMS). When you hear someone talking about
PostgreSQL or MySQL, they are referring to a DBMS. A database is what is
created when you use the DBMS software to store data about topics that
make sense to you or your organization. For example, your company may
use PostgreSQL to store inventory information about cellular phones – the
product that you sell. In this case, you have created an inventory database
using PostgreSQL as your DBMS.
1
odd, E. F.; “A Relational Model of Data for Large Data Banks,” Communications
C
of the ACM, vol 13, no 6, June 1970, https://www.seas.upenn.edu/~zives/03f/
cis550/codd.pdf
2
Chapter 1 An Introduction to SQL
3
Chapter 1 An Introduction to SQL
This does not mean that it is the only database query language to
exist. In the 1980s, another language called QUEL from Ingres was fairly
popular, but the standardization effort around SQL cemented its position.
In recent years, we have seen a large number of non-relational databases
being developed under the umbrella term of NoSQL. Most of their query
languages, however, bear some resemblance to SQL even though their data
model varies significantly from the relational model.
4
Chapter 1 An Introduction to SQL
E xplaining Tables
A table in a relational database is nothing but a two-dimensional matrix
of data where the columns describe the type of data, and the row contains
the actual data to be stored. Have a look at Table 1-1 to get a sense of the
visualization of a table in a database.
5
Chapter 1 An Introduction to SQL
2
cCarthy, John; “Recursive functions of symbolic expressions and their
M
computation by machine, Part I,” Communications of the ACM, vol 3, issue 4, April
1960, http://jmc.stanford.edu/articles/recursive/recursive.pdf
6
Chapter 1 An Introduction to SQL
There are two things of note in the example table. The first one is that
the id field effectively tells you nothing about the programming language
by itself, other than its sequential position in the table. The second is that
though we can understand the fields by looking at their names, we have
not formally assigned a data type to them, that is, we have not restricted
(not yet anyways) whether a field should contain alphabets or numbers or
a combination of both.
The id field here serves the purpose of a primary key in the table. It
makes each record in the table unique, and its advantages will become
clearer in chapters to come. But for now consider this, what if a language
creator made two languages in the same year; we would have a difficult
time narrowing down on the records. An id field usually serves as a good
primary key since it’s guaranteed to be unique, but usage of other fields for
this purpose is not restricted.
A key concept of tables is that they are conceptual in nature and may
not have any bearing upon the actual files where the data is stored. When
users create a spreadsheet, they associate a file name with the spreadsheet
and place it somewhere on their disk. But relational databases hide all
these details from the user. The physical storage of a table on the disk
might be to a single file, or to many files, or even have a relationship of
storing many tables in a single file. It is the responsibility of your DBMS to
provide a way to read and write to tables.
7
Chapter 1 An Introduction to SQL
char(12)
varchar(12)
If you store the value ‘McCarthy’ that is eight characters long, the
char will store it but waste four characters. The varchar will store it as
exactly eight characters but the whole dynamism comes at a cost of speed.
Nonetheless, the speed difference is small enough that for most scenario’s
you would see the varying character data type being used.
In case of number values, we get a split across two major classes –
integer for storing whole numbers and numeric for storing number values
with a decimal point in them. The ranges and limits of the values being
stored in them vary with your choice of DBMS. However, a good rule of
thumb to follow is to use the smallest data type that will suffice for the
present and foreseeable future of your application.
8
Chapter 1 An Introduction to SQL
numeric(precision, scale)
numeric(5, 2)
The total number of digits is specified by the precision and the number
of digits after the decimal point is represented by scale. So in the example
given, we would be able to store a number like 999.99 but not any further.
Since data types still vary from a DBMS implementation to another, I
suggest you keep your DBMS manual handy. Each implementation gives
you many other types to work with, but for our learning purposes, the ones
above should suffice.
9
CHAPTER 2
Getting Your
Database Ready
The best way to learn SQL is to practice writing the commands on a real
relational database management system. In this book SQL is taught using
either one of the following systems: PostgreSQL or SQLite. The reasons for
choosing these DBMS systems are simple – they are free and open source,
with availability on most major platforms. PostgreSQL is a full-features
enterprise class database management system with a great community.
SQLite is a small but robust system that is especially suited for learning
purposes. Choose the latter if you are not comfortable with software
installations.
However, any relational database product that you can get your hands
on should serve you just fine. In some cases, you may already have access
to one in your organization, but be sure to ask for permissions to use it
for learning purposes. There might be minor incompatibilities between
different vendors, so if you choose something else to practice on while
reading this book, it would be a good idea to keep the database vendor's
user manual handy.
Since this text deals largely with teaching SQL in a product-
independent manner, rather than the teaching of a specific DBMS system,
details with respect to installation and specific operations of the product
will be kept to a minimum. Emphasis is instead placed on a few specific
steps that will help you to get working on writing SQL as fast as possible.
U
sing PostgreSQL
The latest version of PostgreSQL as of writing this book was 9.6. You don’t
absolutely need the latest version; in fact I use version 9.5 in this text.
You can download the latest version of PostgreSQL from https://
www.postgresql.org/download/ for your platform. For the fastest and
easiest installation, I would recommend you choose your platform from
the Binary Packages list. Pre-built binaries mean that you can simply
download and install PostgreSQL like any other software using a graphical
step-by-step installer.
After choosing your platform, you might still get multiple ways to
perform an installation. I’d recommend choosing the graphical installer
version from third-party vendors like BigSQL or EnterpriseDB. I had
chosen the EnterpriseDB installer for my Fedora Linux machine, and a
friendly installation procedure popped up when I ran the downloaded file,
asking for details like the installation directory (Figure 2-1).
12
Chapter 2 Getting Your Database Ready
Some other details will also be asked for, most importantly the port
number and password. The default value of 5432 for the port number
should suffice. At the end of installation, you would have user named
‘postgres’ on your system and a working database installation.
You can quickly verify that everything went well using psql, which is a
command-line utility to interact with your PostgreSQL installation. I am
capturing the command and output from my system below (Listing 2-1).
If you get a similar output, you are ready to start using your PostgreSQL
installation. If not, I’m afraid you will have to do some digging on your
own. You can also choose SQLite, which is discussed in the next section
and has a much easier installation procedure.
U
sing SQLite
If installing PostgreSQL seems like a daunting task, you are in luck. There is
a very credible, free alternative database for you to practice on. It is called
SQLite and its creator D. Richard Hipp has generously licensed it in the
public domain. You can download it from the project page at: https://
www.sqlite.org/download.html
Like the previous section, what you are looking for to get the fastest
start is precompiled binaries corresponding to your operating system.
SQLite is tiny; on most platforms its core engine is less than one megabyte!
If you are using Microsoft Windows, you are looking for the section
titled “Precompiled Binaries for Windows.” Download the SQLite DLL
zip archive, named like sqlite-dll-win32-x86-xxxxxxx.zip, which contains
SQLite but not a way to interact with it. For that you must download the
SQLite shell, named like sqlite-tools-win32-x86-xxxxxxx.zip, which will
allow us to create and query SQLite databases through the command line.
Extract both these archives into the same directory and you are done
installing SQLite. Your folder should now contain at least three files:
• sqlite3.dll
• sqlite3.def
• sqlite3.exe
The last one launches the command shell used to interact with SQLite
databases.
14
Chapter 2 Getting Your Database Ready
If you are on a Linux or MacOS X system, chances are high that you
already have SQLite installed. To test this, you can attempt launching the
SQLite shell sqlite3 (Listing 2-2).
[~]$ sqlite3
SQLite version 3.13.0 2016-05-18 10:57:30
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
If you get the output as above, you have everything you need to run
SQLite. Alternatively, if you get an error message, it means you have to
install it yourself. You can either use the similar precompiled binary
method for your platform or you could use the system installer.
For systems like Red Hat Enterprise Linux, Scientific Linux, and
CentOS, you can use yum to install SQLite.
15
Chapter 2 Getting Your Database Ready
16
Chapter 2 Getting Your Database Ready
If you are using SQLite, fire up the command shell, and you will be
greeted with a text printing version information (Listing 2-4). This is
exactly the same message we saw in the previous section when we were
verifying our SQLite installation.
On a Linux system, you could also simply write the database name
after the command of the SQLite shell like below, and you would be able to
open the said database.
sqlite3 testdb
T able Creation
We have already explored the concept of a table in a relational model. It is
now time to create one using a standard SQL command – CREATE TABLE
(Listing 2-5).
17
Discovering Diverse Content Through
Random Scribd Documents
kränklich und dann und wann ein wenig argwöhnisch ist. Leben Sie wohl.
Ich bin —
N. S.
Denken Sie einmal, liebste Freundin! gestern bekomme ich von Herrn
Weisen einen Brief, — einen sehr gütigen, freundschaftlichen Brief. Und
dieses Vergnügen muß mir durch eine so traurige Nachricht verbittert
werden, als die von Meinhards Tode. Ja, dieser rechtschaffene Mann,
dieser große Gelehrte, dieser schöne und empfindliche Geist, dieser mein
Freund — ist todt. Peace to his gentle shade!
Fünfter Brief.
B***, den 9. und 10. Juni.
„Wer alles sehen will, was nur die Natur und der Himmel unter den
Menschen vermag, der komme, diese zu sehen. Aber er komme bald. Denn der
Tod raubt zuerst die besten, und läßt die schlechtern stehen. Dieses in dem
Reiche der Götter schon lang erwartete schöne und sterbliche Geschöpf geht
nur vorüber, und bleibt nicht. Wenn er noch zu rechter Zeit kommt, so wird er
jede Tugend, jede Schönheit, jede erhabene Eigenschaft in einem Körper mit
wunderbarer Mischung vereinigt sehen. Aber wenn er zu lange zaudert, so wird
er nur kommen, um beständig zu weinen“[A].
[A] Für Freunde des Originals folgt hier das ganze Sonnet:
Wissen Sie auch wohl, daß ich Ihre Frage, ob wir noch einerley
Empfindungen mit einander hätten, für einen Vorwurf würde angesehen,
und daß mich dieser Vorwurf würde gekränkt haben, wenn ich nicht
selbst in den Beyspielen, die Sie dafür anführen, eine nette Bestätigung
dieser Gleichheit Ihrer Gesinnungen mit den meinigen, auf die ich so stolz
bin, gefunden hätte. Ich kann mir also unmöglich helfen. Ich muß erst
diese beyden Punkte erörtern, ehe ich ein Wort weiter schreiben kann,
gesetzt auch, daß Ihnen indeß der Brief vor Langerweile aus der Hand
fallen sollte.
Zuerst also meine Unzufriedenheit bey meiner Ankunft in B****.
Sollte ich Ihnen erst nöthig haben, die Quellen davon zu entdecken?
Sie sagen, ich hatte Freunde verlassen, die mich liebten, und ich kam zu
andern, die ich auch liebte. Haben Sie niemals diese angenehme
Mischung von Schmerz und Vergnügen, von Verlangen und von
Befriedigung, von Sehnsucht nach abwesenden Gütern, und von Genuß
der gegenwärtigen empfunden? Haben sich niemals mit den Thränen, die
Sie über den Anblick neuer Freunde vergossen, diejenigen vermischt, die
Ihnen das Andenken an die, von denen Sie sich losgerissen hatten,
ablockte? Sie, die Sie die menschliche Seele so gut kennen, da Sie Ihre
eigene mit so vieler Sorgfalt studirt haben, wissen Sie nicht, wie geschickt
eine gewisse Art von Freude ist, die traurigen Empfindungen, die eine
Zeit lang in der Seele geschlafen haben, wieder zu erwecken, und mit
ihnen vermischt einen gewissen Zustand der Ermattung hervorzubringen,
wo die Seele, zu denken und zu handeln unfähig, unter der Menge von
dunkeln Ideen, die sich in ihr zusammen drängen, erliegt. So empfand
meine gute Mutter den Verlust ihrer Tochter niemals mehr, als da sie
ihren Sohn wieder sah, und ich fühlte in den ersten Umarmungen meiner
Mutter am meisten, wie viel ich an Freunden verloren hatte, die in diesem
Augenblicke mit mir die Glückseligkeit einer wieder vereinigten Familie
würden getheilt haben.
Dieses waren die Regungen der ersten Augenblicke. Ihnen folgten
andere eben so traurige, aber weniger angenehme. Glauben Sie ja nicht,
daß die guten Leute immer glücklich sind. Wenn sie es wären, so bin ich
stolz genug zu sagen: unser Haus würde mehr als einen Glücklichen
einschließen. Aber wie weit, wie weit ist es davon entfernt, daß dieses
ganz wahr seyn sollte? Meine Mutter, durch die natürliche Zärtlichkeit
ihres Körpers, und durch die große Empfindlichkeit ihrer Seele, einer
Menge von Uebeln bloß gestellt, mit denen die Natur härtere und
fühllosere Menschen verschont hat; durch eine beynahe fortgehende
Reihe von Unglücksfällen in einer beständigen Uebung dieser
Empfindlichkeit unterhalten; durch eine sehr schwere und sorgenvolle
Nahrung, die sie seit dem Tode ihres Mannes ohne Gehülfen und
Rathgeber besorgt, abgemattet und entkräftet, von Krankheit und der
Annäherung des Alters bis zu dem äußersten Grade der Zärtlichkeit in
ihren Nerven gebracht; und in diesem Zeitpunkte ihrer besten Stütze
beraubt, und fast mitten unter ihrer Familie einsam und verlassen, —
sagen Sie mir, geliebte Freundin, was würden Sie in meinen Umständen
fühlen, wenn Sie, so wie ich, sich außer Stande sähen, dieser Mutter zu
helfen; wenn Sie ihr sogar in der Zukunft keine Aussicht, wenigstens
keine nahe Aussicht anweisen könnten, durch die Sie ihre gegenwärtigen
Umstände erträglich machten? Sagen Sie mir, liebe Freundin, wo ist die
Stelle, die für mich zubereitet ist, und von der ich hoffen könnte, meiner
Mutter die ihrem gütigen Herzen so theuere Glückseligkeit zu verschaffen,
in der Gesellschaft ihres Sohnes ihre letzten Tage in Ruhe und
Zufriedenheit zuzubringen? Ich selbst in die Welt nur noch so
hingeworfen, in die Welt, die, dem Himmel sey es gedankt, nicht ganz
leer von Freunden für mich, aber vielleicht leer von Beförderern und
dem, was man darin Patronen nennt, ist; ich selbst noch von einem Orte
zum andern herumirrend, zwar nicht ganz ohne Endzweck, aber doch
noch ohne große Mittel, diesen Endzweck auszuführen; was kann ich für
meine Mutter thun, da ich für mich selbst nichts zu thun vermag?
Glauben Sie wohl, daß es mir unter diesen Umständen leicht wird,
daran zu denken, daß ich meine Mutter verlassen soll; sie so verlassen,
ohne ihr vorher zu sagen, nach was für einem Plane ich arbeiten werde,
um ihre Glückseligkeit mit der Erreichung meiner Wünsche zu vereinigen?
Und doch kann ich nicht anders; ich muß sie verlassen. Alles, sie selbst
ausgenommen, macht, daß ich diesen Augenblick beynahe wünsche. Die
Beförderung, die mir meine Vaterstadt darbieten kann, ist, wie Sie
wissen, nur von einer einzigen Art. Glauben Sie nicht, daß mich der Name
und die gewöhnliche Verachtung eines Schulmannes abhalten würde, in
einen Stand zu treten, der, wenn er recht verwaltet wird, ehrwürdig ist,
und den die Vortheile und die Erleichterung, die ich meiner Mutter
dadurch verschaffe, mir auch sogar liebenswürdig machen würden. Aber
die Verrichtungen, die hier zuerst denen auferlegt sind, die in diesen
Stand treten, die Unwissenheit, und noch mehr der elende Geschmack,
der unter den meisten der hiesigen Schullehrer herrscht, und durch sie
ohne Zweifel die Studirenden ansteckt; der durchgängige Mangel an
guter Lebensart bey dieser ganzen Zunft Leuten, unter denen ich doch
genöthigt würde zu leben; der Mangel an Ermunterung und Hülfsmitteln
zur Vermehrung der Wissenschaften, die ich mehr schätze als alles;
endlich, was darf ich es erst sagen, die Entfernung von Freunden, die mir
theuer sind, um so viel theurer, weil ich sie nicht bloß der Natur und
Familienverbindungen zu danken habe; — alles dieses, und was weiß ich
noch, was für hundert dunkel damit vermischte Vorstellungen mehr,
machen mir es ganz unmöglich, daran zu denken.
Nun gut also. Ich gehe von B****. Aber wohin? Nach L***zig? Ja
freilich ist dieß der Ort, der mich unter allen am meisten an sich zieht.
Aber was hälfe es, wenn ich vor mir selbst es verbärge. Es ist nicht
Hoffnung der Beförderung, sondern das Vergnügen, meine Freunde
wieder zu sehen, welches mir diese Stadt vor allen andern so angenehm
macht. Sie wissen selbst, und wenn Sie es nicht wissen, so lassen Sie sich
es den braven und rechtschaffenen Ebert sagen, was für Geduld und
Aufopferungen dazu gehören, sein Glück bey der Leipziger Akademie zu
erwarten. Und während der Zeit, daß ich diese vielleicht fehl schlagende
Probe machte, würde meine arme Mutter von Alter und Sorgen verzehrt,
von ihren noch übrigen Freunden vollends entblößt, und stürbe, ehe sie
die so lange gehoffte und so theuer errungene Ruhe ihres Alters gekostet
hätte. Lassen Sie mich also auf eine andere Universität gehen, wo die
Beförderung leichter und geschwinder ist. Setzen Sie den besten
möglichen Fall. Machen Sie mich in einigen Jahren zum Professor in Halle,
oder in irgend einem andern solchen Winkel der Erde. Jetzt soll ich meine
Mutter in ihrem Alter aus ihrem natürlichen Boden in ein ganz fremdes
Land verpflanzen, sie aus einer belebten und volkreichen Stadt in einen
todten und finstern Flecken führen, sie aus dem Cirkel ihrer Freunde und
ihrer Bekanntschaften, die sie von langer Zeit her kennen, die sie alle
hochschätzen, unter ganz fremde und für sie noch gar nicht
eingenommene Menschen bringen, — oder mir mit einem so groben
Stolze schmeicheln, daß ich allein aller deren Stelle würde ersetzen
können. — Ist dieses vielleicht nicht ein eben so schwerer und trauriger
Schritt für beyde? — Und doch bey dem allen, was bleibt mir übrig?
Sie sehen, liebe Freundin, wenn Sie diese Ueberlegungen machen, Sie
werden meine Unruhe nicht schelten, so gütig Sie mich auch von Ihrer
Gewogenheit versichert haben, und so gewiß ich von der Liebe der
Meinigen bin. — Aber das ist noch lange nicht alles. Ich behalte mir dieß
auf einen andern Brief vor. Ich kann nicht anders; ich muß Sie mit meinen
eigenen Angelegenheiten unterhalten. Der Wohlstand würde dieß bey
Personen, die weniger meine Freunde wären, verbieten. Aber es ist gar
zu eine große und eine zu unentbehrliche Glückseligkeit, zuweilen sein
volles Herz in den Schoß eines Freundes ausschütten zu können. Ich
habe Ihnen schon oft gesagt, Sie und Ihr liebster Gemahl machen in
meiner Einbildungskraft nur Eine Person aus. Sie sind in meinen
Gedanken eben so unzertrennlich, als Sie es durch Ihre Liebe sind. Alles
also, was ich Ihnen schreibe, ist zugleich für ihn geschrieben. Sein kurzer
Brief ist mir dem ungeachtet so angenehm gewesen, als der längste Brief
hundert anderer mir nicht seyn würde.....
Ich sehe, ich stehe in Gefahr, meinen Brief eben so lang und so voll
von Digressionen zu machen, als es des Tristram Shandy Roman ist. Also
nur noch ein Wort von Klopstock und seinen Briefen, und dann nehme ich
bis auf künftigen Freytag von Ihnen Abschied. (Können Sie wohl
errathen, was ich da erwarte?) —
Ich wundere mich gar nicht darüber, daß Ihnen des Mannes, und mir
der Frau ihre Briefe zärtlicher vorkommen. Das macht, würde Onkel
Tobias sagen, Sie sind eine Frau, und ich ein junger Mensch. Ich habe
des Klopstocks Briefe flüchtig gelesen, der Frau ihre recht aufmerksam.
Sie haben vielleicht das Gegentheil gethan. Mit einem gleichen Grade der
Aufmerksamkeit würden wir bey beyden vielleicht gleich viel empfunden
haben. Ich wenigstens, durch die Verschiedenheit Ihres Gefühls
aufmerksam gemacht, habe sie noch einmal gelesen, und schon habe ich
des Klopstock Briefe viel zärtlicher gefunden. Aber, daß es ihre weniger
sind, das wollte ich doch noch nicht gerne für wahr halten.
Wie gern fieng’ ich noch die eilfte Seite an, um Stellen zu meiner
Vertheidigung anzuführen! Aber es hilft nichts. Es ist jetzt ein Uhr,
Dienstags in der Nacht. Möchten doch die gütigen Engel Ihre und Ihres
Geliebten Ruhe beschirmen u. s. w.
Siebenter Brief.
B***, den — Juli
1767.
Ich wende noch die Augenblicke, die ich vor dem Antritte meiner Reise
übrig habe, dazu an, an Sie zu denken, und das, was ich gedacht habe,
niederzuschreiben. Ich weiß, daß sich Ihre freundschaftliche Neubegierde
nicht bloß damit beruhigen wird, zu wissen wo ich bin. Sie werden auch
wissen wollen, was ich da mache. —
Wenn ich mich nicht irre, so müssen Sie schon Herrn Ringeltauben, in
dessen Hause ich seyn werde, aus meinen Beschreibungen kennen. Ich
verehre ihn als meinen Lehrer; und ich liebe ihn als meinen Freund und
meinen Bruder. Hochachtung und Dankbarkeit sind gewiß die festesten
Bande, die die Natur hat, zwey nicht ganz unedle Seelen mit einander zu
verbinden. Sein Haus soll sehr bequem, und die Gegend vortrefflich
seyn. Meine Mutter, die das Land über alles, und den Herrn Ringeltauben
als ihren Sohn liebt, wird sich dort wieder erholen, und das wird auf mich
zurück wirken. Endlich werde ich Bücher genug haben, um die leeren
Stunden auszufüllen. Der Herr Oberforstmeister, mit dem ich reise, ist
lange im Kriege mit dem General Wobersnow in Leipzig gewesen. Er ist
ein Mann von sehr vielem Verstande, von einer großen Erfahrung, (da er
lange Zeit mit den Vornehmsten der Armee und einige Zeit auch mit dem
Könige selbst umgegangen ist;) und der Mann einer Frau, die beynahe
meine Gespielin gewesen ist. Der Weg heraus geht an der Oder, in einer
sehr angenehmen Gegend. Ihre Briefe dürfen Sie nicht anders als bisher
addressiren. Ich habe gemessene Ordre gestellt, sie mir gleich
nachzuschicken.
Erwarten Sie also ins künftige Briefe, die voll von ländlicher Unschuld
und Einfalt, aber auch voll von ländlichem Vergnügen sind.
Neunter Brief.
S***witz den — Juli.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com