1/59
Looks like no tags are added yet.
Removes duplicate values from the result set and ensures only unique values are returned
FULL OUTER JOIN
Returns all rows from both tables, including rows with no matches.
INNER JOIN
Retrieves only the rows that have matching values in both tables, filtering out non-matching records.
LEFT JOIN
Returns all records from the left table and matching records from the right table; returns NULL for right table columns with no match.
RIGHT JOIN
Returns all records from the right table and matching records from the left table; returns NULL for left table columns with no match.
CROSS JOIN
Produces a Cartesian product, returning all possible combinations of rows from both tables.
UNION
Combines the results of two or more SELECT statements into a single result set, removing duplicate records.
WHERE
Filters rows before any aggregation occurs, i.e., before applying GROUP BY.
GROUP BY
Groups rows sharing a specified column value into summary rows, useful for aggregation.
HAVING
Filters records after aggregation has been performed.
ORDER BY
Sorts the results set in ascending (default) or descending order based on one or more columns.
DISTINCT
Removes duplicates from the result set, ensuring all returned values are unique.
NULL
Represents absent or missing data in SQL.
COALESCE()
A function that takes a list of values and returns the first non-NULL value, useful for replacing NULL in queries.
SUM()
Calculates the total sum of a numerical column.
AVG()
Computes the average of a numerical column.
COUNT()
Counts the number of rows or non-NULL values in a column.
MIN()
Returns the smallest value in a specified column.
MAX()
Returns the largest value in a specified column.
DELETE
Used to remove specific rows from a table while allowing for rollback if needed.
TRUNCATE
Efficiently removes all records from a table but retains the table structure; cannot be rolled back.
DROP
Permanently deletes an entire table from the database, including its structure and data; cannot be undone.