
Master SQL through a three-step method that builds core concepts of structured query language across databases like MySQL, MariaDB, SQL Server, Oracle, and Postgres, emphasizing consistent logic despite small differences.
Explore how SQL, a structured query language, stores, defines, manipulates, and retrieves data in relational databases, and creates and drops databases and tables for web and mobile apps.
Install and configure a local web server stack with XAMPP, Apache, and MySQL or MariaDB, then use SQLYOG to manage databases.
Start and manage database services using a control panel, launching the Apache web server and the MySQL (MariaDB) server with the default port 3306, and monitor process IDs.
Connect to localhost on port 3306 as root, test the connection, and create your first database, for example my new test database, then verify it appears in the object browser.
Learn how to show databases, create and drop a database, and refresh the object browser, while understanding the data loss risk and the importance of backups.
Create your first database tables by defining an id integer, a name varchar(30) not null, and optional grade and degree fields, then set a primary key in a student table.
Master the drop table command by removing a table and verifying with a select. Then use insert into to add new rows to a table in your database.
Master the insert into syntax by specifying columns and values, or inserting into all columns, and practice populating a students table to see results after execution.
Create a new table from an existing one using a select statement to copy all data. Learn how the select returns a result set to populate the new table.
Master the basic select statement syntax by pulling all columns with select * from students and narrowing results with select name, ages from students to display specific fields.
Master the where clause to filter records in select statements, using conditions with integers and quoted strings to retrieve specific rows from a single table.
Master sql operators by using greater than, greater or equal, less than, and less or equal to filter data; combine conditions with and and or in select queries.
Learn how to update data with update queries in SQL, modify specific rows or all records using set and where conditions, with examples updating a student name and grade.
Learn to delete records with delete from students where name is equal to Chris, and also delete all records from a table by omitting the where clause.
Explore how the like operator uses wildcard patterns to match similar strings, including % for any characters, to find names starting with Chris or containing mal.
Learn how to limit query results across mysql, mssql, and oracle using limit, top, and rownum with the same underlying logic.
Learn how to use the order by clause to sort query results by one or more columns in ascending or descending order, with examples using AIDS and names.
Learn how the group by clause follows a select statement to group identical data by name and aggregate values, before applying the order by clause.
Master the distinct keyword to return only unique values and eliminate duplicate records using select distinct columns from table, with examples using students data.
Learn how to delete all data from an existing table using truncate table, delete from, or drop table, and observe the resulting empty set, preserved table structure, and draw conclusions.
Learn SQL fundamentals through MySQL examples.
This course introduces database querying and data management step by step. It is designed for learners who want to understand how a relational database stores information and how SQL helps answer questions about that information.
What you will explore
Explore database and table creation, inserting records, SELECT queries, WHERE conditions, operators, sorting, grouping, DISTINCT and data updates. Practice in a disposable learning database so you can inspect the effect of each statement. SQL dialects differ, so use syntax appropriate to the database demonstrated in the lesson.
How to study
Work through the relevant lessons in sequence, pause to reproduce the examples, and keep a short record of the concepts you can explain without looking at your notes. When an example produces an unexpected result, reduce it to a smaller case and compare what you expected with what actually happened. This makes revision more useful than simply replaying a demonstration.
Practical application
Create a fictional book-inventory table and write queries that filter available items, order them by price and summarize counts by category. Before any UPDATE or DELETE, use a SELECT with the same condition to check the rows you intend to affect.
Use the course as a structured learning resource at your own pace. Revisit difficult topics, write down questions, and connect each concept to a small example of your own. Before moving on, explain your solution, check a normal case and an edge case, and note one limitation. The goal is to develop understanding that you can transfer to another problem, rather than memorize a single answer.
Check the curriculum and prerequisites to decide whether the course fits your current knowledge and learning goals. Recorded software interfaces and third-party services can change; consult the provider's current documentation when setting up your environment.