text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
So these three reasons,
among others, are | 328.54 | 2.73 |
those might want to move beyond
spreadsheets and start using databases. | 331.27 | 4.95 |
Now, it's worth thinking
first, what is a database? | 336.22 | 4.217 |
We'll be talking about databases
throughout this course. | 340.437 | 2.333 |
So what is a database? | 342.77 | 1.76 |
Well, a database is simply some
way to organize your data such | 344.53 | 3.9 |
that you can actually create data,
update data, read data, and delete | 348.43 | 5.64 |
data. | 354.07 | 0.51 |
And often these our for interactions
that we'll do with a database-- | 354.58 | 3.18 |
like adding some data, looking at data,
deleting data, and even updating it | 357.76 | 4.41 |
along the way. | 362.17 | 1.38 |
But the database isn't the
only thing in our picture here. | 363.55 | 3.09 |
We also have a database
management system, | 366.64 | 3.075 |
a way to interact with our database. | 369.715 | 3.465 |
So you might think of perhaps
writing a program on your computer. | 373.18 | 4.17 |
You have some interface
with to write that program, | 377.35 | 2.16 |
like VS Code for instance. | 379.51 | 1.74 |
Or you might think of your own
desktop on your own computer. | 381.25 | 2.61 |
You have icons that you interact
with the underlying operating system. | 383.86 | 3.48 |
In the same way, we can use this
software called a database management | 387.34 | 4.32 |
system, or a DBMS for short, to
interact with a database perhaps | 391.66 | 3.78 |
using a graphical interface or
using a textual language too. | 395.44 | 5.03 |
Now, there are a few varieties
of database management softwares. | 400.47 | 5.555 |
And these are a few of them here. | 406.025 | 1.375 |
MySQL, Oracle, PostgreSQL, and SQLite. | 407.4 | 3.84 |
But this is a non-exhaustive list. | 411.24 | 2.2 |
So let me also ask again, what kinds
of other database management systems | 413.44 | 4.25 |
have you perhaps heard of in this case? | 417.69 | 3.43 |
I'm seeing one for Microsoft
Access, perhaps, MongoDB. | 421.12 | 4.52 |
There are other kinds of softwares,
other companies out there that make | 425.64 | 3.15 |
these ways to interact with a database. | 428.79 | 2.11 |
And this is, again,
a nonexhaustive list. | 430.9 | 2.54 |
Now, if you are a
database administrator, | 433.44 | 2.82 |
or maybe you're somebody who's making
a choice of which software to use, | 436.26 | 3.15 |
you have a few trade-offs to consider. | 439.41 | 2.14 |
Let's say you might think of one being
proprietary, for instance, costing | 441.55 | 3.77 |
money to work with. | 445.32 | 1.41 |
What you get for that
money is additional support | 446.73 | 2.52 |
to actually implement your own database. | 449.25 | 2.7 |
On the other hand, you might have
open source software or free software | 451.95 | 3.66 |
to use, stuff like
PostgreSQL, MySQL, and SQLite. | 455.61 | 3.6 |
But the downside is you are then
responsible for actually implementing | 459.21 | 4.29 |
that database. | 463.5 | 2.17 |
Another thing to consider
too is that maybe some | 465.67 | 3.29 |
are going to be heavier weight
than others, more fully featured | 468.96 | 3.39 |
as a consequence but perhaps
heavier weight requiring | 472.35 | 2.34 |
more computation to run. | 474.69 | 1.83 |
You can think of those
like MySQL or PostgreSQL | 476.52 | 2.31 |
being a little bit heavier weight
but being more fully featured, | 478.83 | 3.78 |
whereas SQLite down below will be a
little lighter weight, as the name | 482.61 | 3.63 |
might imply, but allow you
to do most of the same work | 486.24 | 3.54 |
that these other softwares
could allow you to do as well. | 489.78 | 3.55 |
And in this course, we'll
actually be using SQLite for you | 493.33 | 3.08 |
to work with your own databases. | 496.41 | 1.74 |
But gradually, we'll move on
to MySQL and PostgreSQL too. | 498.15 | 6.25 |
So let me go ahead and talk
about then SQL in this case. | 504.4 | 4.78 |
You might notice that in each of
these, MySQL and PostgreSQL and SQLite, | 509.18 | 4.85 |
each of them have this
idea of SQL in them. | 514.03 | 2.759 |
And SQL is that language that we'll
use to interact with our database. | 516.789 | 3.961 |
Now, let me ask, what does
SQL stand for, perhaps? | 520.75 | 4.38 |
We talk about S-Q-L or SQL,
but what might SQL stand for? | 525.13 | 6.13 |
So I'm saying it stands for
Structured Query Language, | 531.26 | 2.61 |
which is good if you already know
this, but not to worry if you don't. | 533.87 | 2.917 |
So SQL does stand for
Structured Query Language. | 536.787 | 3.413 |
As we'll see in this
course, it is structured. | 540.2 | 2.59 |
It does have some keywords you can
use to interact with the database. | 542.79 | 2.93 |
And it is a query language--
it can be used to ask | 545.72 | 3.09 |
questions of data inside a database. | 548.81 | 4.3 |
We'll see that this is the language we
can use to create data, to read data, | 553.11 | 5.33 |
to update data, and delete
data all with SQL in this case. | 558.44 | 5.92 |
And our next thing will be to
talk about this idea of querying. | 564.36 | 3.99 |
So SQL is a query language,
but what can we do with SQL? | 568.35 | 4.48 |
Well, the first thing we
can do, we'll focus on first | 572.83 | 2.32 |
in this course is writing queries-- | 575.15 | 2.16 |
trying to ask questions
of data using SQL. | 577.31 | 3.96 |
Well, what kinds of
questions could we ask? | 581.27 | 2.46 |
Well, you might imagine perhaps working
at an Instagram or a Facebook trying | 583.73 | 4.59 |
to work as an engineer to
figure out what kinds of posts | 588.32 | 2.97 |
are the most liked on your platform. | 591.29 | 1.99 |
That's a question you can answer
with databases and with SQL. | 593.28 | 3.77 |
You might also think of whether
your numbers of daily users | 597.05 | 3.45 |
are growing or shrinking if you
work at a startup for instance. | 600.5 | 3.09 |
Even maybe you might be working for some
a company like Spotify that could ask, | 603.59 | 3.94 |
how could we play songs that are
like those a user just played? | 607.53 | 4.04 |
This too is a question you can
answer with databases and with SQL. | 611.57 | 6.12 |
Now today, we'll be focusing
on this database of books. | 617.69 | 3.75 |
And in particular, books
that have been longlisted, | 621.44 | 3.06 |
quote, unquote, "for the
International Booker Prize." | 624.5 | 3.028 |
The International Booker
Prize, if you're not familiar, | 627.528 | 2.292 |
is an award given to books
written around the world | 629.82 | 2.75 |
by authors from many countries. | 632.57 | 1.68 |
And it's designed to award books
of fiction particularly good | 634.25 | 4.35 |
in some cases. | 638.6 | 0.9 |
And every year, the
committee selects 13 books | 639.5 | 3.54 |
to include on a longlist for
consideration for this prize. | 643.04 | 4.32 |
And our database then has
five years worth of longlists | 647.36 | 3.6 |
for the International
Booker Prize inside of it. | 650.96 | 2.91 |
We could use this
database, perhaps, if we | 653.87 | 1.86 |
were a librarian trying to find books
for our library or even as a book | 655.73 | 4.95 |
reader, an avid reader myself
trying to find books to read that I | 660.68 | 2.94 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.