DCL Data Control Language, setting user permissions (GRANT, REVOKE)
DDL Data Definition Language, working with database structure (CREATE, ALTER, TRUNCATE, DROP) EX:
CREATE TABLE (Schema)[TableName]
(Column definitions (Constraints))
ALTER TABLE [TableName]
ADD (Column) [Column definition]
ADD (Constraint clause)
DROP [column] [cascade]
DROP Constraint
ALTER COLUMN [definition]
DML Data Manipulation Language, working with the rows of data itself (INSERT, UPDATE, DELETE) EX:
INSERT INTO [TableName] [columns]
VALUES (data input)
SELECT (drop entire result set into table)
DQL Data Query Language, retrieving rows of data (SELECT). EX:
SELECT [columnList]
FROM [tableList]
WHERE [conditionList]
GROUP BY [columnList] // aggregate functions
HAVING [condition] // aggregate functions
ORDER BY [columnList]
TCL Transaction Control Language, managing transactions (COMMIT, ROLLBACK, SAVEPOINT)
SAVEPOINT this_point;
INSERT ...
INSERT ...
INSERT ... --Error here
ROLLBACK TO this_point; --Undo last 3 inserts
INSERT ...
COMMIT; --Only last insert will commit
Sequences Generate numeric sequence, mostl for creating/managing primary keys.
Views Virtual table that displays the results of a SELECT statement, lets you reuse and store complex queries
Indexes Physical ordering of a column or group of columns, having unique indexes
Alias The AS or IS keyword allows you to set a Table name or column name as a short variable.
Aggregate Functions (AVG, MIN, MAX, SUM, COUNT) perform an action on an entire column
Scalar functions (LOWER, UPPER) operate on individual entries
Combine rows from two tables based on some logical relationship between them (columns)