
In this video we explore why it is worth learning SQL and why it is a long-term skill which will be valuable for many years to come.
Here we shortly look at a couple of ways how this course can help advance your career.
Here we answer the question "Should I learn SQL, when I can use Object-Relational-Mapping (ORM) to access data storage?"
Here we look at the overall architecture of solutions involving SQL: you application (client) which connects to a database engine (server), using a library (driver).
Here we identify step-by-step instructions - all you have to do to set up an SQL database and access it from a programming language.
Before jumping in to database component overview, we take a step back and look at the general concept of "data" and "information".
We talk about the main components stored in SQL: the databases and their tables, as well as database users.
A closer looks at SQL tables, rows and columns.
A quick mention of possible relationships between the tables.
Here we look at some examples of connecting to an SQL database from popular programming languages: Java, Python, PHP.
Have you been wondering whether SQL is accessible from Javascript in websites?
SQL statements and queries, and the general pattern of sending them from a programming language.
Statement and query examples in Python and Java
Section summary, quick hint of the content in the next section.
Use the attached .sql file to add two extra columns to the product table and insert some more products and employees. This will be necessary to follow along the examples shown in the rest of the course.
You can either copy the SQL statements from the attached file and run them in the DBeaver tool's query editor, or you can import it as a "database backup" (also called "database dump"). In DBeaver that is done by right-clicking on the database > Tools > Restore database, then choose the attached .SQL as the input file. In other tools - look for an option to restore database from an SQL file.
Note: the attached SQL file contains only the new two columns and the new data inserts! It assumes that you have the structure of the database as it was at the end of the previous section of the course!
This is an intensive crash-course of SQL databases, the absolute essence. It contains everything you need to know to jump into real SQL database projects. And you can do it in a single weekend!
You will learn:
What SQL databases are and how they are structured
How to set up the necessary tools to get started
How to CREATE TABLEs and modify their structure later
How to export the data and table structure to a backup-file, and restore a database from a backup
How to INSERT data
How to write queries to SELECT the necessary data, including WHERE conditions, ORDERing, aggregation and GROUP BY, conditions * and functions.
What the mysterious NULL values are and why they behave so weirdly
How to DELETE data
How to UPDATE data
How to link together tables and select data from multiple tables using JOINs
The course contains a great deal of practical exercises:
Short quizzes to test your understanding along the way
Exercises in every section, including an extensive set of exercises using multi-table SELECTs with JOIN
A course project in Python and Java where you will read data from an SQL databases in your program
We will use the MySQL database engine - one of the most popular choices of SQL, a free and open-source solution.
Check out the free videos and see you in the course!