
Explore what databases are, how a database management system executes instructions to access and modify data, and the differences between relational and non-relational databases using SQL.
Install MySQL on Mac and set up MySQL Workbench to connect to a local server, including downloading the community edition, configuring admin password, and verifying the connection.
Install and configure MySQL on Windows, set the admin password, and connect with the workbench to manage databases and run queries.
Explore how a relational database organizes data into tables of rows and columns, called relations, and understand data types such as integer, text, date, and real.
Discover the databases we will use in this course and gain a brief introduction to relational databases. Learn about tables, columns, rows, relationships, and how these elements support relational design.
Learn to retrieve data from a single table with the select statement in MySQL, including selecting specific columns and all columns from actor and customer tables.
Learn to create a new table in MySQL using the create table statement, define columns with data types like integer and text, and refresh to view the result.
Learn how to use insert into to add rows to a table, specify columns and values, and verify with select, while noting that omitting a column yields a null value.
Use the alter table statement to add a new column to a table, specifying the column name and data type (text). See how email appears with null values using select.
Learn to use the update statement to modify existing records by setting a column value such as email with the set clause and a where clause, noting safe updates.
Learn how the delete statement removes rows from a table using delete from and where clauses, including deleting all records, with caution to always include a where clause.
See how constraints govern sql data by enforcing insert restrictions, not null values, and unique keys, then create a table with primary key and default constraints and query it.
Learn six core commands to manage data in relational databases and set constraints. Explore statements like create table, select, alter table, and delete from tables.
Use select to fetch all columns with the asterisk or pick specific columns such as first and last name from the customer table, and title, description, release year from film.
Master the as keyword to rename a column with an alias, using single quotes, as demonstrated by renaming title to 'movie name' in a select statement.
Learn to retrieve unique values with the distinct keyword in SQL, filtering duplicates in a film table and displaying only the distinct ratings from film.
Explore the where clause to filter query results in SQL, using operators like equals and greater than, to retrieve inactive customers and film rental rate above 2.99.
Master how the like operator uses wildcards, underscores, and percent signs to perform case-insensitive filters on last names and film titles by starts with, ends with, or contains patterns.
Learn to handle null values in sql by using is null and is not null, with examples selecting rows where the address to column is null or not null.
Explore how to use the between operator in a where clause to filter results within a range, applying to numbers, text, or dates, with examples on movie titles and duration.
Use the and operator to combine conditions, such as movies starting with leather and rental rate four point ninety nine, with descriptions containing hunter and rental rate less than 4.
Learn how the OR operator combines multiple conditions in SQL queries, returning results when any condition is true, with examples using title like 'A%' and rental_rate = 4.99.
Sort results with the order by clause to arrange alphabetically or numerically. Use asc or desc and order by title; ordered column need not be displayed; it follows where clause.
Use the limit clause to restrict the number of rows returned, improving performance on large tables; combine with order by to fetch the top 3 highest rental rates.
learn to use a case statement in SQL to produce conditional outputs, converting ratings to categories with when, then, end and aliasing the result.
Learn SQL with MySQL by using select, where, between, and, or, order by, limit, and case to produce filtered, ordered results and distinct values.
Apply the count function by passing a column name to count rows, demonstrated by counting all customers and counting orders where employee_id = 4 in the North Wind database.
Explore the sum function that adds all values in a column of the orders table, and filter the sum for a specific customer id like Hannah using SQL queries.
Explore sql max and min to find the highest and lowest values in a column, such as selecting max freight from orders and min freight for the lowest amount.
Calculate the average value of a column with the avg function using the salary column from the employees table. Get the average unit price from the products table.
Learn how the round function in SQL takes two arguments to round a column to a number of decimal places, with salary and unit price examples from the products table.
Learn to use group by to compute aggregates like the average freight per customer, including non-aggregate columns, and understand its order after where and before order by.
Learn to group data by a computed column using group by, counting total orders per rounded freight amount and total employees sharing the same salary with column references for simplicity.
learn to filter grouped data with the having clause after a group by, using aggregate conditions to show categories with more than 10 products, and apply it before order by.
Learn how aggregate functions like count, sum, max, min, and avg compute values across rows, and use group by and having to refine results while limiting output.
SQL is THE most important query language you can learn!
It's used by many popular relational database management systems like MySQL . But it's also used by data analysis and big data frameworks and tools like Apache Spark.
Hence knowing SQL opens up an endless amount of opportunities and jobs - no matter if you're going to work with relational databases or if you're becoming a data scientist, knowing SQL will be key!
SQL is a standardized language and therefore learning SQL will help you apply it in all kinds of contexts. Nonetheless, different database systems also support different aspects of SQL or bring their own variations of the SQL language. Therefore, this course dives into SQL by exploring all key features at the example of the two most popular database systems: MySQL and PostgreSQL. All query and command examples are shown for both database systems, ensuring that you feel comfortable working with SQL in either environment!
This course will enable you to write your own (simple or complex) SQL queries, create basic or advanced databases and table structures and work with data of different shape and complexity!
In detail, you will learn:
What exactly SQL is and how the core syntax looks like
How to write SQL commands
How to install MySQL & PostgreSQL as well as various clients
How to create and structure database tables
Which data types you may use and when to use which data type
How to perform CRUD operations: Create, Read, Update & Delete Data
How to insert data into tables
How to query and filter data
Why you should split data across multiple tables (and how to do that)
How to join (merge) data into combined result sets
How to write basic and more complex queries
How to aggregate and group data
How to use built-in database functions to work with numbers, text or dates
How to optimize databases with indexes
And much, much more!
Explore the full course curriculum to get a thorough overview of the course content and watch the free preview section to learn how this course will help you!
This course also comes with a 30 day refund period, so that you can try it risk-free :)
We'd love to welcome you on board of this course and explore SQL together with you!