CH. 7 & CH. 8 Flashcards

1
Q

an alternative name for a column or table in a SQL statement.

A

ALIAS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the SQL logical operator used to link multiple conditional expressions in a WHERE or HAVING clause. It requires that all conditional expressions evaluate to true.

A

AND

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

a SQL aggregate function that outputs the mean average for a specified column or expression.

A

AVG

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

in SQL, a special comparison operator used to check whether a value is within a range of specified values.

A

BETWEEN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A nested ordering sequence for a set of rows, such as a list in which all last names are alphabetically ordered and, within the last names, all first names are ordered.

A

Cascading Order Sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A SQL aggregate function that outputs the number of rows containing noto null values for a given column or expression, sometimes used in conjunction with the DISTINCT clause.

A

COUNT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A relational operation that yields a new table composed of only the rows with common values in their common attribute(s).

A

NATURAL JOIN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A relational algebra join operation that produces a table in which all unmatched pairs are retained; unmatched values in the related table are left null.

A

OUTER JOIN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A SQL clause that produces only a list of values that are different from one another.

A

DISTINCT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In SQL, a comparison operator that checks whether a subquery returns any rows.

A

EXISTS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A SQL clause that specifies the table or tables form which data is to be retrieved.

A

FROM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A SQL clause used to create frequency distributions when combined with any of the aggregate functions in a SELECT statement.

A

GROUP BY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A clause applied to the output of a GROUP BY operation to restrict selected rows.

A

HAVING

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In SQL, a comparison operator used to check whether a value is among a list of specified values. .

A

IN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In SQL a comparison operator used to check whether an attribute has a value.

A

IS NULL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In SQL, a comparison operator used to check whether an attribute’s text value matches a specified string pattern.

A

LIKE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A SQL aggregate function that yields the maximum attribute value in a given column.

A

MAX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

A SQL aggregate function that yields the minimum attribute value in a given column.

A

MIN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

A SQL logical operator that negates a given predicate.

A

NOT

20
Q

The SQL logical operator used to link multiple conditional expressions in a WHERE or HAVING clause. It requires only one of the conditional expressions to be true.

A

OR

21
Q

A SQL clause that is useful for ordering the output of a SELECT query.

A

ORDER BY

22
Q

A query that joins a table to itself.

A

Recursive Query

23
Q

Basic algebraic rules that specify the order in which operations are performed. EXAMPLE: operations within parentheses are executed first so in 2+(3*5), the multiplication is calculated first.

A

Rules of Precedence

24
Q

In relational algebra, an operator used to select a subset of rows. AKA RESTRICT. (2) a SQL command that yields the values of all rows or a subset of rows in a table. The ___ statement is used to retrieve data from tables.

A

SELECT

25
Q

A query that is embedded inside another query. AKA nested query or inner query.

A

Subquery

26
Q

A SQL aggregate function that yields the sum of all values for a given column or expression.

A

SUM

27
Q

A SQL clause that adds conditional restrictions to a SELECT statement that limit the rows returned by the query.

A

WHERE

28
Q

A symbol that can be used as a general substitute for (1) all columns in a table (*) when used in an attribute list of a SELECT statement or (2) zero or more characters in a SQL LIKE clause condition (% and _)

A

Wildcard Character

29
Q

is used to add, modifiy, or delete columns in an existing table.

A

ALTER TABLE COMMAND

30
Q

Permanently saves data changes

A

COMMIT

31
Q

A SQL command that restores the database table contents to the condition that existed after the last COMMIT statement

A

ROLLBACK

32
Q

Creates a new table in user’s database schema

A

CREATE TABLE

33
Q

Creates and index for a table

A

CREATE INDEX

34
Q

Creates a dynamic subset of rows and columns from one or more tables

A

CREATE VIEW

35
Q

Deletes one or more rows from the table

A

DELETE

36
Q

A SQL command used to delete database objects such as tables, views, indexes, and users

A

DROP TABLE

37
Q

A SQL command that allows the insertion of one or more data rows into a table

A

INSERT

38
Q

A SQL command that allows attribute values to be changed in one or more rows of a table

A

UPDATE

39
Q

A SQL command used to delete database objects such as tables, views, indexes, and users

A

DROP TABLE

40
Q

creates a dynamic subset of rows and columns from one or more tables

A

CREATE VIEW

41
Q

creates a new table based on a query in the user’s database schema

A

CREATE TABLE AS

42
Q

set of SQL statements stored in the database catalog. Is executed or fired whenever an event associated with a table occurs e.g., insert. Update or delete

A

TRIGGER

43
Q

Similar to triggers, can be used to encapsulate and represent business transactions.

A

STORED PROCEDURES

44
Q

the result set of a stored query on the data. It is a virtual table based on a SELECT query.

A

VIEW

45
Q

is a method of inserting inline SQL statements or queries into the code of a programming language, which is known as a host language(in this case SQL)

A

Embedded SQL