Which SQL command is used to modify existing records within a database table?
Correct answer: D
The UPDATE command modifies the values of existing records in a database table.
0 correct out of 0 attempted (0%)
Correct answer: D
The UPDATE command modifies the values of existing records in a database table.
Correct answer: A
The DELETE command removes existing records from a database table.
Correct answer: A
The CREATE TABLE command defines and creates a new table structure in a database.
Correct answer: A
The DROP TABLE command permanently deletes a table, along with its structure and all its data.
Correct answer: C
The ALTER TABLE command modifies an existing table's structure, such as adding, changing, or dropping columns.
Correct answer: A
A primary key uniquely identifies each record in a table and must be unique and non-null.
Correct answer: A
A foreign key links two tables together by referencing the primary key of another table.
Correct answer: B
A candidate key is any column (or set of columns) that could uniquely identify records, from which a primary key is chosen.
Correct answer: D
A composite key uses a combination of multiple columns together to uniquely identify a record.
Correct answer: B
Normalization organizes database structure to reduce redundancy and maintain data integrity.
Correct answer: B
Denormalization deliberately adds redundancy to a database, typically to improve query performance.
Correct answer: C
An index improves data retrieval speed by allowing the database to find records more quickly, at some storage/update cost.
Correct answer: A
A view is a virtual table based on a stored query; it doesn't store data itself but presents data from underlying tables.
Correct answer: C
A trigger automatically executes a defined action in response to specific database events, such as inserts or updates.
Correct answer: D
A schema defines the overall structural blueprint of a database, including its tables, fields, and relationships.
Correct answer: C
ACID stands for Atomicity, Consistency, Isolation, and Durability — the properties ensuring reliable database transactions.
Correct answer: C
Atomicity ensures a transaction is all-or-nothing — it either completes entirely or has no effect at all.
Correct answer: A
Consistency ensures a transaction brings the database from one valid state to another, respecting all rules and constraints.
Correct answer: B
Isolation ensures that concurrent transactions execute independently, without unintended interference between them.
Correct answer: D
Durability guarantees that committed transaction changes persist permanently, even after a system crash or failure.
Correct answer: D
NoSQL databases offer flexible, non-relational data storage models suited to large-scale or unstructured data.
Correct answer: B
Document databases, like MongoDB, store data as flexible, JSON-like documents rather than rigid tables.
Correct answer: B
Key-value stores, like Redis, organize data as simple pairs of unique keys and their associated values.
Correct answer: C
Column-family stores, like Cassandra, organize data by columns, optimized for scalability across large datasets.
Correct answer: C
Graph databases, like Neo4j, are optimized for storing and querying complex relationships between data entities.