File Chap 6 Part 2 Flashcards
Unique identifier in each table, Transaction_ID in Transaction Table; CustomerID in Customer Table
Primary Keys
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)
Foreign Keys
Changes a characteristic of an existing table, such as adding a new column.
DDL
ALTER
Adds a new, empty table to the database.
DDL
CREATE
Deletes an existing table and all records it contains.
DDL
DROP
Deletes all the records contained in an existing table but does not delete the table
DDL
TRUNCATE
Adds a new record of data to table.
DML
INSERT
Changes the value of an existing field.
DML
UPDATE
Removes one or more records from a table.
DML
DELETE
The only DQL command. The beginning of all queries written to retrieve data for viewing, copying, or updating
DQL
SELECT