
What we'll learn in the course, overview of the syllabus .
In this lecture we'll present a guide map for this course for students who want to know where to start learning.
In this lecture we'll see what is a data base and what is the need of it.
In this lecture we'll see an overview of a relational data base and RDBMS
In this lecture we'll see what is a foreign key and why is it important in DB design
In this lecture we'll introduce the DBMS we'll use in this course ad see how to install it.
In this lecture we'll see how to run the PostgreSQL server and how to create a new DB in it.
In this lecture we'll overview the example DB we'll use through this course.
In this lecture we'll see how we can create tables in the DB, and we'll use a script to create all tables in our data model.
In this lecture we'll see how we can insert data into tables with the insert statement and use the script to load data into the tables.
In this lecture we'll define the SQL language and see what types of queries we can ask.
In this lecture we'll learn about the basic select statement.
In this lecture we'll see how to type and run the queries on the shell, and how to look at the results.
In this lecture we'll add the where clause to the select query and see how we can filter the results using it.
In this lecture we'll see how we can make smarter conditions on strings using pattern matching with the like operator.
In this lecture we'll focus on the timestamp data type and see some manipulations we can do with dates.
In this lecture we'll see an important mathematical operation called the cartesian product, and we'll see how it applied to tables.
In this lecture we'll see how and where the cartesian product is performed in the select query
In this lecture we'll see how to use the cartesian product to retrieve information from more than one table.
In this lecture we'll see more complex joins queries.
In this lecture we'l see the aggregate functions to sum up a lot of values into one result.
In this lecture we'l see how to add a where cause to an aggregate query
In this lecture we'll see three basic sets operations from set's theory.
In this lecture w'll see how the sets operations are implemented and used in SQL queries.
In this lecture we'll make a short overview and see what a nested query is.
In this lecture we'll see how to use in and not in operators in sub queries.
In this lecture we'll see how to use the all and any operators in sub queries
In this lecture we'll see sub queries that use data from the outer queries.
In this lecture we'll see how to use the exists and not exists operators in sub queries.
In this lecture we'll see the group by clause and it's location and part in the select statement.
In this lecture we'll see how to use he group by clause
In this lecture we'll see how the where clause is combined with the group by.
SQL stands for Structured Query Language. It is used to retrieve data that is located in tables in a relational data-base.
SQL abilities are enormous, and the better you know it, the better your abilities to gain data and insights about it would be.
In this course I'll teach you all the elements of SQL, and I'll do it by writing queries. A lot of queries. I believe that the best way to learn SQL is to practice it with all kind of possible queries and manipulations, and that's what I'll do in this course.
Every lesson in this course contains example queries, exercise and all of them are available for you as source code to download.
In addition, I supply to you a full and functioning DB, with a lot of data, so you can try by your own your SQL skills.
Who should take this course?
If you learn an academic course on data bases, you probably have SQL part. This course can give you all the needed knowledge for answering SQL questions in University and colleges exams on SQL.
If you are a developer who wants to integrate data base in your application - this course is for you.
If you plane to design a system and you uncertain of how would you access the data and make use of it - this course is for you.
What you get from this course?
After completing the course you'll be able to write any SQL query in order to retrieve any data you want from a data base.
This course contains dozens of queries, from all levels and all topics.
This course also contains a real DB to make trials on.
This course contains a quiz for each section, quiz that would help you asses your advancement.
An important note:
The course is still under construction so I'll add the next sections in the next two weeks. You'll get an announcement whenever a new section is added.