Databases Flashcards
What is a relational database?
A relational database consists of a set of
relations. A relation has two things in one: a schema and an instance of the schema.
What is a schema?
schema defines the relation and an instance is the content of the relation at a given time.
What does an integrity constraint do?
Imposes a condition that all legal instances of the relations must satisfy.
Three types: domain, primary key, foreign key.
What are domain constraints?
Specify the permissible values for an attribute.
What is a primary key?
Candidate keys designated by database designer. Often used to identify tuples i a relation.
The primary key constraint specifies that the primary key value of a tuple cannot be null and no two tuples
in the relation can have the same value on the primary key
What is a foreign key?
Primary key in another table.
What does JBDC stand for?
Java
DataBase Connectivity
What does the SQL SELECT statement do?
Used to retrive rows in a table.
SELECT Columns FROM Table
What do you use the WHERE clause for?
The WHERE clause can be used with the SELECT statement to specify a search
criteria