mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): cleanup quiz questions for relational database quiz (#60238)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
+17
-16
@@ -33,7 +33,7 @@ A flat file-based system.
|
||||
|
||||
#### --answer--
|
||||
|
||||
A database structured to recognize relations between stored items.
|
||||
A database structured to recognize and manage relationships between data in tables.
|
||||
|
||||
### --question--
|
||||
|
||||
@@ -171,23 +171,23 @@ One-to-Many (1-m)
|
||||
|
||||
#### --text--
|
||||
|
||||
What is the primary purpose of normalization in a relational database?
|
||||
What is a query?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
To increase the speed of data retrieval.
|
||||
A request to remove all data from the database.
|
||||
|
||||
---
|
||||
|
||||
To enforce security measures.
|
||||
A special row for unique values in a database.
|
||||
|
||||
---
|
||||
|
||||
To simplify the database schema.
|
||||
A special column for unique values in a database.
|
||||
|
||||
#### --answer--
|
||||
|
||||
To eliminate data redundancy and ensure data integrity.
|
||||
A request for specific data from the database.
|
||||
|
||||
### --question--
|
||||
|
||||
@@ -369,23 +369,23 @@ Which SQL constraint specifically ensures that a column can contain only unique
|
||||
|
||||
#### --text--
|
||||
|
||||
In a relational database, what is an index used for?
|
||||
Which of the following is NOT an example of a commonly used relational database in the industry?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
To store additional metadata about tables.
|
||||
MySQL
|
||||
|
||||
---
|
||||
|
||||
To ensure unique values in a column.
|
||||
SQLite
|
||||
|
||||
---
|
||||
|
||||
To enforce data integrity.
|
||||
PostgreSQL
|
||||
|
||||
#### --answer--
|
||||
|
||||
To speed up data retrieval.
|
||||
SQLQuery
|
||||
|
||||
### --question--
|
||||
|
||||
@@ -435,21 +435,22 @@ What command will list all tables in the current PostgreSQL database?
|
||||
|
||||
#### --text--
|
||||
|
||||
What is a composite key in a relational database?
|
||||
Which of the following allows you to join a table with itself?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
A key that is derived from another key.
|
||||
`LEFT OUTER JOIN`
|
||||
|
||||
---
|
||||
|
||||
A key that changes frequently based on data updates.
|
||||
`CROSS JOIN`
|
||||
|
||||
---
|
||||
|
||||
A key used exclusively for foreign key relationships.
|
||||
`RIGHT OUTER JOIN`
|
||||
|
||||
#### --answer--
|
||||
|
||||
A key that is composed of multiple columns to uniquely identify a record.
|
||||
`SELF JOIN`
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user