SQL Tutorial: Learn SQL with MySQL Database -Beginner2Expert
SQL Tutorial: Learn SQL with MySQL Database -Beginner2Expert
Why should you take this SQL course?
- Subtitles: English Captions or Subtitles for all the lectures are available.
- This course is one of the biggest, best rated and top selling SQL course on Udemy Marketplace!
- You will learn SQL with practical examples. By learning structured query language, you will be able to work in any database system like MySQL, PostgreSQL, SQL Server, DB2, Oracle etc.
- You will learn Database designing, Database modeling, SQL RDBMS concepts, Database relationships and much more, everything by using SQL commands.
- You get a SQL video tutorial course which will teach you how to use structured query language statements in MySQL command line client tool. The SQL statements are common to all major database management systems.
- The course includes 15 Quizzes with 350 SQL Questions and Answers for the Job interview.
- Lightning fast support to all your queries: I personally respond to all
the students queries via PM or on the discussion board within 1 hour to 24
hours. I respond on weekends too. So If you have any question feel free
to PM me or ask on the discussion board.
- Lifetime access to all the content and future updates of this course.
- 30 days money back guarantee. (I am sure you will never need this.)
You will understand how SQL works and learn effective database design for your applications.
In this course we’ll learn SQL with practical example on every topic. We will learn in more detail about,
- Database Installation and SQL fundamentals.
- Data Definition Language(DDL) and Data Manipulation Language(DML).
- SQL Joins, SQL functions and SQL data types.
- Database Relationships and Database Normalization.
- Database Export and Import.
- MySQL workbench.
Do you know the Benefits of learning SQL?
Learning the Structured Query Language gives you a powerful tool which can be implemented in variety of application development including web, desktop and mobile application development. SQL is ANSI standard and used in all major database management systems.
SQL skill opens a new dimension in the jobs where you can work as a database administrator in IT companies or you can work as a freelancer. Database development is very important factor in any application development So learning database development skill is very beneficial for you.
Checkout this SQL tutorial Overview
- The section 1 to 3 covers Introduction, Database Installation, SQL Overview and learn terminology used in Structured Query Language.
- In section 4 to 9 we will learn Data Manipulation Language, Clauses, Various Conditions and Operators, Data Filtering and sorting, SQL Joins and the most Important SQL Functions.
- In section 10 to 13 we will understand SQL Data Types in more detail, Data Definition Language, Database Normalization & Database Export and Import functionality.
- The section 15 covers MySQL Workbench a unified visual tool for database development.
- The section 16 contain bonus lecture.
What students say about this course? Checkout some of my students reviews for this course.
- “I recommend this course to every student who want to learn SQL.” – By Rachel
- “The instructor was very methodical and would go step by step explaining a point, Overall a great staring point to know SQL.” – By Tridib Pal
- “It was a wonderful experience to learn from this course. What I really liked were the practicals in every section which were perfect and up to the mark! Also, all the topics in the course were covered in-depth and thus, I feel that the examples learned from this course would really help me while planning, managing and solving real world tasks at my workplace.” – By Sagar Erande
- “The instructor responds to questions very fast which is greatly appreciated. The instructor knows his subject. Overall well done and worth the investment of your time.” – By Steven Grigsby
- “This course is comprehensive, and has helped me refresh my (My)SQL knowledge. As such, I’ve provided a 5 star rating – the author has obviously spent a lot of time creating this course along with associated examples.” – By James Johnson
- “Very well structured course. I hope author releases more courses, because he for sure has a talent to teach! Bravo!” – By Iskko Iskkov
- “Clear and to the point. He shows you what you need to help you get to where you want to be.” – By Dustin Raphael
- “This course is laid out well. The content and the examples were easy to follow. Pradnyankur Nikam responded quickly to my inquiries. I recommend this course to anyone that needs a refresher on SQL as well as beginners.” – By Katende Kinene
Note: Checkout more reviews in the Reviews section.
Watch introduction video and click the “Full Curriculum” link to see the list of all the sections and lectures included with this SQL course.
In this lecture we will learn briefly about, What is SQL? The full form of SQL? Who developed SQL? The benefits of learning SQL and How to pronounce SQL.
Still not sure if you should learn this language? Watch this video and you will understand who can learn Structured Query Language and where it can be used.
Did you complete this section? Solve the section 1 quiz to know how much you understood from this section. If you got multiple wrong answers, please watch the videos again to improve your understanding. If you have any question suggestion feel free to ask me on the discussions board.
Setup a Testing Environment
Follow the steps in this lecture to download and install MySQL database server version5.7.20 on MAC OS X operating system.
Follow the steps in this lecture to download and install MySQL database server and MySQL Workbench version 5.7.20 on Linux operating system.
By default, MySQL creates a user named "root". The root user is an administrator or a super user with all the privileges. Learn how to create a new database user and set privileges.
After completing this section, do not forget to solve the section 2 quiz so that you will know how much you understood from this section. If you got multiple wrong answers, please watch the videos again. If you have any question suggestion feel free to ask me on the discussions board.
An Overview of SQL
Have you heard about Database Management System (DBMS) and Relational Database Management System (RDBMS)? By watching this lecture you will be understand the difference between DBMS and RDBMS.
For new users Database Engine, Database Server and Database Software are the most confusing terms. Lets understand the difference between Database Engine, Database Server and Database Software.
Lets understand about the database and create our first database. Also execute the SQL statement to select or use an existing database.
In this lecture, we will get an introduction to a database table. Also learn the SQL statement to create your first database table.
In previous lectures, we created a database and a table. In this lecture we will understand how to add the data rows to an existing database table.
The Keywords, Identifiers, Constants and Clauses are the building blocks of any SQL statement. Lets learn and understand about these elements with examples.
The SQL Statements are backbone of Structured Query Language, lets learn about SQL Statements in more depth.
Every SQL statement can either be DDL or DML. Understand What is Data Definition Language(DDL) and Data Manipulation Language(DML)?
Solve the section 3 quiz so that you will know how much you understood from this section. If you have any question suggestion feel free to ask me on the discussions board.
Important SQL Clauses (Data Manipulation Language)
In this course we will use a couple of example databases and tables to learn from practical examples. Follow this lecture to create example databases and tables.
In this lecture we will learn about SELECT Clause with some practical examples. SELECT is the most important clause in Structured Query Language.
Learn how to use SELECT DISTINCT statement to return only distinct or different values from a database table column.
The FROM clause produces a tabular structure. In this lecture, we will learn about FROM Clause to return an intermediate result set from a database table.
The WHERE clause is an optional clause. Learn how to extract only specific data rows using the WHERE clause filter in SQL statements.
Solve the section 4 quiz so that you will know how much you understood from this section. If you have any question suggestion feel free to ask me on the discussions board.
Conditions and Operators (Data Manipulation Language)
In this lecture lets use WHERE clause with TRUE condition.
In this lecture lets use WHERE clause with FALSE condition.
Use more than one condition in the SQL statement using AND Operator.
Use more than one condition in the SQL statement using OR Operator.
Evaluate multiple values on a single data column using IN Operator.
Evaluate the data rows with constant values using EXISTS condition.
Revert the IN or EXISTS condition using NOT keyword.
Compare the two values using Comparison Operators.
Search for a specific pattern in a string using LIKE Operator.
The BETWEEN Operator tests a range of values with a column value.
The Numeric Operators are used for mathematical calculations.
The Concatenation Operator joins the two strings together.
The Temporal Operators are useful for date time calculations.
Solve the section 5 quiz so that you will know how much you understood from this section. If you have any question suggestion feel free to ask me on the discussions board.
Data grouping, sorting, select and dates (Data Manipulation Language)
Aggregate many rows into one using the GROUP BY Clause.
Use the HAVING Clause to filter the group rows produced by the GROUP BY Clause.
Systematically order or sort the data rows in a result set using ORDER BY Clause.
Get only specific number of data rows using LIMIT or TOP Clause.
Use SQL Wildcards to substitute any other characters in a string.
Assign temporary names to database tables or a columns using SQL Aliases.
Store date, time or date and time together using SQL Dates.
Solve the section 6 quiz so that you will know how much you understood from this section. If you have any question suggestion feel free to ask me on the discussions board.
Insert, Read, Update, Delete the Data Rows (Data Manipulation Language)
Populate the database table using INSERT INTO SQL statements.
Copy the data rows from one table and insert into another table using INSERT INTO SELECT Statement.
Update one or multiple database table column values using UPDATE Statement.
Delete one or multiple data rows from a table using DELETE Statement.
Understand SQL Injection and secure the database.
Solve the section 7 quiz so that you will know how much you understood from this section. If you have any question suggestion feel free to ask me on the discussion board.
SQL JOINS (Data Manipulation Language)
SQL JOINS are useful for combining two or more tables to produce a single tabular structure. Learn about different types of SQL JOINS.
An INNER JOIN is the most common type of join which returns the row in result set where the column value in a row of table1 is equal to the column value in a row of table2.
The LEFT OUTER JOIN returns all the data rows from the left database table.
The RIGHT OUTER JOIN returns all the data rows from the right database table.
The FULL OUTER JOIN returns all the data rows from left and right database tables.
In CROSS JOIN all rows from all tables are returned, joined to every row of the other table regardless of whether they match.
The UNION Operator is used to combine the result set of two or more SELECT statements.
The SQL VIEWS are the database objects similar to virtual tables.
Derived Tables or Inline Views are the sub-queries in parentheses forming tabular structure which is a source of data for outer or main query.
Solve the section 8 quiz so that you will know how much you understood from this section. If you have any question suggestion feel free to ask me on the discussion board.
Learn most commonly used predefined SQL functions. Also understand different types of SQL Functions.
The COUNT function is used to count the data rows returned in the result set.
The FIRST function returns the first data row value of the given column.
The LAST function returns the last data row value of the given column.
The SUM function returns the total sum of a given numeric column.
The MIN or MINIMUM function returns the smallest value of the given column.
The MAX or MAXIMUM function returns the largest value of the given column.
The AVG or AVERAGE function returns the average value of the given numeric column.
The UCASE function converts string data row values to uppercase.
The LCASE function converts string data row values to lowercase.
The MID function extracts characters from the given string data.
The LEN function returns the length of the given string value.
The ROUND function is used to round a floating point number to the given decimal numbers.
The FORMAT function is used to round a floating point number to the given decimal numbers.
The SUBSTRING function extracts characters from the given string data.
The COALESCE function return the first non-NULL value from the given list.
The CHAR_LENGTH function returns the length of the given string value.
The CAST function is used to change the data type of a value.
The CASE function returns a value or NULL by evaluating series of conditions.
The NULLIF function returns NULL value, if the two parameter values are equal.
Solve the section 9 quiz so that you will know how much you understood from this section. If you have any question suggestion feel free to ask me on the discussion board.
SQL Data Types
A Data Type in SQL defines what kind of value a column can store.
Integer Numbers in SQL are stored using the data types INTEGER OR INT, SMALLINT, TINYINT, MEDIUMINT, and BIGINT.
Fixed point numbers in SQL are stored using DECIMAL and NUMERIC data types.
The Floating Point Numbers or Approximate Values in SQL are stored using FLOAT, REAL and DOUBLE PRECISION data types.
The CHAR or CHARACTER data type stores fixed width character columns while the VARCHAR or VARYING CHARACTER store dynamic width character columns.
In SQL standard NCHAR and NVARCHAR means NATIONAL CHARACTER and NATIONAL VARIABLE CHARACTER. The NCHAR and NVARCHAR use Unicode character sets like UTF-8 for internationalization.
The CLOB and BLOB means CHARACTER LARGE OBJECT and BINARY LARGE OBJECT. The CLOB and BLOB data type is used to store very large data that can not be stored in CHAR or VARCHAR.
The Temporal Values in SQL are stored using the data types DATE, TIME and TIMESTAMP.