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