Welcome to the Introduction to SQL repository! This guide is designed for beginners who want to learn how to use SQL (Structured Query Language) to manage and interact with relational databases.
SQL (Structured Query Language) is the standard language used to communicate with relational databases. With SQL, you can:
- Create and manage databases and tables
- Insert, update, and delete data
- Retrieve data with queries
- Control access and security
- Perform advanced operations like joins, aggregation, and subqueries
This repository includes the basics and some intermediate concepts of SQL:
- Database & Tables
- CREATE DATABASE
- CREATE TABLE
- ALTER TABLE
- DROP TABLE
 
- Basic Queries
- SELECT
- WHERE
- ORDER BY
- LIMIT
 
- Data Manipulation
- INSERT INTO
- UPDATE
- DELETE
 
- Filtering & Aggregation
- DISTINCT
- COUNT, SUM, AVG, MIN, MAX
- GROUP BY
- HAVING
 
- Joins
- INNER JOIN
- LEFT JOIN
- RIGHT JOIN
- FULL JOIN
 
- Subqueries & Aliases
- Subqueries in SELECT, WHERE
- Table and Column Aliases
 
- Indexes & Constraints
- PRIMARY KEY, FOREIGN KEY
- NOT NULL, UNIQUE, CHECK
- INDEX