Database Management Systems Quiz Form
Database Management Systems Quiz Form
Which component is primarily responsible for defining the structure of a relational database?
*
Data Definition Language (DDL)
Data Manipulation Language (DML)
Transaction Control Language (TCL)
Data Control Language (DCL)
In a relational table, what is the primary purpose of a primary key?
*
Uniquely identify each row
Sort rows alphabetically
Store multiple values in one column
Encrypt all table data
Which SQL clause filters rows before they are grouped?
*
WHERE
HAVING
ORDER BY
GROUP BY
What does normalization primarily help reduce in a relational database?
*
Data redundancy and update anomalies
Query language complexity
The number of database users
The need for indexes
Which ACID property ensures that a transaction is completed entirely or not at all?
*
Atomicity
Consistency
Isolation
Durability
Which type of SQL join returns only rows with matching values in both tables?
*
INNER JOIN
LEFT JOIN
FULL OUTER JOIN
CROSS JOIN
What is the main purpose of an index in a database?
*
Speed up data retrieval for queries
Replace the table's primary key
Ensure every column contains unique values
Automatically back up the database
Which SQL command permanently saves the changes made by a transaction?
*
COMMIT
ROLLBACK
SAVEPOINT
SELECT
In database design, what does a foreign key represent?
*
A column or set of columns referencing a key in another table
A key used only for encrypting a table
A unique identifier that cannot appear in another table
A backup copy of a table's primary key
Which SQL aggregate function counts the number of rows in a result set?
*
COUNT()
SUM()
AVG()
MAX()
Submit Quiz
Should be Empty: