CSC-ITC8429 - Introduction to MySQL for PHP Developers
Course Description
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).
Course Outline
I. 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)
- 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
- 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
- Exercise: Subqueries
- Joins
- Table Aliases
- Multi-table Joins
- Exercise: Using Joins
- Outer Joins
- Unions
- UNION ALL
- UNION Rules
- Exercise: Working with Unions
- Inserting Records
- Updating and Deleting Records
Learner Outcomes
- Understand how MySQL works
- Learn to use SQL to output reports with MySQL
- Learn to modify MySQL data with SQL
Notes
This is an asynchronous online course offered through the third party vendor ed2go. This course can be taken on either a PC or Mac. The instructional materials required for this course are included in enrollment and will be available online. You will have three months to complete the course, and may complete the course earlier than the three month period.
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.