Chapter 3 DB Flashcards
(45 cards)
What is a relational database?
A relational database is a type of database that stores data in tables, which are structured in rows and columns.
True or False: In a relational database, each table can have a unique primary key.
True
What does SQL stand for?
Structured Query Language
Fill in the blank: A __________ is a set of related data stored in a table.
relation
Which of the following is NOT a characteristic of a relational database? (a) Data is organized in tables (b) Data is stored in files (c) Relationships are established using keys
b
What is a primary key?
A primary key is a unique identifier for a record in a table.
What is a foreign key?
A foreign key is a field in one table that uniquely identifies a row of another table.
True or False: A relational database allows for data redundancy.
False
What is normalization in the context of relational databases?
Normalization is the process of organizing data to minimize redundancy and improve data integrity.
Fill in the blank: The process of combining data from multiple tables is known as __________.
joining
What does the term ‘schema’ refer to in a relational database?
A schema is the structure that defines the organization of data, including tables, fields, and relationships.
Which SQL command is used to retrieve data from a database?
SELECT
What is a composite key?
A composite key is a combination of two or more columns in a table that can uniquely identify a record.
True or False: A table can have multiple primary keys.
False
What is the purpose of indexing in a relational database?
Indexing improves the speed of data retrieval operations on a database table.
Fill in the blank: The __________ operation is used to add new records to a table.
INSERT
What are constraints in a relational database?
Constraints are rules enforced on data columns to ensure data integrity.
What SQL command is used to update existing records?
UPDATE
True or False: A relational database can only store one type of data.
False
What is the difference between a primary key and a unique key?
A primary key uniquely identifies a record and cannot contain null values, while a unique key also enforces uniqueness but can contain null values.
What does the term ‘referential integrity’ mean?
Referential integrity ensures that relationships between tables remain consistent.
Fill in the blank: The __________ clause is used to filter records in SQL.
WHERE
What is a view in a relational database?
A view is a virtual table that is based on the result of a SELECT query.
What SQL command is used to delete records from a table?
DELETE