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

Study methods

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

Database Design Fundamentals

  • 119Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Database Foundations
A database is something that stores
.

119 questions

  1. 1
    A database is something that stores
    _____
    .
    Hint

    Think of anything that can be recorded or assigned a value.

    Answer

    data

  2. 2
    In database design, data should be understood broadly as anything that can be
    _____
    .
    Hint

    The term includes customer lists, transactions, usernames, and weather events.

    Answer

    stored

  3. 3
    Most platforms, programs, and applications rely on a back-end
    _____
    to store information.
    Hint

    It acts as the organized storage system behind an application.

    Answer

    database

  4. 4
    Database design is primarily concerned with properly structuring
    _____
    .
    Hint

    The goal is to organize stored information efficiently.

    Answer

    data

  5. 5
    The course presents database design as a general discipline rather than design for one specific database management
    _____
    .
    Hint

    Examples include MySQL, Oracle, and SQL Server.

    Answer

    system

  6. 6
    A relational database stores data in
    _____
    .
    Hint

    Think of organized structures made of rows and columns.

    Answer

    tables

  7. 7
    A database should generally be designed conceptually before it is programmed on a
    _____
    .
    Hint

    The design process may use diagrams, plans, or a design program first.

    Answer

    computer

  8. 8
    The front end is what the
    _____
    sees, while the back end operates behind the scenes.
    Hint

    Consider the person interacting with a website or application.

    Answer

    user

  9. 9
    A website remembers a registered username and password because those values are stored in a
    _____
    .
    Hint

    The system checks the stored values when the user logs in again.

    Answer

    database

  10. 10
    A database can use queries to find employees who meet conditions such as a minimum tenure and a limited number of missed
    _____
    .
    Hint

    The example uses an employee attendance condition.

    Answer

    days

  11. 11
    A database can give different users access to different information, providing an important
    _____
    feature.
    Hint

    This prevents ordinary users from seeing hidden or administrative data.

    Answer

    security

  12. 12
    A mathematical relation is a connection between
    _____
    of data.
    Hint

    The concept comes from combining mathematical collections.

    Answer

    sets

  13. 13
    An entity is anything that we store
    _____
    about.
    Hint

    Examples include a person, customer, order, or employee.

    Answer

    data

  14. 14
    An attribute is something that we store about an
    _____
    .
    Hint

    A person's name, address, and phone number are examples.

    Answer

    entity

  15. 15
    For a person entity, name, username, password, and hair color are examples of
    _____
    .
    Hint

    They describe characteristics of the person.

    Answer

    attributes

  16. 16
    An attribute type is a category such as username or password, while a specific value is an actual
    _____
    such as Caleb Curry.
    Hint

    The category becomes concrete when a particular value is supplied.

    Answer

    example

  17. 17
    A row contains all attribute values for a specific
    _____
    .
    Hint

    One row might contain all information about one user.

    Answer

    entity

  18. 18
    A column contains all the values for a specific attribute
    _____
    .
    Hint

    A username column contains usernames for many entities.

    Answer

    type

  19. 19
    Another mathematical name for a database row is a
    _____
    .
    Hint

    It begins with the sound 'tup' and refers to one record.

    Answer

    tuple

  20. 20
    The entity type is the category of entities being stored, such as
    _____
    for a table containing only users.
    Hint

    Caleb and Billy can both be individual examples of this category.

    Answer

    user

  21. 21
    The attribute types of a user table might include name, username, and
    _____
    .
    Hint

    It is another piece of account information.

    Answer

    password

  22. 22
    A relation is another name for a database
    _____
    .
    Hint

    It is the physical structure that organizes rows and columns.

    Answer

    table

  23. 23
    A file is another name for a table, a record is another name for a row, and a field is another name for a
    _____
    .
    Hint

    A field stores values for one attribute category.

    Answer

    column

  24. 24
    A value is the information entered into a specific
    _____
    .
    Hint

    Examples include a person's name or phone number.

    Answer

    column

  25. 25
    An entry is another name for a database
    _____
    .
    Hint

    It is produced when data is entered into a table.

    Answer

    row

  26. 26
    A database management system is commonly abbreviated
    _____
    .
    Hint

    The abbreviation uses the initial letters of the three words.

    Answer

    DBMS

  27. 27
    A relational database management system is abbreviated
    _____
    .
    Hint

    It adds an initial letter to DBMS.

    Answer

    RDBMS

  28. 28
    A DBMS allows users to run a
    _____
    to search and manipulate stored data.
    Hint

    It is similar to searching data and returning useful results.

    Answer

    query

  29. 29
    An RDBMS is a specific type of DBMS designed to work with
    _____
    databases.
    Hint

    It works with tables and connections among them.

    Answer

    relational

  30. 30
    A DBMS can change the surface appearance of stored data using a
    _____
    mechanism.
    Hint

    Different users can see different selected columns without changing storage.

    Answer

    view

  31. 31
    A view changes the presentation of data but does not change the internal
    _____
    of the database.
    Hint

    The underlying tables and stored columns remain the same.

    Answer

    structure

  32. 32
    A view can act as a security layer by limiting which information a
    _____
    can access.
    Hint

    Different roles may receive different views of the same database.

    Answer

    user

  33. 33
    A transaction either completes entirely or is canceled, a property often described as all-or-
    _____
    operation.
    Hint

    If a multi-step transfer fails, no partial result is saved.

    Answer

    nothing

  34. 34
    SQL is a programming language used to communicate with a
    _____
    .
    Hint

    It acts as a mediator between human instructions and stored data.

    Answer

    database

  35. 35
    SQL stands for Structured Query
    _____
    .
    Hint

    It is the final word in the name of SQL.

    Answer

    Language

  36. 36
    SQL is a general language whose core concepts remain similar across database
    _____
    .
    Hint

    MySQL and SQL Server may vary in syntax, but their general SQL ideas remain related.

    Answer

    vendors

  37. 37
    The SQL category used to define database structure is Data Definition
    _____
    .
    Hint

    Its abbreviation is DDL.

    Answer

    Language

  38. 38
    The SQL category used to insert, update, delete, and search values is Data Manipulation
    _____
    .
    Hint

    Its abbreviation is DML.

    Answer

    Language

  39. 39
    The SQL command used as an example for creating tables is
    _____
    .
    Hint

    It is a DDL command whose name describes its action.

    Answer

    CREATE

  40. 40
    The SQL command used to change values without changing the table structure is
    _____
    .
    Hint

    It changes existing attribute values.

    Answer

    UPDATE

  41. 41
    A SQL
    _____
    combines related data from separate tables into a new view.
    Hint

    It can combine a user's name with items they purchased.

    Answer

    join

  42. 42
    A SQL keyword is a reserved word that the database already recognizes as having a defined
    _____
    .
    Hint

    SELECT is an example of a reserved word.

    Answer

    meaning

  43. 43
    A naming convention is a repeated pattern used to create
    _____
    .
    Hint

    It helps different people understand table and column names.

    Answer

    consistency

  44. 44
    A database is well designed when its data has high data
    _____
    .
    Hint

    The data should be correct, current, and properly connected.

    Answer

    integrity

  45. 45
    A database design problem occurs when related tables become disconnected and one table is left
    _____
    after another is updated.
    Hint

    The outdated table no longer matches the current data.

    Answer

    behind

  46. 46
    The three broad database schemas are conceptual, logical, and
    _____
    .
    Hint

    It is the most implementation-specific level.

    Answer

    physical

  47. 47
    The conceptual schema focuses primarily on how
    _____
    is related.
    Hint

    It is the general brainstorming level before technical limitations.

    Answer

    data

  48. 48
    The logical schema plans the structure of tables, columns, data types, and
    _____
    .
    Hint

    It turns general concepts into a more specific database plan.

    Answer

    relationships

  49. 49
    The physical schema addresses the specific database management system, server, access method, and actual
    _____
    .
    Hint

    This is the stage where the design becomes a working database.

    Answer

    implementation

  50. 50
    Database design is a method of separating information over multiple
    _____
    rather than placing everything in one huge table.
    Hint

    This reduces duplication and update problems.

    Answer

    tables

  51. 51
    Repeated information that can cause inconsistent updates is called an update
    _____
    .
    Hint

    It occurs when one copy of data changes while another copy does not.

    Answer

    anomaly

  52. 52
    An archive of historical orders may remain unchanged because it is intended to preserve historical
    _____
    .
    Hint

    Not all old data is erroneous; some data is deliberately retained.

    Answer

    records

  53. 53
    The three main types of data integrity are entity, referential, and
    _____
    integrity.
    Hint

    This type concerns acceptable values for a column.

    Answer

    domain

  54. 54
    Entity integrity requires entities in a table to be
    _____
    .
    Hint

    An ID can distinguish two people with the same name and phone number.

    Answer

    unique

  55. 55
    Referential integrity preserves valid
    _____
    between related tables.
    Hint

    A comment should continue to point to the user who posted it.

    Answer

    connections

  56. 56
    Domain integrity restricts a column to its acceptable range of
    _____
    .
    Hint

    A phone-number column should contain appropriate digits rather than a word such as cake.

    Answer

    values

  57. 57
    A data type can restrict a character column to a maximum number of
    _____
    .
    Hint

    A column limited to 20 characters cannot store an arbitrarily long string.

    Answer

    characters

  58. 58
    A foreign key constraint can remove a user's comments when that user is deleted by using a cascading
    _____
    .
    Hint

    The child records are removed when the parent record is removed.

    Answer

    delete

  59. 59
    A missing value in a database field is represented by
    _____
    .
    Hint

    It means that no value is present, not that the value is zero.

    Answer

    NULL

  60. 60
    An anomaly is an error or unexpected result that departs from what is considered
    _____
    .
    Hint

    Updating ten columns when only one should change is an example.

    Answer

    normal

  61. 61
    A one-to-one relationship means that one entity is connected to exactly one other
    _____
    .
    Hint

    A person and their intended unique social security number illustrate the pattern.

    Answer

    entity

  62. 62
    A one-to-many relationship allows one entity to connect to multiple entities, while each entity on the many side connects back to only
    _____
    entity.
    Hint

    A user can write many comments, but each comment has one owner.

    Answer

    one

  63. 63
    A many-to-many relationship allows multiple entities on each side to connect to multiple entities on the other
    _____
    .
    Hint

    Students can take many classes, and classes can contain many students.

    Answer

    side

  64. 64
    A class and a student commonly form a
    _____
    -to-many relationship because one class has many students and one student can take many classes.
    Hint

    The same relationship type applies in both directions.

    Answer

    many

  65. 65
    A one-to-many relationship is usually stored with the foreign key on the
    _____
    side.
    Hint

    Each child record points back to its one parent.

    Answer

    many

  66. 66
    The table that a foreign key points to is called the
    _____
    table.
    Hint

    The related child inherits identifying information from it.

    Answer

    parent

  67. 67
    The table containing the foreign key is called the
    _____
    table.
    Hint

    It points back to the parent.

    Answer

    child

  68. 68
    A many-to-many relationship is implemented by splitting it into two
    _____
    -to-many relationships.
    Hint

    An additional table connects the two original tables.

    Answer

    one

  69. 69
    The table used to connect the two sides of a many-to-many relationship is called an intermediary or
    _____
    table.
    Hint

    It links students to classes or authors to books.

    Answer

    junction

  70. 70
    In an intermediary table for students and classes, the combination of student ID and class ID identifies one unique
    _____
    .
    Hint

    Each row represents one student's enrollment in one class.

    Answer

    connection

  71. 71
    A key is used to enforce
    _____
    within a table.
    Hint

    It distinguishes one row or entity from another.

    Answer

    uniqueness

  72. 72
    A primary key must be unique, never changing, and never
    _____
    .
    Hint

    Every record must have a value that identifies it.

    Answer

    NULL

  73. 73
    A foreign key is a reference to a
    _____
    key.
    Hint

    It connects a child table to a parent table.

    Answer

    primary

  74. 74
    A natural key is a value already stored in the table that has real-world
    _____
    .
    Hint

    A username or email may naturally identify an account.

    Answer

    meaning

  75. 75
    A surrogate key is an added identifier, often a number, with no real-world
    _____
    .
    Hint

    A generated user ID such as 72 identifies a row but does not describe the person.

    Answer

    meaning

  76. 76
    A super key is any number of columns that forces every row to be
    _____
    .
    Hint

    It may contain more columns than are actually necessary.

    Answer

    unique

  77. 77
    A candidate key is the smallest number of columns needed to force every row to be
    _____
    .
    Hint

    It is a minimal version of a super key.

    Answer

    unique

  78. 78
    The candidate key selected as the main identifier for a table is the
    _____
    key.
    Hint

    Other candidate keys not selected may be called alternate keys.

    Answer

    primary

  79. 79
    Candidate keys that are not selected as the primary key are called
    _____
    keys.
    Hint

    They remain possible unique identifiers but are not the main one.

    Answer

    alternate

  80. 80
    A simple key consists of one column, while a composite key consists of
    _____
    or more columns.
    Hint

    The word composite indicates that multiple columns are combined.

    Answer

    two

  81. 81
    A compound key is a multi-column key in which the columns are also
    _____
    themselves.
    Hint

    An intermediary table may use two foreign keys together as its compound key.

    Answer

    keys

  82. 82
    A foreign key constraint protects
    _____
    integrity between related tables.
    Hint

    It prevents a child from pointing to a nonexistent parent.

    Answer

    referential

  83. 83
    Normalization is a series of steps used to create a better database
    _____
    .
    Hint

    It reduces anomalies and improves integrity.

    Answer

    design

  84. 84
    The three main normal forms are first, second, and
    _____
    normal form.
    Hint

    It is the final form in the basic sequence presented.

    Answer

    third

  85. 85
    A database in third normal form is also in first and
    _____
    normal form.
    Hint

    The normal forms are cumulative steps.

    Answer

    second

  86. 86
    First normal form requires values to be
    _____
    .
    Hint

    Each field should store one individual thing rather than a list.

    Answer

    atomic

  87. 87
    A full address stored in one field may violate first normal form because it contains street, city, state, and other
    _____
    .
    Hint

    The solution is to separate address parts into columns.

    Answer

    components

  88. 88
    Multiple email addresses should be stored as separate rows rather than as multiple values in one
    _____
    .
    Hint

    One email field should contain one email address.

    Answer

    field

  89. 89
    Second normal form removes partial
    _____
    .
    Hint

    A partial dependency occurs when a column depends on only part of a composite key.

    Answer

    dependencies

  90. 90
    A partial dependency can occur only when the primary key contains
    _____
    than one column.
    Hint

    A single-column key cannot have a column depend on only part of itself.

    Answer

    more

  91. 91
    In a book-author intermediary table, an author's position in a book depends on both the author and the
    _____
    .
    Hint

    The same author may have different positions in different books.

    Answer

    book

  92. 92
    Third normal form removes
    _____
    dependencies.
    Hint

    This occurs when a column depends on another non-key column that depends on the primary key.

    Answer

    transitive

  93. 93
    A star meaning that depends on a star rating is an example of a
    _____
    dependency when the rating itself depends on the review ID.
    Hint

    The dependency passes through an intermediate column.

    Answer

    transitive

  94. 94
    An index helps a database find data faster, like the index of a
    _____
    .
    Hint

    It points to the location of a topic instead of requiring a complete search.

    Answer

    book

  95. 95
    Searching every row in a table without using an index is called a table
    _____
    .
    Hint

    The database checks rows one by one.

    Answer

    scan

  96. 96
    Searching through an index to locate data is called an index
    _____
    .
    Hint

    It goes directly toward the relevant location instead of checking every row.

    Answer

    seek

  97. 97
    A nonclustered index stores references to data separately from the actual
    _____
    .
    Hint

    It points to where the data is located.

    Answer

    data

  98. 98
    A clustered index physically reorganizes the actual
    _____
    .
    Hint

    A phone book ordered alphabetically illustrates this type of organization.

    Answer

    data

  99. 99
    A table can have multiple nonclustered indexes but only one
    _____
    index.
    Hint

    Only one physical ordering can exist at a time.

    Answer

    clustered

  100. 100
    The primary key commonly receives a clustered index because it is frequently used to locate
    _____
    .
    Hint

    It identifies individual rows efficiently.

    Answer

    records

  101. 101
    An index can speed up queries but increases maintenance because the index must also be updated when the underlying data
    _____
    .
    Hint

    The lookup structure must remain synchronized with the table.

    Answer

    changes

  102. 102
    A data type specifies the kind of information that a column can
    _____
    .
    Hint

    It may restrict values to text, numbers, or dates.

    Answer

    store

  103. 103
    The three broad categories of data types are string, numeric, and
    _____
    .
    Hint

    This category includes dates, times, and timestamps.

    Answer

    date

  104. 104
    A fixed-length character type is commonly called
    _____
    .
    Hint

    It is contrasted with variable character storage.

    Answer

    CHAR

  105. 105
    A variable-length character type is commonly called
    _____
    .
    Hint

    Its name combines variable and character.

    Answer

    VARCHAR

  106. 106
    A numeric type that stores only whole numbers is an
    _____
    .
    Hint

    Examples include 512 and negative 52 without decimal portions.

    Answer

    integer

  107. 107
    An unsigned numeric value cannot be
    _____
    .
    Hint

    Unsigned values use only zero and positive values.

    Answer

    negative

  108. 108
    A timestamp records the exact moment when an event such as a row insertion or transaction
    _____
    .
    Hint

    It establishes when something was created or done.

    Answer

    occurred

  109. 109
    A join presents normalized data in a more user-friendly
    _____
    .
    Hint

    It can replace numeric foreign keys with names.

    Answer

    form

  110. 110
    A join changes the presentation of data without changing the database
    _____
    .
    Hint

    The underlying tables remain normalized.

    Answer

    structure

  111. 111
    An inner join returns rows where the joined records exist in
    _____
    tables.
    Hint

    It returns the intersection of the two tables.

    Answer

    both

  112. 112
    A left outer join returns all rows from the
    _____
    table and matching rows from the other table.
    Hint

    The table named first in the relevant query is treated as the left table.

    Answer

    left

  113. 113
    A right outer join returns all rows from the
    _____
    table and matching rows from the other table.
    Hint

    It is the directional counterpart of a left outer join.

    Answer

    right

  114. 114
    A full outer join is intended to preserve rows from
    _____
    sides of the join.
    Hint

    It includes unmatched rows from the left and right tables.

    Answer

    both

  115. 115
    When joining three tables, the result of the first join can be treated as a temporary result set before joining the
    _____
    table.
    Hint

    The operation proceeds step by step across the tables.

    Answer

    third

  116. 116
    The SQL keyword used to assign an alias is
    _____
    .
    Hint

    It introduces a nickname for a table or column.

    Answer

    AS

  117. 117
    A table alias is especially useful when a table is joined with
    _____
    .
    Hint

    A self join needs two names for the same table.

    Answer

    itself

  118. 118
    A self join joins a table with a second logical copy of the same
    _____
    .
    Hint

    Referral chains can connect one user record to another user record.

    Answer

    table

  119. 119
    A referral column that points to another user in the same user table is a foreign key referencing the table's own
    _____
    key.
    Hint

    The referenced identifier uniquely identifies the other user.

    Answer

    primary

1 of 119
Question 1 of 119

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent