Basic Retrieval Queries

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

1/11

flashcard set

Earn XP

Description and Tags

Flashcards covering basic retrieval queries, SQL syntax, and aggregate functions.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

SELECT statement

For retrieving information from a database. Includes SELECT, FROM, and WHERE clauses.

2
New cards

Select * from …

A list of attribute names whose values are to be retrieved by the query.

3
New cards

Relation List

A list of the relation names required to process the query.

4
New cards

Select condition

A conditional (Boolean) expression that identifies the tuples to be retrieved by the query.

5
New cards

WHERE

Used to specify a condition for row selection in a query.

6
New cards

GROUP BY clause

Used to divide a relation into subsets of tuples based on grouping attribute(s).

7
New cards

HAVING clause

Provides a condition to select or reject an entire group; applied after the WHERE clause.

8
New cards

IN

Used for comparison of a value with a set of values.

9
New cards

Aliasing

Alternative relation names used to refer to the same relation multiple times in a query.

10
New cards

Asterisk (*)

Retrieves all the attribute values of the selected tuples.

11
New cards

DISTINCT

Keyword used in the SELECT clause to eliminate duplicate tuples in query results.

12
New cards

Aggregate Functions

COUNT, SUM, MAX, MIN, and AVG