Dataslope logoDataslope

What SQL Does

Learn what SQL is, how it describes database requests, and why it became a shared language.

SQL exists because people needed a common way to ask structured questions about structured data.

SQL stands for Structured Query Language.

It is the language most relational databases understand, including SQLite.

Instead of telling the computer every tiny step, SQL lets you describe the result you want.

A shared language

Before a database can answer questions, people and programs need a way to express those questions clearly.

Examples:

  • Show me all open support tickets.
  • Add this new customer.
  • Change this package from "processing" to "shipped."
  • Delete this expired discount code.

SQL gives these requests a common shape.

SQL describes what, not every how

SQL is often called declarative.

That means you describe what result you want, and the database figures out many of the steps.

For example, you might ask SQLite:

SQL
SQLite 3.53

You are saying:

Give me the names of products where the price is less than 20.

You are not saying:

Open the storage file, read byte 900, compare it, jump to another page, then draw the answer.

SQLite handles those lower-level details.

QuestionSelect one

What does it mean that SQL is declarative?

You must describe every byte SQLite should read from disk

You describe the result you want, not every low-level step

You must draw every database page by hand

SQL can only delete data

The four everyday verb families

Most beginner SQL fits into four categories:

SELECT  read existing rows
INSERT  add new rows
UPDATE  change existing rows
DELETE  remove rows

These match the basic things applications do with stored information.

SELECT reads

SELECT asks for information that is already stored.

INSERT adds

INSERT saves a new row.

UPDATE changes

UPDATE edits rows that already exist.

DELETE removes

DELETE removes rows you no longer want to keep.

QuestionSelect one

Which SQL verb usually adds a new row?

SELECT

INSERT

UPDATE

DELETE

Why one language matters

SQL became important because many tools can speak it.

A reporting tool, a web application, a command-line program, and a database browser can all send SQL to a relational database.

Each database system has its own features and small differences, but the core ideas transfer widely.

SQLite, PostgreSQL, MySQL, SQL Server, and many other systems understand SQL.

SQL is not the database

SQL is the language.

The database is the stored information and the system that manages it.

That is like the difference between a question and the library that answers it.

The main idea

SQL exists so people and applications can ask structured questions and request structured changes using a shared language.

You will learn SQL gradually. At first, focus on the idea:

SQL says what information you want the database to read or change.

Check your understanding

QuestionSelect one

What does SQL stand for?

Simple Question List

Structured Query Language

Storage Queue Logic

Screen Quality Layout

QuestionSelect one

Which SQL command usually reads existing rows?

SELECT

INSERT

UPDATE

DELETE

QuestionSelect one

Why did SQL become useful across many tools?

It only works when one person types into one spreadsheet cell

It gives many programs a shared way to talk to relational databases

It only works for one brand of database

It replaces every programming language

QuestionSelect one

What is SQL not responsible for?

Describing which rows you want

Helping apps request database work

Drawing the app's buttons and screens

Reading rows with SELECT

On this page