MySQL Introduction-Intermediate

3 Day Instructor-led
course icon

Course Information

Overview

This course is designed to provide the skills needed to create and alter a MySQL database and query and modify data held within such a database.

It covers the basics of the SQL language as implemented by MySQL. The course is designed to give delegates practical experience in writing SQL statements using the MySQL client program and MySQL Query Browser. The basic SQL statements,including the use of SQL functions and the basic table and view handling statements are introduced.

The delegates will practise:

Using client programs to access a MySQL database

Creating, altering and dropping a MySQL database

Writing SQL statements to select data from a MySQL database

Writing joins and subqueries

Using SQL expressions

Using SQL aggregate functions and scalar functions

Inserting, updating, deleting and replacing rows,

Creating and altering tables, indexes and views

Using transactions

Granting and revoking access privileges on tables and views

Exporting and importing data

Prerequisites

There are no formal pre-requisites, although an understanding of databases and exposure to information technology in general would be useful.

Course Outline

1. Database concepts
  • What is a database?
  • Database management systems
  • Tables, rows and columns
  • Indexes, primary keys, unique constraints and
  • foreign keys
  • Client-Server architecture
  • Supported data types
  • Storage engines and table types
  • The Information_Schema and MySQL
  • Databases
  • Exercise: Using a MySQL Database
2. USING THE mysql CLIENT
  • What is the MySQL client?
  • Getting started and Logging in
  • Selecting a database
  • Client commands
  • Entering and executing SQL statements
  • Retrieving previous commands
  • Creating, editing and executing SQL files
  • Redirecting output into a file
  • Command line execution of MySQL Scripts
  • Exercise: Using the MySQL Client
3. Basic select
  • The SQL SELECT statement
  • Case sensitivity
  • Quotes
  • Statement terminator
  • Syntax conventions
  • The select clause
  • The FROM clause
  • Conditions and the WHERE clause
  • Logical operators
  • The ORDER BY clause
  • Column aliases
  • Arithmetic expressions
  • Precedence of operators
  • Exercises: Querying the sample database
4. Limit, union and aggregate functions
  • The LIMIT clause
  • UNION
  • UNION ALL
  • Aggregate functions
  • The GROUP BY clause
  • Using Rollup with GROUP BY
  • The HAVING clause
  • Exercises: Using Limit, Union and Aggregate Functions
5. Subqueries and joins
  • Subqueries
  • Cartesian products
  • Joins with original syntax
  • Table aliases
  • Natural joins
  • Join using
  • Join on
  • Multi-table joins
  • Exercises: Using Subqueries and Joins
6. Numeric and character functions
  • Function types
  • Testing functions
  • Numeric functions
  • Character functions
  • Exercise: Using Numeric and Character Functions
7. Date, time and other functions
  • Date and time column types
  • Date and time formats
  • The date format function
  • Functions to return date time
  • Functions to extract components from date time
  • Date time arithmetic
  • Miscellaneous functions
  • Exercise: Using Date, Time and other functions
8. Databases and tables
  • Creating a database
  • Selecting a database
  • Creating tables
  • Auto_increment
  • Show create table
  • Column operations
  • Constraint operations
  • Copying tables
  • Renaming tables
  • Changing engine for tables
  • Dropping tables
  • Temporary tables
  • Exercises: Maintaining databases and tables
  • Indexes and views
  • What is an index?
  • Creating an index
  • Reviewing indexes
  • Dropping indexes
  • What is a view?
  • Creating views
  • View restrictions
  • Dropping views
  • Exercise: Maintaining indexes and views
9. Date, time and other functions
  • Date and time column types
  • Date and time formats
  • The date format function
  • Functions to return date time
  • Functions to extract components from date time
  • Date time arithmetic
  • Miscellaneous functions
  • Exercise: Using Date, Time and other functions
10. Databases and tables
  • Creating a database
  • Selecting a databasee
  • Creating tables
  • Auto_increment
  • Show create table
  • Column operations
  • Constraint operations
  • Copying tables
  • Renaming tables
  • Changing engine for tables
  • Dropping tables
  • Temporary tables
  • Exercises: Maintaining databases and tables
11. Indexes and views
  • What is an index?
  • Creating an index
  • Reviewing indexes
  • Dropping indexes
  • What is a view?
  • Creating views
  • View restrictions
  • Dropping views
  • Exercise: Maintaining indexes and views
12. Managing data
  • Inserting rows
  • Replacing rows
  • Updating rows
  • Deleting rows
  • The truncate statement
  • The COMMIT and ROLLBACK commands
  • Savepoints
  • Implicit commits
13. Access control
  • Creating users
  • Renaming users
  • Dropping users
  • Granting privileges
  • Revoking privileges
  • Exercise: Creating users, granting and revoking
14. Import and export
  • Exporting using SQL
  • Importing using SQL
  • Exporting from the command line
  • Importing from the command line
  • Exercise: Export and import data

Dates & Availability

We currently don’t have any dates scheduled for this training course but offer it as a corporate, private course for your own team.

Please use the enquire button below.

Private Courses

We can arrange your own private MySQL course.

Tailored

Have us build a custom private course tailored to your needs.

Cost Effective

If you are looking to training a group of people private courses can be very cost effective.

Post Course Support

Unlimited post course email support on the course topics.

What Our Clients Think

Fantastic tutor. Great course! Thank you.

Joel Weaver - Science Ltd

Very good course. I've been using the software constantly in the last three months and still learnt a lot.

George Martin - NHS North of England

The trainer was an excellent tutor. He did check all of the group was able to keep up and if there were any problems or questions of the attendants, he was always willing to help.

Marianne Seager - Wincanton

Really enjoyed this course. It delivered exactly what I wanted out it.

Malkit Singh - Regatta Ltd

Very informative and was at a good pace. Lots of extra useful tips too.

Harry Finch - Lancashire Insurance

The trainer was very through and very helpful. The course was delivered superbly and I'm very pleased.

David O'Hara - Multibrands UK

Related Courses

Format:
Virtual or Classroom
Length:
2 Days

You will learn how to build a MySQL database-driven Web application using the PHP scripting language.

Format:
Virtual or Classroom
Length:
3 Days
Learn the essentials of writing Structured Query Language (SQL) commands to access, create and modify data within a MySQL database.