SQL for Data Analytics: Harness the power of SQL to extract insights from data, 3rd Edition Jun Shan download
SQL for Data Analytics: Harness the power of SQL to extract insights from data, 3rd Edition Jun Shan download
https://textbookfull.com/product/sql-for-data-analytics-harness-
the-power-of-sql-to-extract-insights-from-data-3rd-edition-jun-
shan/
https://textbookfull.com/product/data-analytics-for-business-ai-
ml-pbi-sql-r-wolfgang-garn/
https://textbookfull.com/product/sql-queries-for-mere-mortals-a-
hands-on-guide-to-data-manipulation-in-sql-4th-edition-john-l-
viescas/
https://textbookfull.com/product/sql-server-execution-plans-for-
sql-server-2008-through-to-2017-and-azure-sql-database-3rd-
edition-grant-fritchey/
https://textbookfull.com/product/sql-quickstart-guide-the-
simplified-beginner-s-guide-to-managing-analyzing-and-
manipulating-data-with-sql-1st-edition-shields/
SQL Server Data Automation Through Frameworks: Building
Metadata-Driven Frameworks with T-SQL, SSIS, and Azure
Data Factory Andy Leonard
https://textbookfull.com/product/sql-server-data-automation-
through-frameworks-building-metadata-driven-frameworks-with-t-
sql-ssis-and-azure-data-factory-andy-leonard/
https://textbookfull.com/product/sql-server-big-data-clusters-
data-virtualization-data-lake-and-ai-platform-benjamin-weissman/
https://textbookfull.com/product/language-of-sql-the-3rd-edition-
rockoff/
https://textbookfull.com/product/analytics-engineering-with-sql-
and-dbt-building-meaningful-data-models-at-scale-1st-edition-rui-
pedro-machado/
https://textbookfull.com/product/pro-power-bi-desktop-self-
service-analytics-and-data-visualization-for-the-power-user-3rd-
edition-adam-aspin/
SQL for Data
Analytics
Third Edition
All rights reserved. No part of this course may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this course to ensure the accuracy
of the information presented. However, the information contained in this course
is sold without warranty, either express or implied. Neither the authors nor Packt
Publishing, and its dealers and distributors will be held liable for any damages caused
or alleged to be caused directly or indirectly by this course.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this course by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
Authors: Jun Shan, Matt Goldwasser, Upom Malik, and Benjamin Johnston
Editorial Board: Megan Carlisle, Ketan Giri, Heather Gopsill, Bridget Kenningham,
Manasa Kumar, Alex Mazonowicz, Monesh Mirpuri, Abhishek Rane,
Brendan Rodrigues, Ankita Thakur, Nitesh Thakur, and Jonathan Wray
ISBN: 978-1-80181-287-0
Preface i
Introduction ............................................................................................... 2
Data Analytics and Statistics ................................................................... 2
Activity 1.01: Classifying a New Dataset .................................................... 4
Types of Statistics .................................................................................... 5
Methods of Descriptive Statistics ............................................................... 6
Univariate Analysis ....................................................................................... 6
Data Frequency Distribution................................................................................6
Introduction ............................................................................................ 50
The World of Data .................................................................................. 51
Types of Data ............................................................................................... 52
Relational Databases and SQL ............................................................. 52
Advantages and Disadvantages of SQL Databases ................................ 54
PostgreSQL Relational Database
Management System (RDBMS) ............................................................. 55
Exercise 2.01: Running Your First SELECT Query ..................................... 58
SELECT Statement ....................................................................................... 62
The WHERE Clause ...................................................................................... 66
The AND/OR Clause .................................................................................... 67
The IN/NOT IN Clause ................................................................................. 69
ORDER BY Clause ........................................................................................ 71
The LIMIT Clause ......................................................................................... 75
IS NULL/IS NOT NULL Clause ..................................................................... 76
Exercise 2.02: Querying the salespeople Table
Using Basic Keywords in a SELECT Query ................................................ 78
Activity 2.01: Querying the customers Table
Using Basic Keywords in a SELECT Query ................................................ 81
Creating Tables ...................................................................................... 82
Creating Blank Tables ................................................................................. 82
Basic Data Types of SQL ........................................................................ 83
Numeric ....................................................................................................... 84
Character ..................................................................................................... 84
Boolean ........................................................................................................ 85
Datetime ...................................................................................................... 85
Data Structures: JSON and Arrays ....................................................... 86
Column Constraints ............................................................................... 86
Simple CREATE Statement ......................................................................... 87
Exercise 2.03: Creating a Table in SQL ...................................................... 88
Creating Tables with SELECT ..................................................................... 89
Updating Tables ..................................................................................... 91
Adding and Removing Columns ................................................................ 92
Adding New Data ........................................................................................ 93
Updating Existing Rows .............................................................................. 95
Exercise 2.04: Updating the Table to Increase
the Price of a Vehicle .................................................................................. 96
Deleting Data and Tables ........................................................................... 97
Deleting Values from a Row ...................................................................... 97
Deleting Rows from a Table ....................................................................... 98
Deleting Tables ............................................................................................ 99
Exercise 2.05: Deleting an Unnecessary Reference Table .................... 101
Activity 2.02: Creating and Modifying Tables
for Marketing Operations ........................................................................ 102
SQL and Analytics ................................................................................ 103
Summary ............................................................................................... 104
Chapter 3: SQL for Data Preparation 107
Outer Joins..........................................................................................................118
Cross Joins..........................................................................................................124
Appendix 431
Index 489
Preface
Another Random Scribd Document
with Unrelated Content
“But how is this?” said Hastings, “I see no houses but this one built
by Mr. Astor that are higher than three stories; it is the case
throughout the city, stores and all.”
“Since the two great fires of 1835 and 1842, the corporation forbid
the building of any house or store above a certain height. Those
tremendous fires, as I observed, brought people to their senses, and
they now see the folly of it.
“The ceilings are not so high as formerly; more regard is shown to
comfort. Why the old Recorder of Self-Inflicted Miseries states, that
men were so indifferent about the conveniences and comforts of life,
that they would sometimes raise the ceilings to the great height of
fourteen and fifteen feet! Nay, that they did so in despite of their
wives’ health, never considering how hard it bore on the lungs of
those who were affected with asthma or other visceral complaints.
Heavens and earth! how little the ease and pleasure of women were
consulted in your day.”
“Yes, that appears all very true,” said Hastings, “but you must
likewise recollect that these very women were quite as eager as
their husbands to live in houses having such high flights of stairs.”
“Poor things,” exclaimed Edgar, “to think of their being trained to like
and desire a thing that bore so hard on them. Only consider what a
loss of time and breath it must be to go up and down forty or fifty
times a day, for your nurseries were, it seems, generally in the third
story. We love our wives too well now to pitch our houses so high up
in the air. The Philadelphians had far more humanity, more
consideration; they always built a range of rooms in the rear of the
main building, and this was a great saving of time and health.”
“Where, at length, did they build the custom house?” said Hastings;
“I think there was a difficulty in choosing a suitable spot for it.”
“Oh, I recollect,” said Edgar. “Why they did at length decide, and one
was built in Pine street; but that has crumbled away long since. You
know that we have no necessity for a custom house now, as all
foreign goods come free of duty. This direct tax includes all the
expenses of the general and state governments, and it operates so
beautifully that the rich man now bears his full proportion towards
the support of the whole as the poor man does. This was not the
case in your day. Only think how unequally it bore on the labourer
who had to buy foreign articles, such as tea, and sugar, and coffee,
for a wife and six or eight children, and to do all this with his wealth,
which was the labour of his hands. The rich man did not contribute
the thousandth part of his proportion towards paying for foreign
goods, nor was he taxed according to his revenue for the support of
government. The direct tax includes the poor man’s wealth, which is
his labour, and the rich man’s wealth, which is his property.”
“But have the merchants no mart—no exchange? According to the
map you showed me of the two great fires, the first exchange was
burnt.”
“Yes, the merchants have a noble exchange. Did you not see that
immense building on State street, surrounded by an area? After the
first great fire they purchased—that is, a company purchased—the
whole block that included State street in front, Pearl street in the
rear, and Whitehall street at the lower end. All mercantile business is
transacted there, the principal post office and the exchange are
there now; the whole go under the general name of Mart—the City
Mart.”
“Is it not inconvenient to have the post office so far from the centre
of business?—it was a vexed question in my day,” said Hastings.
“You must recollect that even then, central as the post office was,
there were many sub-post offices. If men in your day were
regardless of the many unnecessary steps that their wives were
obliged to take, they were very careful of sparing themselves. We
adopt the plan now of having two sets of post men or letter carriers;
one set pass through the streets at a certain hour to receive letters,
their coming being announced by the chiming of a few bells at their
cars, and the other set delivering letters. They both ride in cars, for
now that no letter, far or near, pays more than two cents postage—
which money is to pay the letter carriers themselves—the number of
letters is so great that cars are really necessary. All the expense of
the post office department is defrayed from the income or revenue
of the direct tax—and hence the man of business pays his just
proportion too. It was a wise thing, therefore, to establish all the
mercantile offices near the Battery; they knew that the time was
coming when New York and Brooklyn would be as one city.”
“One city!” exclaimed Hastings; “how can that be? If connected by
bridges, how can the ships pass up the East river?”
“You forget that our vessels have no masts; they pass under the
bridges here as they do in the Delaware.”
“Oh, true, I had forgotten; but my head is so confused with all the
wonders that I see and hear, that you must excuse my mistakes. The
old theatre stood there, but it has disappeared, I suppose. It was
called the Park Theatre. How are the play houses conducted now? is
there only one or two good actors now among a whole company?”
“Well, that question really does amuse me. I dare say that the
people of your day were as much astonished at reading the accounts
handed down to them of the fight of gladiators before an audience,
as we are at your setting out evening after evening to hear the great
poets travestied. If we could be transported back to your time, how
disgusted we should be to spend four hours in listening to rant and
ignorance. All our actors now, are men and women of education,
such as the Placides, the Wallacks, the Kembles, the Keans, of your
day. I assure you, we would not put up with inferior talent in our
cities. It is a rich treat now to listen to one of Shakspeare’s plays, for
every man and woman is perfect in the part. The whole theatrical
corps is held in as much esteem, and make a part of our society, as
those of any other profession do. The worthless and the dissolute
are more scrupulously rejected by that body than they are from the
body of lawyers or doctors; in fact it is no more extraordinary now,
than it was in your day to see a worthless lawyer, or merchant, or
physician, and to see him tolerated in society too, if he happen to be
rich. But there is no set of people more worthy of our friendship and
esteem than the players. A great change, to be sure, took place in
their character, as soon as they had reaped the benefit of a college
education. I presume you know that there is a college now for the
education of public actors?”
“Is it possible?” said Hastings; “then I can easily imagine the
improvements you speak of; for with the exception of the few—the
stars, as they were called—there was but little education among
them.”
“Here it is that elocution is taught, and here all public speakers take
lessons,” said Edgar; “you may readily imagine what an effect such
an institution would have on those who intended to become actors.
In your day, out of the whole theatrical corps of one city, not more
than six or seven, perhaps, could tell the meaning of the words they
used in speaking, to say nothing of the sense of the author. There is
no more prejudice now against play-acting than there is against
farming. The old Recorder states, that, before our revolution, the
farmers were of a more inferior race, and went as little into polite
society as the mechanics did. Even so far back as your time a farmer
was something of a gentleman, and why an actor should not be a
gentleman is to us incomprehensible. One of the principal causes of
this change of personal feeling towards actors has arisen from our
having expunged all the low and indelicate passages from the early
plays. Shakspeare wrote as the times then were, but his works did
not depend on a few coarse and vulgar passages for their popularity
and immortality; they could bear to be taken out, as you will
perceive, for the space they occupied is not now known; the
adjoining sentence closed over them, as it were, and they are
forgotten. There were but few erasures to be made in the writings of
Sir Walter Scott; the times were beginning to loathe coarse and
indelicate allusions in your day, and, indeed, we may thank the other
sex for this great improvement. They never disgraced their pages
with sentences and expressions which would excite a blush. Look at
the purity of such writers as Miss Burney, Mrs. Radcliffe, Miss
Edgeworth, Miss Austin, Madame Cotton, and others of their day in
Europe,—it is to woman’s influence that we owe so much. See what
is done by them now; why they have fairly routed and scouted out
that vile, disgraceful, barbarous practice which was even prevalent in
your time—that of beating and bruising the tender flesh of their
children.”
“I am truly rejoiced at that,” said Hastings, “but I hope they
extended their influence to the schools likewise—I mean the
common schools; for, in my day in the grammar school of a college,
a man who should bruise a child’s flesh by beating or whipping him
would have been kicked out of society.”
“Why, I thought that boys were whipped in the grammar schools
also. In the year 1836, it appears to me, that I remember to have
read of the dismissal of some professor for injuring one of the boys
by flogging him severely.”
“I do not recollect it; but you say 1836—alas! I was unconscious
then. It was the remains of barbarism; how a teacher could get
roused to such height of passion as to make him desire to bruise a
child’s flesh, I cannot conceive—when the only crime of the poor
little sufferer was either an unwillingness or an inability to recite his
lessons. I can imagine that a man, when drunk, might bruise a
child’s flesh in such a shocking manner as that the blood would
settle under the skin, because liquor always brutalizes. Is
drunkenness as prevalent now as formerly?”
“Oh no, none but the lowest of the people drink to excess now, and
they have to get drunk on cider and wine, for spirituous liquors have
been prohibited by law for upwards of two hundred years. A law was
passed in the year 1901, granting a divorce to any woman whose
husband was proved to be a drunkard. This had a good effect, for a
drunkard knew that if he was abandoned by his wife he must perish;
so it actually reclaimed many drunkards at the time, and had a
salutary effect afterwards. Besides this punishment, if a single man,
or a bachelor, as he is called, was found drunk three times, he was
put in the workhouse and obliged to have his head shaved, and to
work at some trade. It is a very rare thing to see a drunkard now.
But what are you looking for?”
“I thought I might see a cigar box about—not that I ever smoke”—
“A what?—a cigar? Oh yes, I know—little things made of tobacco
leaves; but you have to learn that there is not a tobacco plantation
in the world now. That is one of the most extraordinary parts of your
history: that well educated men could keep a pungent and bitter
mass of leaves in their mouth for the pleasure of seeing a stream of
yellow water running out of it, is the most incomprehensible mystery
to me; and then, to push the dust of these leaves up their nostrils,
which I find by the old Recorder that they did, for the mere pleasure
of hearing the noise that was made by their noses! The old Recorder
called their pocket handkerchiefs flags of abomination.”
Hastings thought it was not worth while to convince the young man
that the disgusting practice was not adopted for such purposes as he
mentioned. In fact his melancholy had greatly increased since their
arrival in this city, and he determined to beg his young friend to
return the next day to their home, and to remain quiet for another
year, to see if time could reconcile him to his strange fate. He took
pleasure in rambling through the city hall, and the park, which
remained still of the same shape, and he was pleased likewise to see
that many of the streets at right angles with Broadway were more
than twice the width that they were in 1835. For instance, all the
streets from Wall street up to the Park were as wide as Broadway,
and they were opened on the other side quite down to the Hudson.
“Yes,” said Edgar, “it was the great fire of 1842 which made this
salutary change; but here is a neat building—you had nothing of this
kind in your time. This is a house where the daughters of the poor
are taught to sew and cut out wearing apparel. I suppose you know
that there are no men tailors now.”
“What, do women take measure?”
“Oh no, men are the measurers, but women cut out and sew. It is of
great advantage to poor women that they can cut out and make
their husbands’ and children’s clothes. The old Recorder states that
women—poor women—in the year 1836, were scarcely able to cut
out their own clothes. But just about that date, a lady of this city
suggested the plan of establishing an institution of this kind, and it
was adopted. Some benevolent men built the house and left ample
funds for the maintenance of a certain number of poor girls, with a
good salary for those who superintend it. And here is another house:
this is for the education of those girls whose parents have seen
better days. Here they are taught accounts and book-keeping—
which, however, in our day is not so complicated as it was, for there
is no credit given for any thing. In short these girls are instructed in
all that relates to the disposal of money; our women now
comprehend what is meant by stocks, and dividends, and loans, and
tracts, and bonds, and mortgages.”
“Do women still get the third of their husband’s estate after their
husband’s death?”
“Their thirds? I don’t know what you mean—Oh, I recollect; yes, in
your day it was the practice to curtail a woman’s income after her
husband’s death. A man never then considered a woman as equal to
himself; but, while he lived, he let her enjoy the whole of his income
equally with himself, because he could not do otherwise and enjoy
his money; but when he died, or rather, when about making his will,
he found out that she was but a poor creature after all, and that a
very little of what he had to leave would suffice for her. Nay, the old
Recorder says that there have been rich men who ordered the very
house in which they lived, and which had been built for their wives’
comfort, during their life time, to be sold, and who thus compelled
their wives to live in mean, pitiful houses, or go to lodgings.”
“Yes,” said Hastings,—quite ashamed of his own times,—“but then
you know the husband was fearful that his wife would marry again,
and all their property would go to strangers.”
“Well, why should not women have the same privileges as men? Do
you not think that a woman had the same fears? A man married
again and gave his money to strangers—did he not? The fact is, we
consider that a woman has the same feelings as we have ourselves
—a thing you never once thought of—and now the property that is
made during marriage is as much the woman’s as the man’s; they
are partners in health and in sickness, in joy and in sorrow—they
enjoy every thing in common while they live together, and why a
woman, merely on account of her being more helpless, should be
cut off from affluence because she survives her husband, is more
than we of this century can tell. Why should not children wait for the
property till after her death, as they would for their father’s death? It
was a relic of barbarism, but it has passed away with wars and
bloodshed. We educate our women now, and they are as capable of
taking care of property as we are ourselves. They are our trustees,
far better than the trustees you had amongst you in your day—they
seldom could find it in their hearts to allow a widow even her poor
income. I suppose they thought that a creature so pitifully used by
her husband was not worth bestowing their honesty upon.”
“But the women in my day,” said Hastings, “seemed to approve of
this treatment: in fact, I have known many very sensible women
who thought it right that a man should not leave his wife the whole
of his income after his death. But they were beginning to have their
eyes opened, for I recollect that the subject was being discussed in
1835.”
“Yes, you can train a mind to acquiesce in any absurd doctrine, and
the truth is, that as women were then educated, they were, for the
most part, unfit to have the command of a large estate. But I cannot
find that the children were eventually benefited by it; for young men
and women, coming into possession of their father’s estate at the
early age of twenty-one, possessed no more business talent than
their mother; nor had they even as much prudence and judgment in
the management of money matters, as she had. Men seldom
thought of this, but generally directed their executors to divide the
property among the children as soon as they became of age—utterly
regardless of the injustice they were doing their wives, and of the
oath which they took when they married—that is, if they married
according to the forms of the Episcopal church. In that service, a
man binds himself by a solemn oath ‘to endow his wife with all his
worldly goods.’ If he swears to endow her with all, how can he in
safety to his soul, will these worldly goods away from her. We
consider the practice of depriving a woman of the right to the whole
of her husband’s property after his death, as a monstrous act of
injustice, and the laws are now peremptory on this subject.”
“I am certain you are right,” said Hastings, “and you have improved
more rapidly in this particular, during a period of three hundred
years, than was done by my ancestors in two thousand years before,
I can understand now, how it happens, that children have the same
respect for their mother, that they only felt for their father in my
time. The custom, or laws, being altogether in favour of equality of
rights between the parents, the children do not repine when they
find that they stand in the same relation of dependence to their
mother, that they did to their father; and why this should not be, is
incomprehensible to me now, but I never reflected on it before.”
“Yes, there are fewer estates squandered away in consequence of
this, and society is all the better for it. Then to this is added the
great improvement in the business education of women. All the retail
and detail of mercantile operations are conducted by them. You had
some notion of this in your time; for, in Philadelphia, although
women were generally only employed to make sales behind the
counter, yet some were now and then seen at the head of the
establishment. Before our separation from Great Britain, the
business of farming was also at a low ebb, and a farmer was but a
mean person in public estimation. He ranks now amongst the
highest of our business men; and in fact, he is equal to any man
whether in business or not, and this is the case with female
merchants. Even in 1836, a woman who undertook the business of a
retail shop, managing the whole concern herself, although greatly
respected, she never took her rank amongst the first classes of
society. This arose, first, from want of education, and, secondly,
from her having lived amongst an inferior set of people. But when
women were trained to the comprehension of mercantile operations,
and were taught how to dispose of money, their whole character
underwent a change, and with this accession of business talent,
came the respect from men for those who had a capacity for the
conducting of business affairs. Only think what an advantage this is
to our children; why our mothers and wives are the first teachers,
they give us sound views from the very commencement, and our
clerkship begins from the time we can comprehend the distinction of
right and wrong.”
“Did not our infant schools give a great impulse to this improvement
in the condition of women, and to the improvement in morals, and
were not women mainly instrumental in fostering these schools?”
“Yes, that they were; it was chiefly through the influence of their
pen and active benevolence, that the scheme arrived at perfection.
In these infant schools a child was early taught the mystery of its
relation to society; all its good dispositions and propensities were
encouraged and developed, and its vicious ones were repressed. The
world owes much to the blessed influence of infant schools, and the
lower orders were the first to be humanized by them. But I need not
dwell on this particular. I shall only point to the improvement in the
morals of our people at this day, to convince you that it is owing
altogether to the benign influence of women. As soon as they took
their rank as an equal to man, equal as to property I mean, for they
had no other right to desire; there was no longer any struggle, it
became their ambition to show how long the world had been
benighted by thus keeping them in a degraded state. I say degraded
state, for surely it argued in them imbecility or incapacity of some
kind, and to great extent, too, when a man appointed executors and
trustees to his estate whilst his wife was living. It showed one of
three things—that he never considered her as having equal rights
with himself; or, that he thought her incompetent to take charge of
his property—or, that the customs and laws of the land had so
warped his judgment, that he only did as he saw others do, without
considering whether these laws and customs were right or wrong.
But if you only look back you will perceive, that in every benevolent
scheme, in every plan for meliorating the condition of the poor, and
improving their morals, it was women’s influence that promoted and
fostered it. It is to that healthy influence, that we owe our present
prosperity and happiness—and it is an influence which I hope may
forever continue.”
It was not to such a man as Hastings that Edgar need have spoken
so earnestly; he only wanted to have a subject fairly before him to
comprehend it in all its bearings. He rejoiced that women were now
equal to men in all that they ever considered as their rights; and he
rejoiced likewise that the proper distinction was rigidly observed
between the sexes—that as men no longer encroached on their
rights, they, in return, kept within the limits assigned them by the
Creator. As a man and a Christian, he was glad that this change had
taken place; and it was a melancholy satisfaction to feel that with
these views, if it had been permitted him to continue with his wife,
he should have put her on an equality with himself.
The moment his wife and child appeared to his mental vision, he
became indifferent to what was passing around him; Edgar,
perceiving that he was buried in his own thoughts, proposed that
they should return home immediately, and they accordingly passed
down Broadway to the Battery, from which place they intended to
take a boat. They reached the wharf—a ship had just arrived from
the Cape of Good Hope, with a fine cargo. The captain and crew of
which were black.
——“That is true,” said Hastings, “I have seen very few negroes;
what has become of them. The question of slavery was a very
painful one in my time, and much of evil was apprehended in
consequence of a premature attempt to hasten their emancipation. I
dread to hear how it eventuated.”
“You have nothing to fear on that score,” said Edgar, “for the whole
thing was arranged most satisfactorily to all parties. The government
was rich in resources, and rich in land; they sold the land, and with
the money thus obtained, and a certain portion of the surplus
revenue in the course of ten years, they not only indemnified the
slaveholders for their loss of property, but actually transplanted the
whole of the negro population to Liberia, and to other healthy
colonies. The southern planters soon found that their lands could be
as easily cultivated by the labour of white men, as by the negroes.”
“But a great number remained, I presume, for it would not have
been humane to force those to go who preferred to stay.”
“All that chose to settle in this country were at liberty to do so, and
their rights and privileges were respected; but in the course of
twenty or thirty years, their descendants gradually went over to their
own people, who by this time, had firmly established themselves.”
“Did those that remained, ever intermarry with the white population,
and were they ever admitted into society?”
“As soon as they became free, as soon as their bodies were
unshackled, their minds became enlightened, and as their education
advanced, they learned to appreciate themselves properly. They saw
no advantage in intermarrying with the whites; on the contrary, they
learned, by close investigation, that the negro race becomes extinct
in the fourth remove, when marriages took place between the two
colours. It seemed to be their pride to keep themselves a distinct
people, and to show the world that their organization allowed of the
highest grade of mental culture. They seemed utterly indifferent
likewise about mixing in the society of white men, for their object
and sole aim was to become independent. Many of their
descendants left the United States with handsome fortunes. You
could not insult a black man more highly than to talk of their
intermarrying with the whites—they scorn it much more than the
whites did in your time.”
“How do they treat the white people that trade with them in their
own country?”
“How? why as Christians—to their praise be it said, they never
retaliated. The few excesses they committed whilst they were
degraded by slavery, was entirely owing to a misdirection of their
energies; but the moment the white man gave up his right over
them, that moment all malignant and hostile feelings disappeared.
The name of negro is no longer a term of reproach, he is proud of it;
and he smiles when he reads in the history of their servitude, how
indignant the blacks were at being called by that title. They are a
prosperous and happy people, respected by all nations, for their
trade extends over the whole world. They would never have arrived
at their present happy condition if they had sought to obtain their
freedom by force; but by waiting a few years—for the best men of
their colour saw that the spirit of the times indicated that their day
of freedom was near—they were released from bondage with the aid
and good wishes of the whole country. It showed their strong good
sense in waiting for the turn of the tide in their favour; it proved that
they had forethought, and deserved our sympathies.”
“I am glad of all this,” said Hastings—“and the Indians—what has
become of them, are they still a distinct people?”
“I am sorry you ask that question,—for it is one on which I do not
like to converse—but
‘The Indians have departed—gone is their hunting ground,
And the twanging of their bow-string is a forgotten sound.
Where dwelleth yesterday—and where is echo’s cell?
Where hath the rainbow vanished—there doth the Indian dwell!’
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