Introduction to SQL — Complete Guide
Introduction to SQL — Complete Guide: free step-by-step lesson with examples, common mistakes, and interview tips — part of MySQL Tutorial on Toolliyo Academy.
On this page
MySQL Tutorial · Lesson 1 of 100
Introduction to SQL
Basics → Advanced
Basics · 1 — SQL · ~6 min · MySQL — Foundations
What is this?
SQL (Structured Query Language) is how you talk to relational databases. You use it to create tables, insert rows, and ask questions like “how many orders shipped today?”. It is not a programming language — it is a query language focused on data.
Why should you care?
Every Flipkart search, Swiggy order total, and bank balance check runs SQL (or something that compiles to it) behind the scenes. Learning SQL lets you read and fix the data layer directly.
See it live — copy this example
Run in MySQL Workbench or the mysql CLI.
-- DataFlow: list table names in the current schema
USE DataFlow;
SHOW TABLES;
What happened?
- USE DataFlow switches your session to the DataFlow database.
- SHOW TABLES lists every table you can query there.
- This is your first look at what data the app actually stores.
Practice next
- Open MySQL Workbench and connect to your local server.
- Run USE DataFlow; (create the database first if needed: CREATE DATABASE DataFlow;).
- Run SHOW TABLES; and note the names.
- Run SHOW DATABASES; and count how many exist.
- Create DataFlow with CREATE DATABASE IF NOT EXISTS DataFlow; then USE it again.
Remember
SQL reads and writes relational data. SHOW and USE are basic navigation commands. DataFlow is the practice database for this course.
DataFlow onboarding query
A new backend engineer joins and runs SHOW TABLES on DataFlow to map customers, orders, and products before writing APIs.
Outcome: They know which tables exist before touching production-like data.
Interview prep for this lesson
Practice these questions aloud after reading—each links to a full structured answer.
Sign in to ask a question or upvote helpful answers.
No questions yet — be the first to ask!