Unit 4 Flashcards

1
Q

function is used to tally the number of non-null values of an attribute.

A

COUNT

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

Highest (maximum) value in the table.

A

MAX

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

Lowest (minimum) value in the table.

A

MIN

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

function computes the total sum for any specified attribute, using whatever condition(s) you have imposed.

A

SUM

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

Gets the average value of a numeric column.

A

AVG

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

clause is generally used when you have attribute columns combined with aggregate functions in the SELECT statement. The —— clause is valid only when used in conjunction with one of the SQL aggregate functions

A

GROUP BY

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

clause operates very much like the WHERE clause in the SELECT statement.

A

HAVING

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

a virtual table based on a SELECT query. The query can contain columns, computed columns, aliases, and aggregate functions from one or more tables. The tables on which the view is based are called base tables.

A

View

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

The join condition is generally composed of an equality comparison between the foreign key and the primary key of related tables.

A

Joining Tables

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

may be used to identify the source table from which the data are taken.

A

Alias

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

An alias is especially useful when a table must be joined to itself in a recursive query.

A

Recursive Joins

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

basically means that only those rows where the values are common between the two tables will be retrieved.

A

Inner Join

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

Returns all rows from the left table

A

Left Join

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

Returns all rows from the right table

A

Right join

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

Perfect tool for combining a common list of data – one that excludes duplicate records. The ——-statement combines rows from two or more queries without including duplicate rows.

A

UNION

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

Will keep all the rows from the given queries including the duplicates

A

UNION ALL

15
Q

the ——– statement can be used to combine rows from two queries, returning only the rows that appear in both sets.

A

INTERSECT

16
Q

performs a relational product (also known as the Cartesian product) of two tables.

A

CROSS JOIN

17
Q

Another way to express a join when the tables have no common attribute names is to use the ——- operand. That query will return only the rows that meet the indicated join condition. The join condition will typically include an equality comparison expression of two columns. (The columns may or may not share the same name but, obviously, must have comparable data types.)

A

JOIN ON

18
Q

An ——— returns not only the rows matching the join condition (that is, rows with matching values in the common columns) but also the rows with unmatched values.

A

OUTER JOIN

19
Q

When you want to compare a single attribute to a list of values

A

IN subqueries

20
Q

is a subquery that executes once for each row in the outer query.

A

Correlated Subqueries