CHAPTER 8 Database Management System
CHAPTER 8 Database Management System
B. True or False:
4. The data values for all the fields related to a person or object are called a record.
5. All the field values that are eligible to be the primary key are the candidate keys for that table.
(a) Database: A structured collection of data stored and accessed electronically, usually managed by a
DBMS.
(b) Data Redundancy: The unnecessary repetition of data in a database, which can lead to inefficiency
and storage issues.
(c) Report: A formatted and organized presentation of data retrieved from a database, often used for
analysis or decision-making.
(b) Form vs. Query: A form is a user-friendly interface for entering or displaying data, while a query is
a request made to the database to retrieve specific data.
(c) Network vs. Hierarchical Data Model: In a network data model, each record can have multiple
parent and child records, while in a hierarchical data model, records have a tree-like structure with
a single parent for each child.
4. Consider the table given below and answer the questions that follow:
5. (a) Fields in the given table: Book_Id, Book Name, Author Name, Price, Publisher
(b) Primary key: Book_Id
(c) Is there any alternate key? Yes, Book Name can be considered an alternate key.
(d) Difference between primary key and foreign key:
A primary key uniquely identifies records in a table, whereas a foreign key is a field in one table that
links to the primary key of another table. For example, if another table "Borrowers" references the
"Library" table, the "Book_Id" from the "Library" table could be a foreign key in the "Borrowers" table.
1. (c) Float
2. (b) False
3. (c) Both date and time
4. (b) It is free and open-source software
5. (c) Both a and b
6. (a) Database
7. (b) Ctrl+O
8. (a) 2
9. (a) Tab
10. (d) All of the above
B. True or False:
3. A Boolean data type can only have two values, typically true/false or yes/no. False
4. LibreOffice Base does not support storing audio files directly. True
5. The properties of a field change based on the data type selected. True
7. The End key or specific navigation buttons are used to move to the last record. False
10. The Sort dialog box can sort data in both ascending and descending order. False
1. A data type refers to the type of data that will be stored in that particular field.
6. Status Bar on the Base Interface Window displays information about the type of view of the object
in the database.
7. A key icon appears before the field name indicating that it is a primary key.
9. The black pointing arrow just before the field name in a table is called selection pointer.
10. The process of arranging the records in particular order on any field is called sorting.
1. Differentiate between:
o Varchar: Used to store smaller text strings with variable lengths, such as names or
addresses.
o Decimal: Stores precise decimal numbers with a specified number of decimal places.
o Datasheet View: Displays the table in a spreadsheet-like format for data entry and viewing.
o Database Pane: Shows the different database objects (Tables, Queries, Forms, Reports).
o Tasks Pane: Displays the actions related to the selected object (e.g., Create Table, Run
Query).
o Status Bar: Displays information about the current view or object status.
o Right-click on the field and choose Primary Key from the context menu, or click the Primary
Key icon on the toolbar.
o Click on the Sort Descending button in the toolbar, or right-click on the column heading and
select Sort Descending.
The navigation box allows users to move between different records in a table. It provides buttons for
navigating to the first, previous, next, and last records, as well as options to add new records or jump
to a specific record by number.
B. True or False:
3. A field should store only one data value per record. True
4. Editing a table does not delete the records already entered. False
6. In a one-to-many relationship, a master record can have multiple corresponding transaction records.
True
7. The Relationship option is in the Tools menu, not the Windows menu. False
8. Referential integrity is usually maintained by the database, not manually by the user. False
9. Relationships are generally set between tables based on common fields. True
10. Deleting a master record does not always lead to the deletion of transaction records; it depends on
the referential integrity settings. False.
2. The most important prerequisite for setting a relationship between the two tables is that there must
be a common field between them.
3. In a one-to-one relationship, one specific record of a master table has one and only one corresponding
record in the transaction table.
4. One-to-many is one of the most common types of relationships between the tables in a database.
5. A record being entered in a transaction table must always exist in a master table.
6. The principle of referential integrity helps prevent missing data by keeping deleted data from getting
out of sync.
7. Creating relationships between tables restricts the user from entering invalid data in the referenced
fields.
10. The relationship window is used to set relationships between the tables.
o Efficient Data Retrieval: It allows for more efficient data retrieval through relationships (e.g.,
joining tables based on a common field).
Redundancy and inconsistency are controlled through normalization, where data is divided into
related tables, reducing duplication. For example, instead of storing customer information repeatedly
in every order, a separate Customer table is created, and orders are linked to the customer using a
Customer ID.
Referential integrity ensures that relationships between tables remain consistent. It prevents users
from adding records to a related table if there is no corresponding record in the master table, or from
deleting a record in a master table that has dependent records in a related table. The database
management system (DBMS) maintains referential integrity.
4. Differentiate between one-to-one and one-to-many relationships. Give suitable examples to explain
your answer.
o One-to-One Relationship: Each record in Table A relates to only one record in Table B. For
example, each employee might have one employee ID card.
o One-to-Many Relationship: Each record in Table A can relate to multiple records in Table B.
For example, one teacher can teach many classes, but each class is taught by one teacher.
A many-to-many relationship occurs when multiple records in Table A relate to multiple records in
Table B. For example, in a university system, a student can enroll in multiple courses, and each course
can have many students enrolled. To represent this relationship, a junction table is used, such as
Student_Course that links students and courses with their respective IDs.
1. (c) Query
2. (d) All of the above
3. (b) Design View
4. (b) Two
5. (d) A query once created cannot be edited
6. (c) F5
7. (d) All of the above
8. (a) >
9. (a) >
10. (a) Add Table
11. (c) Summarizing
B. True or False:
4. LibreOffice Base provides two ways to create a query (Design View and Wizard). True
7. Queries can be used to display the average value of a numerical field. True
10. The visible checkbox is selected by default in the Query Design window. True
11. Queries created using the wizard can be edited in Design View. True
2. The result of the query is displayed in table form with field names in columns.
6. The conditions to filter the records are set in the criteria row.
7. When a table is selected in a Query wizard, the corresponding fields are displayed in the Available
fields list box.
8. The result of the query can be displayed in ascending or descending order of any particular field of
the table.
10. The last step of the Query wizard displays the entire structure of the query.
12. To edit any query, right-click on the edit icon of the query that has to be edited.
13. In the Alias row of the Query Design grid, we can type the column heading that will be displayed
instead of the field name when we run the query.
3. What all information is seen in the overview (last step) of the Query wizard?
The overview shows the structure of the query, including selected fields, sorting order, criteria, and
any aliases applied.
4. What is the use of the Alias row in the Design grid of the Query Design window?
The Alias row allows users to give a custom name to a field, making the output of the query more
understandable.
5. Name any four mathematical functions that can be applied to numerical data in a query.
o Sum
o Average
o Minimum
o Maximum
o Query Wizard
o Design View
o SQL Mode
B. True or False:
2. Users can choose the layout of a form while creating it. True
3. You do not have to add all the fields from the table to the form. False
4. There are two ways to create a form: using the wizard and design view. True
11. A report can display data in formats other than rows and columns. False
12. A report can include the date and time of generation. True
3. A label is a piece of text that specifies the data that should be entered in the field value text box.
5. A tool tip is a small piece of text that is displayed when the mouse pointer is placed on a particular
control on the form.
7. A layout is the manner in which labels, field values, titles, etc., will be displayed in the report.
8. The option to insert date and time in the report is present in the Insert menu.
10. A dynamic type of report changes automatically as the field values in the base table or query
change.
3. Which tool on the Forms Record toolbar is used to insert text on the form?
The Label tool on the Forms Controls toolbar is used to insert text on the form.
o Form Wizard
o Design View
o Forms Controls toolbar: Used to design and modify the layout of the form, allowing users to
add controls like text boxes, labels, and buttons.
o Records toolbar: Used to navigate records within a form, allowing users to add, delete, or
move between records.