Lesson 12: Maximize Database Integrity and Performance Flashcards

1
Q

Constraints

A

Defined rules specified for the data in a database table

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

DEFAULT Constraint

A

Used to provide a default value for a column. If no other value is specified, the default value will be added to the column in a new row.

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

CHECK Column Constraint

A

Used to limit the value range that can be placed in a column. Only certain values can be added to the column.

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

CHECK Table Constraint

A

A CHECK constraint on a table limits the values based on values in other columns in the row.

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

NULL Constraint

A

The column default is to allow NULL values. A row can be added to the table without a value in the column.

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

NOT NULL Constraint

A

A rule that enforces a column to not accept NULL values. A row cannot be added to the table without a value in the column.

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

Primary Key (PK) Constraint

A

The unique column in a table.

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

Index

A

An index is used to help the query process performance when retrieving data.

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