
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
In this video we will discuss:
Why study SQL?
Whether you are working in Business Intelligence (BI), data science, database administration, or back-end development, you will have to retrieve information from a server storing large amounts of data. To achieve this, you’ll need SQL.
Why did we choose MySQL and not some other relational database management system?
Because it is:
You will be much faster in learning and writing efficient queries if you go through a brief introduction to databases. It is the best thing to begin with, so in this video we will discover terms like:
Although with some procedural elements, SQL is mainly regarded as a declarative programming language, it is nonprocedural. This means, while coding, you will not be interested in how you want the job done. The focus is on what result you want to obtain.
The Data Definition Language, DDL, is called a language, but you can think of it as a syntax, a set of statements that allow the user to define or modify data structures and objects, such as tables. Examples of the statements of the Data Definition Language are:
A brief explanation on what SQL keywords are about.
We will learn about some DML statements that allow us to manipulate the data in the tables of a database:
The Data Control Language is a syntax containing only two statements – GRANT and REVOKE. These statements allow us to manage the rights users have in a database.
A brief introduction the Transaction Control Language (TCL) and its application.
In this lesson, we will provide you with the tools that are essential for dealing with relational databases. They will help you maintain a database that can be characterized as:
In this lecture, we will focus on the differences between spreadsheets and databases. This exercise will be relevant not only for current Excel users. Those of you who do not use Excel regularly will still have the chance to understand the advantages and the disadvantages of using databases or spreadsheets.
To complete our theoretical preparation, we will need to learn more database terminology. We will discuss the meaning of such terms as:
In this video, we will introduce the concept of using primary keys in MySQL.
In this lesson, we will present the concept of using foreign keys in MySQL, as well as their relation to primary keys.
Here, we will explain what unique keys are, and will introduce you to null values in SQL.
This is a lecture in which we will try to illustrate that relationships between tables can be categorized. We will study the main types of relationships you will likely need in your workplace.
A guide for the installation of the MySQL server and MySQL Workbench.
This is a visualization that explains which MySQL features we must install and why.
A brief description of what it means to set up a connection between Workbench and the MySQL Server.
The focus of this video is getting acquainted with the MySQL Workbench interface.
In this lesson, we will show you how to create your own database, also called schema, starting from scratch.
In this video, we will look at the MySQL Workbench interface in more detail as it can help us manage our database better.
In this lecture, we will introduce you to the measures that characterize the various data types available in SQL.
The text format in SQL is called string. In this lecture, we will explore a few string data types in SQL.
Numbers are stored in so-called numeric data types. We will go through the most notable types in MySQL – integer, fixed-point, and floating-point data types.
In this lesson, we will compare two numeric data types in SQL – the fixed-point and the floating-point data type.
In addition to string and numeric data types, SQL allows you to store data that represents a date, time, binary, or list of options, amongst others. In this lesson, we will cover a few noteworthy data types that you will frequently see and work with.
In this lecture, we will take our “first steps” into creating SQL tables. We will study in a bit more detail the rules allowing us to create a table.
In this video we will explain what the purpose of using queries is. As an example, we will use a query to set a default database.
Here we will share a few notes on using data tables in MySQL.
In this section, we’ll learn how to assign constraints on tables. Our focus in this lesson will be on the primary key constraint.
You know that relationships between the tables in a database are formed through the interaction between primary and foreign keys. We’ll learn how to work with the latter in this lecture.
In this video, we will execute the query we created during the previous lesson, and then we will present a few possible ways to add a foreign key constraint in SQL.
Unique keys ensure that all values in a column (or a set of columns) are different. Just like primary and foreign keys, unique keys are implemented in SQL through a constraint – the Unique constraint.
The DEFAULT constraint helps us assign a default value to every row of a column. In this lecture, we will go through a couple of examples that will best clarify the subject.
The “not null” restriction in MySQL is applied through the NOT NULL constraint. It means that, when you insert values in the table, you cannot leave the respective field empty. And if you leave it empty, MySQL will signal an error.
In this lesson we will explain the differences between the following three elements:
Throughout the course, we are strictly complying with coding style rules. There are many ways you can write your SQL code, but there are only a few that are considered to be professional.
Here we’ll apply what we learned in the previous lecture in an exercise.
In the remaining part of the course, you’ll be manipulating data in MySQL. To help you achieve this goal, we have re-organized the huge ‘employees’ database script in an SQL file that you can download and run in Workbench.
The statement you will be using almost all the time is SELECT. It is one of the most important statements in MySQL and SQL. When extracting information, SELECT goes with FROM. You are always selecting something from a certain table or other types of SQL objects.
In the body of the query, after the SELECT - FROM structure we’ve already seen, we must add the WHERE keyword and then specify a condition. In the lectures to come, we will examine all possible types of conditions to be used after the WHERE clause.
AND is an operator that allows you to logically combine two statements in the condition code block.
In this lecture, we will see the output we can expect when declaring conditions with the OR operator.
This video will introduce you to the logical order with which you must comply when you use both the AND and OR operators in the same WHERE block.
Using the IN operator allows for a quicker and more professional way to approach data retrieval when we must satisfy more than two conditions.
Sometimes you will need to look for a specific pattern in a column. Technically, this requires the use of the LIKE and NOT LIKE operators in combination with parentheses within which the pattern must be indicated.
This is a brief video about using the following wildcard characters in MySQL:
The BETWEEN operator helps us designate the interval to which a given value belongs. That’s why it is always used in combination with the AND operator.
Next on our agenda is the IS NOT NULL operator. As its name suggests, it will be used to extract values that are not null. IS NULL is simply the operator with opposite functionality.
In this video, we’ll focus on the way we work with other comparison operators in SQL – the ones derived from mathematics (=, >, >=, <, <=).
SELECT DISTINCT is the MySQL combination you need to retrieve a list from a data table that contains no duplicate values.
A separate and more detailed section about MySQL Aggregate Functions follows later in the course. Therefore, in this lesson we will briefly present the idea about using the SELECT statement with aggregate functions.
The SQL ORDER BY clause is used to sort the output in ascending or descending order. It can be used in combination with the ASC or DESC keywords respectively:
When working in SQL, results can be grouped according to a specific field or fields. Technically, this is done by using the GROUP BY clause. Remember, GROUP BY is one of the most powerful and useful tools in SQL!
Knowing how to use an alias, or an alias name, is crucial. This tool will allow you to rename a selection from your query. Doing so won’t change your result, however it can significantly clarify the analysis undertaken.
HAVING is a clause frequently implemented with GROUP BY because it refines the data in your output from records that do not satisfy a certain condition.
In SQL, the conditions defined by the WHERE clause are applied before re-organizing the output into groups, while the conditions set by the HAVING clause are implemented after that moment. In this video, we will elaborate on this key distinction between the two clauses.
In this lesson, we will make a few observations on the queries executed in the previous videos.
To end this extensive section about the SELECT statement, we will show you a few ways in which you could set a limit to the number of rows displayed in the output of a specific query.
In this section, we are ready to explore the SQL INSERT statement in a bit more detail. More precisely, we will focus on the following structure:
In this video we will show a few characteristics of the SQL INSERT statement.
Here, we will explore a very powerful feature of the SQL INSERT statement – you can use a classical SQL SELECT statement to retrieve information from a table and then insert it into another table. The SQL structure required in this case is:
How important is database management in the age of big data and analytics?
It is really important.
How many employers would be happy to hire employees who can use data for the purposes of business intelligence?
All of them.
How many people have these skills?
Not enough.
This is why now is the time to learn SQL and gain a competitive advantage in the job market. Remember, the average salary of a SQL developer is $123,400! That’s a lucrative career.
How come?
Well, when you can work with SQL, it means you don’t have to rely on others sending you data and executing queries for you. You can do that on your own. This allows you to be independent and dig deeper into the data to obtain the answers to questions that might improve the way your company does its business. For instance, database management is the foundation for data analysis and intelligent decision making.
Worried that you have no previous experience?
Not an issue. We will start from the very basics and gradually teach you everything you need to know. Step by step. With no steps skipped.
Why take this course in particular? Isn’t it like the rest of the SQL courses out there?
We would like to think it isn’t. Our team worked hard to create a course that is:
Easy to understand
Time efficient and concise
Shows how SQL can be crucial for data analytics and business intelligence
Comprehensive – it covers several topics not shown in other SQL courses
Practical – it teaches you how to work with a real-life database
Corresponds to professional best practices
Taught in MySQL – The most popular SQL database management system
Contains plenty of downloadable exercises, course notes, and quiz questions
Some of these aspects have been covered in other courses. Others haven’t. However, no one provides such a variety of topics in one place.
We firmly believe this course is the best training material out there. It is a truly interactive experience preparing you for a real-life working environment.
We love teaching
So far, over 3,000,000 students have taken our courses here on Udemy. Teaching is what we do best, and we take pride in going the extra mile to create the most engaging content for you, our students. Our mission is to help you bridge the gap between theoretical knowledge taught at school and in universities and the practical application required at the workplace.
So, why do you need to enroll in this course and learn SQL?
Salary/Income. As we pointed out earlier, learning SQL is a great opportunity. There is a significant surge in demand for skills revolving around database management, database administration, and business analysis relying on data. Companies will pay top dollars for specialists who have such know-how
Profession of the future. In the years to come, data will only grow in importance and size. Therefore, it is great to pick up a skill that will likely increase in demand over the years to come
Analytical reasoning. Programming languages are a great way to train your mind. Furthermore, understanding a business task and looking for its solution through writing code can be really interesting and stimulating once you become familiar with the basics
What about certificates? Do you provide a certificate?
Upon completion of the course, you will be able to download a certificate of completion with your name on it. Then, you can upload this certificate on LinkedIn and show potential employers this is a skill you possess.
Sounds awesome, right?
So, what are you waiting for? Click the “Buy now” button, and let’s begin this journey together!