
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Learn to manage and analyze data using PostgreSQL and MySQL, compare syntax differences, and practice with pgAdmin and MySQL Workbench from setup to advanced concepts.
Install PostgreSQL and Pgadmin from the official site, set up a database, connect securely, and write and run SQL using the Pgadmin query tool.
Celebrate this milestone in PostgreSQL and MySQL for beginners, and continue with motivated learning using subtitles, adjustable playback, offline downloads, Q&A, and an AI assistant.
Install and configure MySQL on Windows by setting up the server, shell, and Workbench, choosing custom options, and launching the Workbench to manage your tables.
Learn how to create and structure a PostgreSQL database by building a test database, adding tables for customers, products, and transactions, and writing create table statements with key constraints.
Create a training database, then define a customer table with customer ID, first name, last name, age, and email ID, using proper data types and character sizes.
Create a classroom database and a science class table with enrollment number (int), name (varchar), and signs marks (int), then test your sql skills.
Master inserting data into a PostgreSQL table using insert into, optional column lists, single or multi-row inserts, and handle not null constraints with the copy command for file import.
Insert data into a table using the insert command, including single and multiple rows, with or without column lists; understand nulls and type constraints when values mismatch.
Import data from a file into a PostgreSQL table using the copy command, handling csv and text files, delimiters, and optional headers, and compare with insert into.
Learn to import data from a csv file into a mysql table using load data in file, with path, fields terminated by comma, and ignore first row.
Insert three student scores into the science class table and import eight more from the student csv into the classroom database, using insert into and import techniques.
Use the select statement to retrieve data from a table, choosing specific columns or all columns with a wildcard, as shown on the customer table.
Learn to use the select statement to fetch data from a database table and return a result set. Use specific columns, from clause, and the star wildcard; apply distinct.
Learn how to use the distinct keyword in PostgreSQL to fetch unique rows, remove duplicates, and query single or multiple columns, including handling case differences and exact duplicates.
Learn how to use select distinct in MySQL to eliminate duplicate records and fetch unique values from a single column or from multiple columns in a table.
Learn how to retrieve data with conditions in PostgreSQL using the where clause, including numeric and textual comparisons, distinct values, and selecting specific columns.
Utilize the where clause to filter rows by conditions such as age equal to 25 or age greater than 25, and select specific columns from the customer table.
Master PostgreSQL queries by applying multiple conditions with and, or, and not to filter data precisely, including age between 20 and 30 and not equal to 25.
Learn how to use MySQL logical operators to combine conditions in select queries with and, or, and not. Build filters for age ranges and names to fetch targeted results.
Use select, where and logical operators to filter student data by score: retrieve names with more than 60, data for more than 35 but less than 60, and remaining students.
Learn how to perform updates in PostgreSQL by using the update syntax, set multiple columns, apply where conditions, and test changes with practical examples.
Learn how to update existing records in MySQL using the update command, including setting column values, applying conditions, and managing safe mode with sql_safe_updates.
Learn how to delete rows in PostgreSQL using delete from with a where clause, including single-row, multi-row, and full-table deletions, and verify results in PgAdmin.
Delete data in MySQL using delete from table where condition to remove specific rows or all rows. See examples by id and by age to illustrate affected rows.
Learn how to alter table structure in PostgreSQL using the alter table command, including adding, dropping, renaming columns, changing data types, and managing constraints and indexes on a customer table.
Add and drop not null and check constraints with alter table and alter column in PostgreSQL. Enforce primary and foreign keys, handle violations, and remove constraints to modify tables.
Explore how to alter tables in MySQL by adding, dropping, modifying, or renaming columns, and by applying constraints and indexes, with practical MySQL Workbench demos.
Update popeye's marks in the science class table, delete Rob's row, and rename the column from name to student_name.
Restore and back up a supermarket database using a provided backup file, create supermarket_db, and explore three tables: customer, product, and sales with their primary keys.
Diagnose and fix common database restoration issues in PostgreSQL using pgAdmin, including creating a new database, correcting binary paths, and selecting matching tar, backup, sql, or directory restoration methods.
Create a supermarket database by building customer, product, and sales tables in PostgreSQL, then load data from csv files using the copy command.
Back up the database into a tar file, drop the science class table by mistake, and restore from the backup to recover.
Import and export data in MySQL using MySQL Workbench by creating a database, importing dump structures and data from a file or folder, and exporting training data as a file.
Create a MySQL database from CSV files, define tables for customer, product, and sales with create table commands, and load data using load data infile in MySQL Workbench.
Explore using the in clause in PostgreSQL to filter results by multiple values, compare with or conditions, and prepare for subqueries while practicing select and where.
Explore how to use the in statement in MySQL to replace multiple or conditions in select, insert, update, or delete statements. See syntax and examples such as city in ('Philadelphia','Seattle').
Learn how to use the between condition in PostgreSQL to retrieve values within a range with inclusive lower and upper bounds, including age examples and ship date ranges.
Learn how to use the between operator in MySQL to filter records by ranges, including ages and dates, with between, not between, and equivalent comparisons.
Use the like condition in PostgreSQL to perform pattern matching with wildcards. Match starts, ends, or contained strings with percent and underscore, and escape literals with backslash.
Learn pattern matching with the like operator in MySQL, using percent and underscore wildcards, not like, and practical examples to filter names and cities.
Practice using in, between, and like with where clauses to query distinct cities in north or east regions, sales orders with values 100–500, and customer last names containing four characters.
Learn how to add multi-line and single-line comments in SQL queries, understand their syntax and execution effects, and recognize comment highlighting used to name the lecture.
Sort query results with the order by command in PostgreSQL, using ascending or descending order, multiple columns, or column numbers; apply to strings (city, customer name) and integers (age).
Master how the order by clause sorts select results, using ascending or descending order, with single or multi-column sorting by city, age, or customer name.
Use the limit statement in PostgreSQL to cap results and speed up queries on large datasets. Order by age and fetch the top eight oldest or ten youngest customers.
Learn to limit query results using the limit clause with order by, in descending or ascending order, to fetch top or least aged records.
Sort the result set by discount values in descending order, filter orders with discounts greater than zero, and display the top ten with the highest discounts.
Apply the as keyword to assign meaningful aliases to columns and tables, use double quotation marks for names with spaces, and prepare aliases to simplify complex queries and joins.
Learn how to use aliases in MySQL with the as keyword to rename columns and tables in queries. See examples like select customer_id as serial_number, customer_name as name.
4 Reasons why you should choose this SQL course
Carefully designed curriculum teaching you everything in SQL that you will need for Data analysis in businesses
Comprehensive - covers basic and advanced SQL statements in both, PostgreSQL and MySQL
Downloadable resources covering important topics on SQL
Your queries on SQL and anything covered in the Masterclass will be responded by the Instructor himself
A Verifiable Certificate of Completion is presented to all students who undertake this SQL course.
Why should you choose this course?
This is a complete tutorial on SQL which can be completed within a weekend. SQL is the most sought after skill for Data analysis roles in all the companies. PostgreSQL and MySQL are highly desired skills for database management and data analysis roles. So whether you want to start a career as a data scientist or just grow you data analysis skills, this course will cover everything you need to know to do that.
What makes us qualified to teach you?
The course is taught by Abhishek, Pukhraj and Nadeem. Instructors of the course have been teaching Data Science and Machine Learning for over a decade. They have an in-depth knowledge in advanced SQL, PostgreSQL, MySQL, database management, and various data analysis tools available in the market.
We are also the creators of some of the most popular online courses - with over 1 million enrollments and thousands of 5-star reviews like these ones:
I had an awesome moment taking this course. It broaden my knowledge more on the power use of SQL as an analytical tools. Kudos to the instructor! - Sikiru
Very insightful, learning very nifty tricks and enough detail to make it stick in your mind. - Armand
Our Promise
Teaching our students is our job and we are committed to it. If you have any questions about the course content, practice sheet or anything related to any topic, you can always post a question in the course or send us a direct message.
By the end of this course, your confidence in using SQL will soar. You'll have a thorough understanding of how to use SQL for Data analytics as a career opportunity.
Go ahead and click the enroll button, and I'll see you in lesson 1!
Cheers
Start-Tech Academy
FAQ's
Why learn SQL?
SQL is the most universal and commonly used database language. It powers the most commonly used database engines like PostgreSQL, SQL Server, SQLite, and MySQL. Simply put, If you want to access databases then yes, you need to know SQL.
It is not really difficult to learn SQL. SQL is not a programming language, it’s a query language. The primary objective where SQL was created was to give the possibility to common people to get interesting data from the database. It is also an English-like language so anyone who can use English at a basic level can write SQL queries easily.
SQL is one of the most sought-after skills by hiring employers.
You can earn good money
How much time does it take to learn SQL?
SQL is easy but no one can determine the learning time it takes. It totally depends on you. The method we adopted to help you learn SQL quickly starts from the basics and takes you to advanced level within hours. You can follow the same, but remember you can learn nothing without practicing it. Practice is the only way to learn SQL quickly.
What's the difference between SQL and PostgreSQL?
SQL is a language. Specifically, the "Structured Query Language"
PostgreSQL is one of several database systems, or RDMS (Relational Database Management System). PostgresSQL is one of several RDMS's, others of which are Oracle, Informix, MySQL, and MSQL.
All of these RDMSs use SQL as their language. Each of them have minor variations in the "dialect" of SQL that they use, but it's all still SQL.
Which is better, PostgreSQL or MySQL?
Both are excellent products with unique strengths, and the choice is often a matter of personal preference.
PostgreSQL offers overall features for traditional database applications, while MySQL focuses on faster performance for Web-based applications.
Open source development will bring more features to subsequent releases of both databases.
Who uses these databases?
Here are a few examples of companies that use PostgreSQL: Apple, BioPharm, Etsy, IMDB, Macworld, Debian, Fujitsu, Red Hat, Sun Microsystem, Cisco, Skype.
Companies that use MySQL: Uber, Airbnb, Netflix, Udemy, Pinterest etc.