ThatQuiz Test Library Take this test now
Relational database
Contributed by: Bedford
  • 1. A relational database is a type of database that stores and provides access to data points that are related to one another. The data points are organized into tables, with each table consisting of rows and columns. One of the key features of a relational database is the ability to establish relationships between different tables based on common fields, allowing for efficient querying and retrieval of data. This structure helps ensure data integrity and consistency, as changes made to one table will automatically reflect in related tables. Relational databases use structured query language (SQL) to manage and manipulate data, making them a powerful tool for handling complex datasets in various applications, such as e-commerce, finance, and customer relationship management systems.

    What is a primary key in a relational database?
A) A key that allows access to all records in a table.
B) A key used for encryption of data.
C) A key that is not indexed.
D) A unique identifier for each record in a table.
  • 2. What is SQL?
A) Structured Query Language used to manage and query relational databases.
B) Syntax Query Language for text documents.
C) Simple Query Language for non-relational databases.
D) Structured Query Logic for manipulating files.
  • 3. What does ACID stand for in database transactions?
A) Access Control In Database.
B) Automated Computation and Integration Delivery.
C) All Columns Indexed Directly.
D) Atomicity, Consistency, Isolation, Durability.
  • 4. Which of the following is an example of a relational database management system (RDBMS)?
A) MySQL
B) Elasticsearch
C) Redis
D) MongoDB
  • 5. What is a view in a relational database?
A) A virtual table that presents data from one or more tables based on a query.
B) A data type used for storing images.
C) An index created on a column for faster retrieval.
D) A table with no records.
  • 6. Which SQL keyword is used to retrieve specific rows from a table?
A) FILTER
B) GROUP
C) SELECT
D) SORT
  • 7. What is a data dictionary in a relational database context?
A) A set of rules for defining relationships.
B) A collection of metadata that describes the data and structure of the database.
C) A database index for quick data retrieval.
D) A table containing data records.
  • 8. Which SQL clause is used to filter rows that meet a specific condition?
A) WHERE
B) SELECT
C) FILTER
D) GROUP BY
  • 9. What is a composite key in a relational database?
A) A primary key for composite data types.
B) A key that consists of multiple columns to uniquely identify a record.
C) A key that is stored in multiple tables.
D) A key that is not indexed.
  • 10. What is a database schema in the context of relational databases?
A) A software tool for database management.
B) A type of encryption algorithm.
C) The physical storage location of the database files.
D) A logical design that represents the structure of the database.
  • 11. Which SQL command is used to add new data to a table?
A) UPDATE
B) INSERT
C) ADD
D) MERGE
  • 12. Which SQL statement is used to modify data in a table?
A) UPDATE
B) ALTER
C) MODIFY
D) CHANGE
  • 13. What is the purpose of an index in a relational database?
A) To combine multiple tables into one.
B) To define relationships between tables.
C) To improve the speed of data retrieval operations.
D) To encrypt sensitive data in the database.
  • 14. What is a join in the context of relational databases?
A) A method to combine rows from two or more tables based on a related column.
B) A method for filtering data.
C) An operation to pivot table data.
D) A process of creating new records in a table.
  • 15. Which SQL function is used to find the highest value in a column?
A) FIRST
B) MAXIMUM
C) MAX
D) TOP
  • 16. What is a subquery in SQL?
A) A query that returns all records in a table.
B) A query that selects a random subset of data.
C) A query that retrieves data from multiple tables.
D) A query nested within another query.
  • 17. Which type of join in SQL returns only the rows where there is a match in both tables?
A) OUTER JOIN
B) RIGHT JOIN
C) INNER JOIN
D) LEFT JOIN
  • 18. Which SQL statement is used to remove data from a table?
A) DELETE.
B) INSERT INTO.
C) UPDATE.
D) SELECT.
  • 19. Which command is used to remove a table from a database?
A) INSERT
B) ALTER
C) DROP
D) UPDATE
Created with That Quiz — where a math practice test is always one click away.