SQL Presentation
SQL Presentation
SELECT
The FROM command is used to specify which table to select or delete data from.
WHERE
The GROUP BY statement groups rows that have the same values into summary rows, like
"find the number of customers in each country".
HAVING
The HAVING clause was added to SQL because the WHERE keyword cannot
be used with aggregate functions.
INSTR
(INNER) JOIN
Returns records that have matching values in both tables
LEFT (OUTER) JOIN
Returns all records from the left table, and the matched records from the right table
RIGHT (OUTER) JOIN
Returns all records from the right table, and the matched records from the left table
FULL (OUTER) JOIN
Returns all records when there is a match in either left or right table
SUM
The SUM() function returns the total sum of a numeric column.
MINUS
The MINUS operator is used to subtract the result set obtained by first SELECT query from the
result set obtained by second SELECT query.
NVL
NVL2
DECODE
CASE
SUB QUERY
SUBSTR
TO_DATE
TO_CHAR
UNION
UNION ALL
BETWEEN