Explore tens of thousands of sets crafted by our community.
SQL Commands
30
Flashcards
0/30
ORDER BY
Sort the results of a query in ascending or descending order.
HAVING
Filter groups created by GROUP BY based on aggregate conditions.
FULL JOIN
Select all records when there is a match in either left or right table.
DROP TABLE
Delete a table and its data from the database.
MIN
Find the smallest value in a column.
JOIN
Combine rows from two or more tables, based on a related column.
UNION
Combine the result sets of two or more SELECT statements.
LIMIT
Constrain the number of rows returned by a query.
INNER JOIN
Select records that have matching values in both tables.
LEFT JOIN
Select all records from the left table, and matched records from the right table.
IN
Specify multiple possible values for a column.
UPDATE
Modify existing data within a table.
INSERT INTO
Add new data into a table.
CREATE TABLE
Create a new table in the database.
INDEX
Create an index on one or more columns to improve query performance.
SUM
Calculate the sum of a set of values.
SELECT
Retrieve data from one or more tables.
ALTER TABLE
Modify the structure of an existing table.
DISTINCT
Return only distinct (different) values.
EXISTS
Test for the existence of any record in a subquery.
DELETE
Remove existing data from a table.
GROUP BY
Group rows that have the same values in specified columns.
CASE
Provide conditional logic within SQL queries.
WHERE
Filter results of a query based on conditions.
AVG
Calculate the average value of a set of values.
RIGHT JOIN
Select all records from the right table, and matched records from the left table.
UNION ALL
Combine the result sets of two or more SELECT statements, including duplicates.
MAX
Find the largest value in a column.
LIKE
Search for a specified pattern in a column.
COUNT
Count the number of rows that match a specified condition.
© Hypatia.Tech. 2024 All rights reserved.