Академический Документы
Профессиональный Документы
Культура Документы
SQL WHERE
SQL AND | OR
SQL NOT
SQL ORDER BY
SQL NULL
SELECT column_names
FROM table_name
WHERE column_name IS NULL;
SQL UPDATE
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
SQL DELETE
SQL COUNT - returns the number of rows that matches a specified criterion.
SELECT COUNT(column_name)
FROM table_name
WHERE condition;
SQL LIKE
SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1, value2, ...);
SQL BETWEEN
SELECT column_name(s)
FROM table_name
WHERE column_name BETWEEN value1 AND value2;
SELECT column_name(s)
FROM table_name AS alias_name;
SQL JOINS
(INNER) JOIN: Returns records that have matching values in both tables
LEFT (OUTER) JOIN: Return all records from the left table, and the matched
records from the right table
RIGHT (OUTER) JOIN: Return all records from the right table, and the matched
records from the left table
FULL (OUTER) JOIN: Return all records when there is a match in either left or
right table