Fireship · @fireship
MySQL - The Basics // Learn SQL in 23 Easy Steps
Uploaded April 16, 2021 · Length 17:17
Summary
Learn MySQL basics in 23 easy steps, covering SQL, relational databases, data modeling, and hands-on practice with a real-world Airbnb database example.
- mysql tutorial
- sql basics
- relational databases
- database modeling
- airbnb database
- mysql installation
- sql tools for vs code
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
relational databases using sql are king
- 0:03
in my recent poll nearly two-thirds of
- 0:05
viewers said that sql was their go-to
- 0:07
database
- 0:07
and that's despite the fact that it's 40
- 0:09
year old tech with billions of dollars
- 0:11
invested in disruptive technologies that
- 0:12
try to knock sql off its throne today
- 0:15
you'll learn everything you need to know
- 0:16
about mysql an
- 0:17
open source database that powers content
- 0:19
management systems like wordpress
- 0:21
ecommerce platforms like shopify
- 0:23
and social media giants like twitter
- 0:24
we'll take a hands-on approach by
- 0:26
recreating airbnb's database which
- 0:28
happens to use mysql in real life in the
- 0:30
process you'll learn why sql is so
- 0:32
popular
- 0:33
how to install and interact with the
- 0:34
database using modern tooling and vs
- 0:36
code the essential syntax to create read
- 0:38
update and delete data and most
- 0:40
importantly how to model and
- 0:41
join relational data there's also
- 0:43
another giveaway with this video the
- 0:45
mysql pillow all you have to do is be a
- 0:47
subscriber and leave a comment below
- 0:49
to start things off let's travel back in
- 0:50
time 50 years to meet ted codd
- 0:52
the author of the legendary paper a
- 0:54
relational model of data for
- 0:56
large shared data banks prior to this
- 0:58
paper databases were not relational
- 1:00
they were network-based or hierarchical
- 1:02
in the paper he outlines how a
- 1:04
relational model can reduce duplication
- 1:06
and redundancy and it changed the way
- 1:08
people would approach databases going
- 1:09
forward
- 1:10
a few years later donald chamberlain and
- 1:12
raymond boyce would use this paper as
- 1:14
the basis for developing
- 1:15
structured query language aka sql or sql
- 1:19
and is the language we still use today
- 1:20
to interact with data in a wide variety
- 1:22
of relational databases
- 1:24
but now i need to let you in on a little
- 1:25
secret and that's the fact that most
- 1:27
developers using relational databases
- 1:29
aren't actually writing raw sql code
- 1:31
more often they use libraries that
- 1:33
perform
- 1:34
object relational mapping which are
- 1:36
tools that allow you to work with
- 1:37
relational databases
- 1:39
using the object-oriented programming
- 1:40
language of your choice javascript has
- 1:42
sqlize python has
- 1:44
alchemy and ruby on rails has active
- 1:46
record orms make it so you never have to
- 1:48
touch raw sql code and that can actually
- 1:50
be a great thing for productivity most
- 1:52
of the time
- 1:52
but learning how raw sql works will help
- 1:54
you understand some of the magic that an
- 1:56
orm does under the hood and that's what
- 1:58
this video is all about
- 1:59
when i say the word relational database


