Intermediate SQL Flashcards

1
Q

a join operation that allows you to specify an explicit join clause.

A

Inner Join

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

It preserves the unmatched rows from the first (left) table, joining them with a NULL row in the shape of the second (right) table.

A

Left Outer Join

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

– It preserves the unmatched rows from the first (right) table, joining them with a NULL in the shape of the first (left) table.

A

Right Outer Join

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

operation that produces the Cartesian product of two tables.

A

Cross Join

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

a join operation that creates an implicit join clause for you based on the common columns in the two tables being join.

A

Natural Join

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

Are virtual tables formed by a query

A

View

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

A dictionary that you can use until you drop it.

A

View

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

Not updatable.

A

View

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

consists of a sequence of query and/or update statements.

A

Transaction

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

ensure that changes made to the database by authorized users do not result in a loss of data consistency.

A

Integrity Constraints

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

prohibits the insertion of a null value for the attribute.

A

Not Null

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

defines a set of columns that uniquely identify rows in a table only if all the key values are not NULL.

A

Unique

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

ensure that a value that appears in one relation (the referencing relation) for a give set of attributes also appears for a certain set of attributes in other relation (the referenced relation)

A

Referential integrity constraints

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

can specify that if a delete or update action on the referenced relation violates the constraint, then, instead of rejecting the action, the system must take steps to change the tuple in the referencing relation to restore constraint.

A

Foreign key clause

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

a calendar date containing a (four-digit) year, month and day of the month.

A

Date

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

the time of day, in hours, minutes and seconds.

17
Q

a combination of date and time.

18
Q

a collection of database objects.

19
Q

Owned by a database user and has the same name as that user.

20
Q

a data structure that allows the database system to find those tuples in the relation that have a specified value for that attribute efficiently, without scanning through all the tuples of the relation.

21
Q

used to confer authorization

22
Q

to revoke authorization

23
Q

a set or group of privileges that can be granted to users or another role.