1. Home
  2. Explore
  3. Computer Science
  4. Database Systems Fundamentals

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Database Systems Fundamentals

  • 51Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Database Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is a database?

Tap to flipClick to flipspace

A collection of related pieces of data that represent information about a real-world enterprise or part of one.

Or swipe the card

51 cards

  1. What is a database?

    A collection of related pieces of data that represent information about a real-world enterprise or part of one.

  2. Why must the data in a database be related?

    The data should concern the same enterprise or domain; for example, a university database would not ordinarily include unrelated weather data.

  3. Why is a database created for a particular enterprise?

    To meet specific data-management needs and support the enterprise’s day-to-day activities.

  4. Why is a database continually updated?

    Changes in the enterprise’s activities and state need to be reflected in its information.

  5. Can one enterprise require more than one database?

    Yes. A sufficiently large enterprise may need multiple databases to capture all of its information.

  6. What kinds of information might an academic university database track?

    Students, faculty, courses, research laboratories, and students’ course enrollments or registrations.

  7. What is the purpose of a university database focused on academic affairs?

    To accurately track the university’s academic activities.

  8. What is the difference between a database and a database management system (DBMS)?

    A database is the collection of related data; a DBMS is software used to create and manage databases.

  9. What is a DBMS?

    A complex, general-purpose software system for creating and managing databases.

  10. Why are databases typically disk-resident?

    They must preserve information over long periods, while primary memory is volatile and loses its contents when applications close or power is lost.

  11. What does it mean for a database to be disk-resident?

    Its data is stored on disk or other secondary storage rather than being kept only in volatile primary memory.

  12. How does a DBMS help users retrieve information?

    It lets users pose queries to the database and obtain the requested information.

  13. What role does SQL play in database querying?

    SQL is a widely recognized standard language for expressing queries to databases.

  14. What does a DBMS aim to do when processing a query?

    Return the query result efficiently, ideally in as little time as possible.

  15. Why is efficient query retrieval important as a database grows?

    With a large volume of data, finding a particular piece of information can take a long time unless retrieval is handled efficiently.

  16. Why do DBMSs support concurrent use?

    They allow many users to access and query the database at the same time instead of serving only one request at a time.

  17. What must a DBMS preserve while handling concurrent users?

    The consistency of the data, according to the requirements of the particular application.

  18. Why are database consistency requirements application-dependent?

    Different applications have different rules about what data states are valid.

  19. What is a key consistency requirement in a railway reservation system?

    A particular seat on a train for a given journey segment must not be allotted to two people.

  20. What kinds of system failures can threaten database availability?

    Storage failures, catastrophic events that damage a server, and crashes of programs or processes working with the database.

  21. Why must a DBMS account for disk failure?

    Disk failure can make stored data unavailable, so the system must take measures to protect access to the data.

  22. How can geographic replication help protect a database?

    Keeping a copy of the database in a geographically different location can preserve data if the original site is destroyed.

  23. What is the risk when a process crashes after making only part of its intended database changes?

    Partial changes may leave the database inconsistent or reflect work that was never completed.

  24. What should happen to incomplete database changes when an operation crashes?

    The system should ensure that incomplete changes are not improperly reflected in the database.

  25. What is the difference between catastrophic failures and process crashes?

    Catastrophic failures damage the physical system or site; process crashes occur when a program or operation fails while working with the database.

  26. Why is implementing database management with custom file-processing programs difficult?

    Programmers would have to build and maintain consistency, flexible querying, concurrent access, and failure recovery themselves.

  27. Why can storing the same fact in multiple files cause problems?

    When the fact changes, every copy must be updated; otherwise, the copies can disagree.

  28. Is data redundancy a problem only because it uses extra storage?

    No. A major problem is keeping duplicated values consistent when they change.

  29. How can independent applications create inconsistent student data?

    If applications store the same student information separately, a change made in one place may not be made in the others.

  30. Why do hard-coded record structures make file-based programs difficult to modify?

    A structural change may require changing the program’s definitions, recompiling it, and producing a new executable.

  31. Why is it impractical to write a separate program for every possible query?

    Users can ask many different queries, and it is difficult to anticipate and prepare a custom program for each one.

  32. What additional challenge arises when custom programs must handle concurrent database access?

    The programmers must coordinate simultaneous operations while preserving consistency, a difficult responsibility comparable to managing system-level resources.

  33. What is metadata in a database system?

    Information describing the data’s structure, such as record types and how information is organized.

  34. Where does a DBMS maintain metadata?

    In a system catalog, separately from the programs that handle the data.

  35. How does separating data from metadata support program–data independence?

    Programs can consult catalog information about data structures instead of having those structures fixed directly in the programs.

  36. How can a DBMS respond to a change in a database’s structure?

    The structural description can be changed in the catalog, which programs can consult when operating on the data.

  37. Why is a DBMS considered general-purpose software?

    The same DBMS can manage different databases, such as hospital records, staff accounts, or student academic records.

  38. How does a DBMS use a catalog when working with a database?

    It consults the catalog to learn how the database’s information is structured, then uses that description to handle the data.

  39. How does SQL make ad hoc query formulation easier?

    Users can express queries in a standard language rather than requiring a custom program for each information request.

  40. What theoretical ideas are associated with the foundations of SQL querying?

    Tuple relational calculus and relational algebra.

  41. How does a DBMS affect the work of database designers?

    It handles much of the storage organization, query processing, and concurrent-user management, allowing designers to focus on the database’s logical design.

  42. What is a data model?

    A collection of conceptual tools for describing a database at a particular level of abstraction.

  43. What is a conceptual-level data model used for?

    It provides a high-level description of a database, especially useful for understanding and gathering requirements.

  44. What is a representational data model used for?

    It describes a database’s logical representation without detailing its physical storage.

  45. What is a physical data model used for?

    It describes implementation details such as record formats, file structures, and external data structures.

  46. How do conceptual, representational, and physical data models differ?

    Conceptual models describe requirements at a high level; representational models describe logical organization; physical models describe storage and implementation details.

  47. What are the main concepts in the entity–relationship model?

    Entities, relationships, and attributes.

  48. Why is the entity–relationship model useful when gathering requirements?

    Its general concepts are accessible to nontechnical stakeholders and support discussion of what information the database should track.

  49. In a university database, what are examples of entities?

    Students, faculty members, courses, and departments.

  50. In an entity–relationship model, what does a relationship represent?

    An association between entities.

  51. What are examples of attributes of a student entity?

    Name, student ID or roll number, and address.

Card 1 of 51
Card 1 of 51

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent