Lectures Flashcards
To go over everything in the lectures
What is a database?
A database is a collection of data. For example, a database could have names, addresses, birthdays, and much more.
What is a database server AKA database management server (DBMS)?
The place where the database can be accessed and updated. Without this, we can’t see the data. The DBMS is persistent meaning the information never leaves.
What is the database language?
It’s the language used to communicate with the database. Sometimes more than one language is used but usually just one.
What does integrity mean to the database server?
It means that the information in the server can’t contradict each other. Can’t have two people with the same PK.
What is another term for tables?
Relation which is why we call the table a relational model
What is the order of the rows?
There is no order to the rows. It’s all just one unit.
What is a Primary Key?
A PK is a unique value that identifies individual things. There can be a replication of the PK.
What is a candidate key?
There can only be one PK so when there is another thing that acts as a PK it is called a candidate key.
What is a foreign key?
A foreign key is a value that comes from the PK but is used in another table.
What are the rules of a relational model?
- Ordering of rows doesn’t matter
- Ordering of columns doesn’t matter
- A cell has only one value
- No duplicate rows
What is a cell with repeating values called?
A repeating group.
What is a composite key?
When two values of a column come together to create a PK. Remember: The whole table has to depend on the Composite key, not part of it.
How do you get rid of data redundancy?
By creating a composite PK.
If there is data not dependent on the composite key.
The data should be removed to get rid of data redundancy. (This is the same when there’s just a PK.
What is Null?
When the value is = to nothing not even itself.