SQL
Comprehensive SQL reference covering SELECT, joins, aggregation, CASE expressions, NULL handling, string/date functions, window functions, DDL, transactions, and more.
SELECT & Filtering
Query data with SELECT, WHERE, LIKE, ORDER BY, and LIMIT.
SELECT Statements
Retrieve data with filtering, sorting, and limiting.
LIKE & Pattern Matching
Filter text with wildcard patterns.
Data Modification
Insert, update, and delete data.
INSERT, UPDATE, DELETE
Add, modify, and remove rows.
Joins
Combine rows from multiple tables with JOIN operations.
JOIN Operations
Inner, outer, self, and cross joins.
UNION & Combining Results
Combine result sets from multiple queries.
Aggregation
Aggregate functions with GROUP BY and HAVING.
GROUP BY & Aggregates
Summarize data with aggregate functions and grouping.
CASE & NULL Handling
Conditional logic and NULL-safe operations.
CASE Expressions
Add conditional logic (if/else) to queries.
NULL Handling
Check, replace, and handle NULL values safely.
Built-in Functions
String, date, and numeric functions.
String Functions
Manipulate and transform text data.
Date & Numeric Functions
Work with dates, times, and numbers.
Subqueries & CTEs
Nest queries and organize complex logic with Common Table Expressions.
Subqueries & CTEs
Write nested queries and reusable named expressions.
Window Functions
Perform calculations across related rows without collapsing groups.
Window Functions
ROW_NUMBER, RANK, LAG, LEAD, running totals, and partitioned aggregates.
Table Management
Create, alter, and drop tables with proper data types.
DDL & Data Types
Define tables with CREATE, ALTER, DROP and choose the right data types.
Constraints & Keys
Enforce data integrity with primary keys, foreign keys, and constraints.
Constraints
PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, CHECK, and DEFAULT.
Indexes & Performance
Create indexes to speed up queries.
Indexes
Create and manage indexes for query performance.
Transactions
Group operations into atomic units with COMMIT and ROLLBACK.
Transaction Control
BEGIN, COMMIT, ROLLBACK, and savepoints.
Views & Stored Procedures
Create reusable views and stored procedures.
Views
Save queries as reusable virtual tables.
Stored Procedures
Save reusable blocks of SQL logic on the database server.