SQL Code Snippets
SQL Basics
- SQL Syntax
- SQL Numeric Data Types & Functions
- SQL String Data Types & Functions
- SQL Data and Time Data Types & Functions
- SQL Wildcards
- SQL Constraints
- SQL Aggregate Functions
Data Definition Language (DDL)
- The CREATE statement
- The ALTER statement
- The DROP statement
- The RENAME statement
- The TRUNCATE statement
Data Manipulation Language (DML)
Data Control Language (DCL)
Transaction Control Language (TCL)
SQL Constraints
- The NOT NULL constraint
- The UNIQUE constraint
- The PRIMARY KEY constraint
- The FOREIGN KEY constraint
- The CHECK constraint
- The DEFAULT constraint
- The ON DELETE CASCADE constraint
SQL Aggregate Functions
- The COUNT() function
- The AVG() function
- The SUM() function
- The MIN() function
- The ROUND() function
- The COALESCE function
- The IFNULL() function