IM: Select, Clauses, and Operators

0.0(0)
studied byStudied by 3 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

SELECT

SQL QUERY: Used to list the contents of a table.

2
New cards
SQL Clauses

Various segments of a query that help filter data, such as SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY, INSERT, UPDATE, DELETE, and JOIN

3
New cards

WHERE

SQL QUERY: Used to select partial table contents by placing restrictions on the rows to be included in the output.

4
New cards

GROUP BY

SQL QUERY: Used to collect data across multiple records and group the results by one or more columns.

5
New cards

HAVING

SQL QUERY: Specifies conditions that filter group results, following the GROUP BY clause.

6
New cards

ORDER BY

SQL QUERY: Used to sort data in ascending or descending order based on one or more columns.

7
New cards
DISTINCT

SQL QUERY: Used with SELECT to eliminate duplicate records and fetch only unique records.

8
New cards
Aggregate Functions
Functions that group multiple rows' values to form a single meaningful value, such as COUNT, MIN, MAX, SUM, and AVG.
9
New cards
Arithmetic Operators
Operators used for mathematical operations in SQL, including addition, subtraction, multiplication, division, and modulus.
10
New cards
Comparison Operators
Operators used to compare two values, resulting in TRUE, FALSE, or UNKNOWN.
11
New cards
Logical Operators
Operators that return TRUE or FALSE values by combining one or more boolean values.
12
New cards
INNER JOIN
Combines rows from two tables based on a common field, returning all rows where there is a match.
13
New cards
LEFT JOIN
Returns all rows from the left table and matching rows from the right table, filling with NULLs where there is no match.
14
New cards
RIGHT JOIN
Returns all rows from the right table and matching rows from the left table.
15
New cards
FULL JOIN
Combines the results of both LEFT JOIN and RIGHT JOIN, including rows where there are no matches.
16
New cards
SELF JOIN
Joins a table to itself as if it were two separate tables.
17
New cards
EQUI JOIN
A join that uses equality as the comparison operator.
18
New cards
UNION
Combines results of two or more SELECT statements while eliminating duplicate rows.
19
New cards
UNION ALL
Combines results of two or more SELECT statements, including duplicates.
20
New cards
INTERSECT
Returns records that are common to both SELECT statements.
21
New cards
MINUS

Returns records from the first set that are not in the second set.