1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Setup and Introduction to SQL Fundamentals

    Tyler ClarkTyler Clark
    postgresPostgreSQL

    This course is designed to take someone that has no experience with relational databases and teach them how to at least create, read, update, and delete. We'll explore many different aspects of SQL and what makes working in relational databases easy. This video also goes over how to install postgres on your machine so you can follow along.

    Install Homebrew for Mac

    https://brew.sh/

    Windows postgres installer

    https://www.postgresql.org/download/windows/

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss

    Transcript

    Transcript

    Instructor: SQL stands for Structured Query Language. It's a language we use to communicate with relational databases. Relational database is the idea of storing data in tables that contain rows and columns.

    For example, if you think of Microsoft Excel, within Excel we have columns and we have rows. Tables are referred to as relations, columns are referred to as attributes, and each row is referred to as a record or tuple.

    Some popular relational databases you've probably heard of are Microsoft SQL Server, Oracle database, MySQL, and Postgres. These are popular choice because relational databases help developers and database admins easily categorize and store data that can be queried for exact data sets.

    They're usually easy to set up and new tables can be created without needing to modify existing applications. They also provide accurate data, because it's stored only once unless designed not to.

    SQL is flexible and dynamic, meaning tables and lots of data can be meshed together for one returning result and has great security practices if they are utilized. This course is designed for beginners and those who have heard of SQL but just have not had the chance to get their hands dirty with it.

    Some of the takeaways I want you to have after going through this course is the ability to at least read from, write to, delete from, create and update rows, columns, and tables.

    We'll be using Postgres throughout this course as the database we'll run our SQL queries against. You'll find as you're working on the databases, like the ones I mentioned, don't exactly have the same types, built-in functions, errors, and other miscellaneous items. Everything that works within this course might not be 100 percent in other relational databases, but it will get you really close.

    Core commands like update, select, delete, and create are pretty universal between them, there are just a few subtle differences throughout each. After watching each lesson, be sure to check out the notes of the video. I'm posting links to various DB docs on the lesson topic so that you can dive more into them. I mentioned that this course is using Postgres for each lesson.

    If you're on a Mac it can be easily installed through the package manager Homebrew. I'll link in the video notes how to install Homebrew if you don't have it. Once it's in there, all you need to do is go to your terminal and run brew install Postgres. If you're on Windows download the interactive installer from the Postgres docs.

    This installer is pretty straightforward and will get you up and running quickly. You'll know that everything was installed correctly when you type psql Postgres in your terminal and you connect to your local database.