Intermediate SQL Flashcards

1
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
2
Q

defines set of columns that uniquely identify row in a table only if the key values are not null.

A

Unique constraints

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

consists of sequence of query and/or update statement

A

Transaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

a combination of date and time.

A

timestamp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
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
7
Q

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

A

Time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
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
9
Q

Are virtual table formed by a query

A

View

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

Not updatable

A

View

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

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

A

Schema

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

a operation that produces Cartesian product of two tables.

A

Cross Join

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

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

A

Inner Join

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

a collection of database objects

A

Schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
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
16
Q

prohibits the insertion of a null value for the attribute.

17
Q

used to specify wide range of rules for the contents of a table

A

Check Constraints

18
Q

are logical structure create by user

A

Schema Object

19
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

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

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

22
Q

create implicit join clause for you based on the common columns in the two table being join.

A

Natural Join