File Chap 6 Part 2 Flashcards

1
Q

Unique identifier in each table, Transaction_ID in Transaction Table; CustomerID in Customer Table

A

Primary Keys

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

Exist to create relationships or links between two

are not required in every table
BUT – if they are present they must match their related Primary Keys. (referential integrity)

A

Foreign Keys

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

Changes a characteristic of an existing table, such as adding a new column.

DDL

A

ALTER

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

Adds a new, empty table to the database.

DDL

A

CREATE

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

Deletes an existing table and all records it contains.

DDL

A

DROP

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

Deletes all the records contained in an existing table but does not delete the table

DDL

A

TRUNCATE

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

Adds a new record of data to table.

DML

A

INSERT

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

Changes the value of an existing field.

DML

A

UPDATE

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

Removes one or more records from a table.

DML

A

DELETE

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

The only DQL command. The beginning of all queries written to retrieve data for viewing, copying, or updating

DQL

A

SELECT

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