🚀 SQL
Welcome to this SQL Repo for data! This repository contains all the materials needed to master SQL, from the basics to advanced concepts.
📖 Introduction
SQL (Structured Query Language) is the standard language for interacting with relational databases. Mastering SQL opens the door to data analysis, backend development, and a plethora of other technology skills.
📚 Course Content
Introduction to SQL 🌐
- What is SQL? Why is it important?
- History and different dialects.
- Overview of common DBMS.
- Database structure: tables, rows, and columns.
- Common data types.
- Basic queries: SELECT, FROM, WHERE.
- Sorting results: ORDER BY.
- Filtering with WHERE.
- Joins: INNER JOIN, LEFT/RIGHT JOIN, FULL JOIN.
- Aggregation: COUNT, SUM, AVG, MIN, MAX.
- GROUP BY and HAVING.
- Subqueries and nested queries.
- Insertion, updating, and deletion of data.
- Understanding transactions.
Database Creation and Management 🛠️
- Creating and modifying tables. CREATE DATABASE, CREATE TABLE.
- Introduction to constraints. PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL.
- ALTER TABLE: adding/removing columns, changing data types.
- DROP DATABASE, DROP TABLE.
- String functions.
- Numeric functions.
- Date functions.
- Introduction to indexes.
- Creating, modifying, and deleting indexes.
- Execution plan and query optimization.
Views, Stored Procedures, and Triggers
- Creating and using views.
- Introduction to stored procedures.
- Triggers and their uses.
🤝 Contribution
Feel free to open issues for any questions or suggestions. Pull Requests are also welcome if you want to improve the content or correct errors.