Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

SQL Clauses and Operators

20

Flashcards

0/20

Still learning
StarStarStarStar

FROM

StarStarStarStar

Specifies the table from which to retrieve data.

StarStarStarStar

EXISTS

StarStarStarStar

Used in a WHERE clause to test for the existence of any record in a subquery.

StarStarStarStar

WHERE

StarStarStarStar

Filters the data returned by a SQL query, based on a specified condition.

StarStarStarStar

JOIN

StarStarStarStar

Combines rows from two or more tables, based on a related column between them.

StarStarStarStar

HAVING

StarStarStarStar

Used instead of WHERE with aggregate functions. Filters the data after the aggregation.

StarStarStarStar

LIKE

StarStarStarStar

Operator used in a WHERE clause to search for a specified pattern in a column.

StarStarStarStar

AS

StarStarStarStar

Used to rename a column or table with an alias. This alias is used to make column names more readable.

StarStarStarStar

LIMIT

StarStarStarStar

Restricts the number of rows returned by a query. Useful in pagination.

StarStarStarStar

DISTINCT

StarStarStarStar

Used with SELECT to remove duplicate rows in the result set. Only distinct (different) values are selected.

StarStarStarStar

AND

StarStarStarStar

Logical operator that combines two or more conditions in a WHERE clause, all conditions must be true.

StarStarStarStar

UNION ALL

StarStarStarStar

Similar to UNION, but includes duplicates. Combines the result-sets of multiple SELECT statements.

StarStarStarStar

BETWEEN

StarStarStarStar

Operator selecting values within a range, used in WHERE clause. The range includes the endpoints.

StarStarStarStar

GROUP BY

StarStarStarStar

Arranges identical data into summary rows. Typically used with aggregate functions (COUNT, MAX, MIN, SUM, AVG).

StarStarStarStar

NOT

StarStarStarStar

Logical operator used to negate a condition in a WHERE clause.

StarStarStarStar

ORDER BY

StarStarStarStar

Sorts the result set in either ascending or descending order.

StarStarStarStar

UNION

StarStarStarStar

Combines the result-set of two or more SELECT statements, only includes distinct values.

StarStarStarStar

OR

StarStarStarStar

Logical operator that combines two or more conditions in a WHERE clause, at least one condition must be true.

StarStarStarStar

CASE

StarStarStarStar

Used to create conditional logic within a SQL query. Functions like an if-then-else statement.

StarStarStarStar

SELECT

StarStarStarStar

Used to retrieve data from a database. It specifies the columns to be returned in the result set.

StarStarStarStar

IN

StarStarStarStar

Allows you to specify multiple values in a WHERE clause. Works like multiple OR conditions.

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.