MYSQL
๐ก I Just Started My MySQL Learning Journey! Iโve recently started learning MySQL, a powerful relational database management system. I'm exploring how to create and manage databases, write SQL queries, and understand how data is stored, retrieved, and organized. So far, I've learned about SQL commands like CREATE, SELECT, INSERT, UPDATE,and DELETE.
Install / Use
/learn @Reena-senthilkumar/MYSQLREADME
๐ SQL Basics โ Everything You Should Know
1๏ธโฃ Database Basics
- ๐ What is a database?
- ๐งฑ SQL introduction
- ๐ Types of database objects: Tables, Views, Indexes, Sequences, Triggers
2๏ธโฃ SQL Categories
- ๐งฑ DDL โ CREATE, ALTER, DROP, TRUNCATE
- โ๏ธ DML โ INSERT, UPDATE, DELETE
- ๐ DQL โ SELECT
- ๐ TCL โ COMMIT, ROLLBACK, SAVEPOINT
- ๐ DCL โ GRANT, REVOKE
3๏ธโฃ Basic Queries
- Filtering: WHERE, BETWEEN, IN, LIKE, IS NULL
- Sorting: ORDER BY
- Limiting: LIMIT
- Logical operators: AND, OR, NOT
- Conditional logic: CASE
4๏ธโฃ Functions
๐ข Aggregate Functions
SUM, AVG, COUNT, MAX, MIN
๐ค String Functions
CONCAT, LENGTH, SUBSTRING, UPPER, LOWER, TRIM
๐ Date Functions
NOW(), CURDATE(), DATE_ADD(), DATE_FORMAT()
5๏ธโฃ Grouping & Filtering Groups
- GROUP BY โ group rows
- HAVING โ filter groups after grouping
6๏ธโฃ Joins
- ๐ INNER JOIN
- โช๏ธ LEFT JOIN
- โฉ๏ธ RIGHT JOIN
- ๐ FULL JOIN
- ๐ SELF JOIN
- โ CROSS JOIN
7๏ธโฃ Constraints
- ๐ PRIMARY KEY
- ๐ FOREIGN KEY
- ๐ UNIQUE
- ๐ซ NOT NULL
- โ๏ธ CHECK
- ๐ DEFAULT
8๏ธโฃ Set Operations
- UNION
- UNION ALL
- INTERSECT
- EXCEPT (if supported)
9๏ธโฃ Transactions & TCL
- ๐งช
START TRANSACTION - ๐พ
COMMIT - โ
ROLLBACK - ๐งฉ
SAVEPOINT
Ensures ACID properties (Atomicity, Consistency, Isolation, Durability)
๐ Index
- โก
CREATE INDEXโ improves search speed - Can be: Unique or Non-Unique
๐ Advanced SQL โ Level Up Your Database Skills 1๏ธโฃ Subqueries & Nested Queries
๐ Subquery in WHERE
๐ฆ Subquery in FROM (derived table)
๐ฏ Subquery in SELECT
๐ Correlated Subqueries
โก EXISTS vs IN vs ANY vs ALL
2๏ธโฃ Advanced Joins
๐ฅ Self Join (manager-management table)
๐ Multi-table joins
๐ Joins with Aggregate Functions
๐ Cross Join usage in real cases
3๏ธโฃ Views
๐ช Creating views: CREATE VIEW
๐ Updating data with views
๐ซ Updatable vs Non-Updatable Views
๐ Real use cases: security, simplification
4๏ธโฃ Stored Procedures & Functions
โ๏ธ CREATE PROCEDURE
๐งต Input & Output parameters
๐ CALL a procedure
๐ Stored Functions using RETURN
๐ Reusable logic for apps
5๏ธโฃ Triggers
๐งจ BEFORE INSERT
๐ฅ AFTER UPDATE
๐ Auditing tables
๐ Logging data changes
โ ๏ธ Enforcing rules automatically
6๏ธโฃ Window Functions (Analytical Functions)
๐ช ROW_NUMBER()
๐ RANK()
๐ฅ DENSE_RANK()
โญ๏ธ LEAD()
โฎ๏ธ LAG()
โ Running totals โ SUM() OVER()
7๏ธโฃ CTE โ Common Table Expressions
๐ WITH clause
๐ Recursive CTE
Organization hierarchy
Category trees
Explaining parent-child relations
8๏ธโฃ Indexing (Performance Boost)
โก Composite Index
๐ Covering Index
๐งฑ Clustered vs Non-Clustered (conceptual)
๐ How indexes affect WHERE, JOIN, ORDER BY
9๏ธโฃ Normalization & Design
1๏ธโฃ 1NF
2๏ธโฃ 2NF
3๏ธโฃ 3NF
๐ต BCNF
๐งฉ When to use Denormalization
๐ฆ Data redundancy control
๐ Query Optimization
๐ EXPLAIN โ read query execution plan
โ๏ธ Optimizing joins
๐งน Avoiding heavy subqueries
๐ Improving performance using indexes
๐ Avoid full table scans
Related Skills
oracle
344.4kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
prose
344.4kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
Command Development
99.2kThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
Plugin Structure
99.2kThis skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.
Security Score
Audited on Mar 18, 2026
