Fireship · @fireship

MySQL - The Basics // Learn SQL in 23 Easy Steps

Uploaded April 16, 2021 · Length 17:17

MySQL - The Basics // Learn SQL in 23 Easy Steps

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.

  1. 0:00

    relational databases using sql are king

  2. 0:03

    in my recent poll nearly two-thirds of

  3. 0:05

    viewers said that sql was their go-to

  4. 0:07

    database

  5. 0:07

    and that's despite the fact that it's 40

  6. 0:09

    year old tech with billions of dollars

  7. 0:11

    invested in disruptive technologies that

  8. 0:12

    try to knock sql off its throne today

  9. 0:15

    you'll learn everything you need to know

  10. 0:16

    about mysql an

  11. 0:17

    open source database that powers content

  12. 0:19

    management systems like wordpress

  13. 0:21

    ecommerce platforms like shopify

  14. 0:23

    and social media giants like twitter

  15. 0:24

    we'll take a hands-on approach by

  16. 0:26

    recreating airbnb's database which

  17. 0:28

    happens to use mysql in real life in the

  18. 0:30

    process you'll learn why sql is so

  19. 0:32

    popular

  20. 0:33

    how to install and interact with the

  21. 0:34

    database using modern tooling and vs

  22. 0:36

    code the essential syntax to create read

  23. 0:38

    update and delete data and most

  24. 0:40

    importantly how to model and

  25. 0:41

    join relational data there's also

  26. 0:43

    another giveaway with this video the

  27. 0:45

    mysql pillow all you have to do is be a

  28. 0:47

    subscriber and leave a comment below

  29. 0:49

    to start things off let's travel back in

  30. 0:50

    time 50 years to meet ted codd

  31. 0:52

    the author of the legendary paper a

  32. 0:54

    relational model of data for

  33. 0:56

    large shared data banks prior to this

  34. 0:58

    paper databases were not relational

  35. 1:00

    they were network-based or hierarchical

  36. 1:02

    in the paper he outlines how a

  37. 1:04

    relational model can reduce duplication

  38. 1:06

    and redundancy and it changed the way

  39. 1:08

    people would approach databases going

  40. 1:09

    forward

  41. 1:10

    a few years later donald chamberlain and

  42. 1:12

    raymond boyce would use this paper as

  43. 1:14

    the basis for developing

  44. 1:15

    structured query language aka sql or sql

  45. 1:19

    and is the language we still use today

  46. 1:20

    to interact with data in a wide variety

  47. 1:22

    of relational databases

  48. 1:24

    but now i need to let you in on a little

  49. 1:25

    secret and that's the fact that most

  50. 1:27

    developers using relational databases

  51. 1:29

    aren't actually writing raw sql code

  52. 1:31

    more often they use libraries that

  53. 1:33

    perform

  54. 1:34

    object relational mapping which are

  55. 1:36

    tools that allow you to work with

  56. 1:37

    relational databases

  57. 1:39

    using the object-oriented programming

  58. 1:40

    language of your choice javascript has

  59. 1:42

    sqlize python has

  60. 1:44

    alchemy and ruby on rails has active

  61. 1:46

    record orms make it so you never have to

  62. 1:48

    touch raw sql code and that can actually

  63. 1:50

    be a great thing for productivity most

  64. 1:52

    of the time

  65. 1:52

    but learning how raw sql works will help

  66. 1:54

    you understand some of the magic that an

  67. 1:56

    orm does under the hood and that's what

  68. 1:58

    this video is all about

  69. 1:59

    when i say the word relational database