Lesson 5 Flashcards

1
Q

CREATE TABLE

A

SQL statement that is used to create a new table in a database.

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

ALTER TABLE

A

Used to alter or change the structure of existing database table.

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

Constraint

A

A rule for data in the database.

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

PRIMARY KEY (PK)

A

The column that uniquely identifies each row in the table.

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

FOREIGN KEY (FK)

A

Used to relate or link two tables together.

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

Data Types

A

Defines what value the column can store.

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

nvarchar

A

Variable width that hold string and unicode data.

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

Int

A

Holds whole numbers.

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

Decimal (p,s)

A

Holds numbers with decimals.

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

Date

A

Stores only date data.

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

NULL

A

Constraint that indicates the data column can be empty of data.

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

NOT NULL

A

Constraint that insures data is always entered in a column.

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

DROP TABLE

A

Statement to remove a table, and all the data rows from the database.

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

Debugging

A

Making corrections to remove bugs or errors in the code.

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