← All Web Development Flashcard Decks

Database Basics Flashcards

7 cards from real Web Development practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Database Basics flashcards as text
  1. What is an index in a database used for?

    Answer: To speed up data retrieval

    An index is a data structure that improves the speed of data retrieval operations at the cost of additional storage and write overhead.

  2. Which SQL command is used to remove all rows from a table quickly without logging individual row deletions?

    Answer: TRUNCATE

    TRUNCATE removes all rows from a table much faster than DELETE because it doesn't log individual row deletions.

  3. In the context of databases, what is a 'view'?

    Answer: A virtual table based on a stored query

    A view is a virtual table defined by a stored SQL query; it doesn't store data itself but presents data from underlying tables.

  4. What does ACID stand for in database transactions?

    Answer: Atomicity, Consistency, Isolation, Durability

    ACID stands for Atomicity, Consistency, Isolation, and Durability — the four properties that guarantee reliable database transactions.

  5. Which SQL aggregate function returns the number of rows that match a condition?

    Answer: COUNT()

    COUNT() returns the number of rows that match the specified criteria in a query.

  6. What is referential integrity in a relational database?

    Answer: Ensuring foreign key values match existing primary key values

    Referential integrity ensures that a foreign key value in one table always corresponds to an existing primary key value in the referenced table.

  7. Which type of database relationship requires an intermediary (junction) table?

    Answer: Many-to-many

    A many-to-many relationship requires a junction (bridge) table with foreign keys pointing to both related tables.

How this page was made: written with AI tools. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy