Introduction to SQL
Unlocking the Power of Data with
Structured Query Language
What is SQL?
• • SQL stands for Structured Query Language
• • Used to manage and manipulate relational
databases
• • Developed by IBM in the 1970s,
standardized by ANSI
Key Features of SQL
• • Data Querying
• • Data Manipulation (INSERT, UPDATE,
DELETE)
• • Data Definition (CREATE, ALTER, DROP)
• • Data Access Control (GRANT, REVOKE)
Common SQL Commands
• SELECT – Read data
• INSERT – Add new data
• UPDATE – Modify existing data
• DELETE – Remove data
• CREATE – Create tables/databases
• DROP – Delete tables/databases
SQL Syntax Example
• SELECT name, age
• FROM employees
• WHERE age > 30;
• → Selects names and ages of employees older
than 30
Types of SQL
• • DDL – Data Definition Language (CREATE,
DROP)
• • DML – Data Manipulation Language (INSERT,
UPDATE, DELETE)
• • DCL – Data Control Language (GRANT,
REVOKE)
• • TCL – Transaction Control Language
(COMMIT, ROLLBACK)
SQL in Real Life
• • Used in web apps, business intelligence,
data analytics
• • Works with databases like MySQL,
PostgreSQL, SQL Server, Oracle
AI & SQL
• AI tools can:
• • Write SQL queries from natural language
• • Optimize query performance
• • Automate database management
Summary
• • SQL is essential for data-driven work
• • Core to many tech and business applications
• • AI enhances SQL use in modern systems