HTAP Summit 2024 session replays are now live!Access Session Replays

Introduction

This course focuses on the essential SQL query skills and guides the audience to take performance into consideration while writing SQL from the first place. And, most of the content in this course is applicable with MySQL, learners can understand the compatibility of TiDB and MySQL by practices.

Free online learning is coming soon!

Private Training is available now. To purchase Private Training, contact sales to build out a custom training plan.

Contact Sales

Summary

  • Audience: SQL developer beginners
  • Level: Introductory
  • Duration: 1 day
  • Prerequisites: You know how to connect to TiDB with the MySQL Client.
  • TiDB Version: v6.x

Course Outline

  • Use DESC
  • Retrieve records using a SELECT statement
  • Query data from a MySQL client
  • Get query execution plan
  • Optimize pagination by KeySet seeker
  • Describe data types
  • Describe numeric, date, string, and NULL
  • Describe boolean expression
  • Choose the right data type
  • Use String functions
  • Use Date and time functions
  • Use Numeric functions
  • Use aggregate functions
  • Run a simple analysis using RANK window function
  • Use control flow functions
  • Understand TiKV expression push down
  • JOIN concepts
  • JOIN multiple tables
  • UNION and other set operations on multiple queries
  • Subquery concept
  • Simple subqueries
  • Correlated subqueries

Build out a custom training plan?  Contact Sales

Module 1: Querying Data in TiDB

  • Use DESC
  • Retrieve records using a SELECT statement
  • Query data from a MySQL client
  • Get query execution plan
  • Optimize pagination by KeySet seeker

Module 2: Data Types and Expressions

  • Describe data types
  • Describe numeric, date, string, and NULL
  • Describe boolean expression
  • Choose the right data type

Module 3: Functions and Expressions

  • Use String functions
  • Use Date and time functions
  • Use Numeric functions
  • Use aggregate functions
  • Run a simple analysis using RANK window function
  • Use control flow functions
  • Understand TiKV expression push down

Module 4: Joins

  • JOIN concepts
  • JOIN multiple tables
  • UNION and other set operations on multiple queries

Module 5: Subqueries

  • Subquery concept
  • Simple subqueries
  • Correlated subqueries

TiDB Cloud Dedicated

A fully-managed cloud DBaaS for predictable workloads

TiDB Cloud Serverless

A fully-managed cloud DBaaS for auto-scaling workloads