This MySQL course provides new PHP developers with the prerequisite knowledge necessary to learn to build database-driven websites with PHP and MySQL.
This MySQL course provides new PHP developers with the prerequisite knowledge necessary to learn to build database-driven websites with PHP and MySQL. It does not cover PHP, but it prepares you for learning PHP to integrate with MySQL. Although most of the SQL learned in the course is applicable to all major databases, including SQL Server, Oracle, and PostgreSQL, it focuses on MySQL.
This course starts with the basics of relational databases. You will learn to use simple SELECT queries to pull data, and then move on to more advanced SELECTs and data manipulation. You will shape the results of your queries to create relevant reports. Once you have mastered the basics, you will get hands-on with complex data retrieval methods like subqueries, joins, outer joins, and unions. Finally, you will use INSERT, UPDATE, and DELETE while learning best practices for maintaining your records.
By the end of this MySQL for PHP course, you will know MySQL and SQL well enough to start using it with PHP (and elsewhere).
Click Here For Additional Course Information
Requirements:
Hardware Requirements:
- This course can be taken on either a PC or Mac. Chromebooks are not compatible.
Software Requirements:
- PC: Windows 8 or later.
- Mac: macOS 10.10 or later.
- Browser: The latest version of Google Chrome or Mozilla Firefox is preferred. Microsoft Edge and Safari are also compatible.
- Adobe Acrobat Reader
- Software must be installed and fully operational before the course begins. Setup instructions can be found here.
Other:
- Email capabilities and access to a personal email account.
Instructional Material Requirements:
The instructional materials required for this course are included in enrollment and will be available online.
In this online course you will learn how to connect MySQL to PHP. You will also learn how to create a MySQL database This MySQL course provides new PHP developers with the prerequisite knowledge necessary to learn to build database-driven websites with PHP and MySQL. This course does not cover PHP, but it prepares you for learning PHP to integrate with MySQL. Although most of the SQL learned in the course is applicable to all major databases, including SQL Server, Oracle, and PostgreSQL, it focuses on MySQL.
Relational Database Basics
Brief History of SQL
Relational Databases
Tables
Rows
Columns
Relationships
Datatypes
Primary Keys
Foreign Keys
Relational Database Management System
Popular Databases
Commercial Databases
Popular Open Source Databases
SQL Statements
Database Manipulation Language (DML)
Database Definition Language (DDL)
Database Control Language (DCL)
Simple SELECTs
Introduction to the Northwind Database
Some Basics
Comments
Whitespace and Semi-colons
Case Sensitivity
SELECTing All Columns in All Rows
Exercise: Exploring the Tables
SELECTing Specific Columns
Exercise: SELECTing Specific Columns
Sorting Records
Sorting by a Single Column
Sorting By Multiple Columns
Ascending and Descending Sorts
Exercise: Sorting Results
The WHERE Clause and Logical Operator Symbols
Checking for Equality
Checking for Inequality
Exercise: Using the WHERE Clause to Check for Equality or Inequality
Checking for Greater or Less Than
Exercise: Using the WHERE Clause to Check for Greater or Less Than
Checking for NULL
Exercise: Checking for NULL
WHERE and ORDER BY
Exercise: Using WHERE and ORDER BY Together
Checking Multiple Conditions with Boolean Operators
AND
OR
Order of Evaluation
Exercise: Writing SELECTs with Multiple Conditions
The WHERE Clause and Logical Operator Keywords
The BETWEEN Operator
The IN Operator
The LIKE Operator
The NOT Operator
Exercise: More SELECTs with WHERE
Advanced SELECTs
Calculated Fields
Concatenation
Mathematical Calculations
Aliases
Exercise: Calculating Fields
Aggregate Functions and Grouping
Aggregate Functions
Grouping Data
Exercise: Working with Aggregate Functions
Selecting Distinct Records
Built-in Data Manipulation Functions
Common Math Functions
Common String Functions
Common Date Functions
Exercise: Data Manipulation Functions
Subqueries, Joins and Unions
Subqueries
Exercise: Subqueries
Joins
Table Aliases
Multi-table Joins
Exercise: Using Joins
Outer Joins
Unions
UNION ALL
UNION Rules
Exercise: Working with Unions
Inserting, Updating and Deleting Records (if time allows)
Inserting Records
Updating and Deleting Records
What you will learn
- Understand how MySQL works
- Learn to use SQL to output reports with MySQL
- Learn to modify MySQL data with SQL
How you will benefit
- Organizations store data in databases, and MySQL is the most popular open source database. Knowing how to query those databases opens up opportunities for you to build reports for such organizations
- Database-driven websites require knowledge of SQL, and MySQL is one of the most popular databases used to build these websites, especially those built with PHP. This course gives you the prerequisite knowledge to start learning a server-side language such as PHP to use with MySQL
Self-Study