Java Games: Flashcards, matching, concentration, and word search.

Creating and Managing Constraints

Match each of the following terms to its correct description.

AB
constraintsused to prevent invalid data entry into tables and are database rules
column level constraintsreferences a single column and are defined in the CREATE TABLE statement as part of the column definition
table level constraintsconstraint definitions that are listed after all table columns have been defined
NOT NULL constraintrequires that every row entered into the table must have a value
Unique constraintsrequires that every value or set of columns be unique or not have duplicate values
Primary Key constraintsa constraint that defines a column or a set of columns that uniquely identify each row in a table they can also be defined on the table or column level
Foriegn key Constraintsalso called referential integirty constraints that form the relationship in a relational database
child tablethe table containing the foreign key
parent tablethe table containing the primary key
The rulebefore you define a foriegn key or referential integrity constraint you must first define the parent primary key
On Delete Cascadeused when defining a foriegn key that enables the dependent rows in the child table to be deleted when a row in the parent table is deleted
On Delete Set NullUsed to apply null values to the child row when a record in the parent table is deleted
Check Constraintexplicitly defines a condition that must be met or specifies a condition that must be true for each row of data
Alter Table statementused to make changes to constraints in existing tables
USER_CONSTRAINTSthat table that houses all of your constraints
constraint_namethe column that keeps track of all constraint names in the USER_ CONSTRAINTS table
CONSTRAINT_TYPEthe column used to keep track of all of the types of constraints in the USER_CONSTRAINT table
DISABLE CONSTRAINTto deactivate an integrity constraint
CASCADE clausedisables dependent integrity constraints
ENABLE constraintsto activate integrityconstraints currently disabled
DROP constraintsremoves a constraint from a table
DROP columnallows users to delete a column from a table



This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities