In a relational database table, what does a row represent, and what does a column represent?
Relational Database Fundamentals Online Quiz Questions
Use this free practice quiz with 10 questions to review Relational Database Fundamentals, test your knowledge, and prepare for your next test or exam.
What does a table’s schema describe?
- A
Only the records stored in the table
- B
The relationships between every database in a system
- C
The table’s columns, keys, and rules
- D
The order in which rows were inserted
Which statement correctly describes a primary key?
- A
A primary key uniquely identifies a row and can consist of one or multiple columns.
- B
A primary key is always a single column containing text.
- C
A primary key allows multiple rows to share the same identifying value.
- D
A primary key stores a complete copy of a related table.
One customer can have many orders. In this one-to-many relationship, where is the customer’s key stored as a foreign key?
- A
The
customerstable stores a copy of every order as a primary key. - B
A separate junction table must store every customer–order pairing.
- C
Each order stores a list of all customers that refer to it.
- D
The
orderstable stores the customer’s key as a foreign key.
An order can contain many products, and a product can appear in many orders. How can this many-to-many relationship be represented?
- A
Store every product only as a column in the customers table.
- B
Use a junction table with a row for each order–product pairing.
- C
Put all order and product details into one primary-key column.
- D
Create a one-to-one relationship between orders and products.
What does referential integrity require for a non-null foreign-key reference?
- A
Every foreign key must contain a different value from every primary key.
- B
Every reference must be null whenever its table has a primary key.
- C
A non-null foreign-key reference must match a key in the referenced table.
- D
A foreign key must repeat all the columns of the referenced table.
Why do keys help tables refer to one another?
- A
They let tables refer to one another without repeating all their data.
- B
They ensure every table has exactly the same columns.
- C
They automatically combine all tables into a single table.
- D
They prevent a database from storing multiple records.
Which description defines a one-to-one relationship between tables?
- A
Each row in one table must correspond to many rows in the other.
- B
Many rows in each table must correspond to every row in the other.
- C
Each row must correspond to exactly one row in the other table.
- D
Each row in one table corresponds to at most one row in the other.
How does the relational model organize data?
- A
It organizes all data as a single ordered list without tables.
- B
It organizes data into tables, also called relations.
- C
It stores each record only as a relationship between columns.
- D
It represents each entity as a single database rule.
In the example order_items table, which columns together form the primary key?
- A
quantityalone - B
product_idalone - C
The combination of
order_idandproduct_id - D
order_dateandquantity
Related study packs and tools
AWS Cloud Concepts
Practice cloud benefits, deployment models, scalability, elasticity and AWS Cloud concepts.
12 study toolsAWS Cloud Practitioner Practice Test
Comprehensive AWS Certified Cloud Practitioner practice covering cloud concepts, security, AWS services and pricing.
15 study toolsAWS Cloud Technology and Services: Container Services
Focused study of containers, orchestration and container service use cases.
27 study toolsAWS Cloud Technology and Services: EC2 Compute
Focused study of instances, instance types, scaling and compute use cases.
12 study toolsAWS Cloud Technology and Services: S3 Storage
Focused study of objects, buckets, storage classes and storage use cases.
12 study toolsAWS Cloud Technology and Services: Serverless Services
Focused study of event-driven functions and serverless application concepts.
15 study tools