0% found this document useful (0 votes)
649 views5 pages

X - CH-10 Working With Multiple Tables

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
649 views5 pages

X - CH-10 Working With Multiple Tables

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Unit 3: Database Management System using LibreOffice Base

Chapter-10: Working with Multiple Tables

A. Multiple choice questions


1. Which of the following actions can be performed once the tables are created
in a database?
(a) Add a field in a table
(b) Rename a table
(c) Delete a table
(d) All of the above
2. Which of the following is checked by a DBMS?
(a) Redundancy
(b) Inconsistency
(c) Both (a) and (b)
(d) Neither (a) nor (b)

3. Which of the following is required to set a relationship between the two


tables?
(a) Both the tables must be in different databases
(b) Both the tables must have a common field
(c) Both the tables must have the same name
(d) Both tables must be stored in documents folder only.

4. If a record is added in a master table, which of the following is NOT true for
transaction table
(a) The record in the master table is called the master record
(b) The corresponding record in transaction table can only be entered
once
(c) The record in the transaction table is called the transaction record.
(d) It is possible to add a record in the master table

5. Which type of relationship exists between a student and the subjects studied
by him/her?
(a) One-to-one (b) One-to-many
(c) Many-to-many (d) All of the above

6. Consider the following tables. Which type of relationship can be established


between the two tables?
(a) One-to-one (b) One-to-many
(c) Many-to-many (d) None of the above
7. Which of the following menus contains the Relationship option?
(a) Edit (b) File
(c) Tools (d) View

8. The list of tables to be added is displayed in the __________ dialog box in


the Relationship Screen.
(a) Add Tables (b) Add Databases
(c) Both (a) and (b) (d) Neither (a) nor (b)

9. In the relationship design screen, the relationship between the two tables is
done using __________ operation.
(a) Click (b) Double Click
(c) Drag and Drop (d) Right click

10.Which of the following is NOT an option that can be used to maintain


referential integrity in a database?
(a) No Action
(b) Set NULL
(c) Set Default
(d) Set Value

B. State whether the given statements are True or False


1. Redundancy is preferred in a database. FALSE
2. In a table, a record for a particular entity should not be repeated. TRUE
3. A single field should always have only one data value. FALSE
4. If a table is edited, the records already entered in it are deleted. FALSE
5. The record in master table should be entered before the TRUE
corresponding record is entered in the transaction table.
6. In one-to-many relationship, one specific record of the master TRUE
table has more than one corresponding records in the related
transaction table.
7. The Relationship option is present in the Widows menu. FALSE
8. In a database, the referential integrity is maintained by the user. FALSE
9. A relationship is always set between the tables based on a TRUE
common field.
10. If the master record is deleted, the transaction records will always FALSE
be deleted.

C. Fill in the blanks


1. A table to be edited is displayed in Design view.
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 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 relationship 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 synch.
7. Creating relationship between tables restricts the user from entering invalid
data in the referenced fields.
8. Data integrity is maintained by DBMS.
9. A relationship between customers and products is an example of many-to-
many relationship.
10.The Relation design window is used to set relationships between the tables.

D. Answer the given questions


1. Give any two advantages of relating a table in a database.
Ans. Two advantages of relating a table in a database are:
i. A relationship can help prevent data redundancy.
ii. Creating relationships between tables restricts the user from entering invalid
data in the referenced fields.
iii. Any updation in the master table is automatically reflected in the transaction
tables.

2. How is redundancy or inconsistency controlled in a database? Explain


with an example.
Ans. Relations are set up between the tables to control data redundancy and
inconsistency. This helps by checking that neither the records are duplicated
nor there is variable data value for a particular field in two or more tables. If
you set up relations between tables, then adding or updating a record in one
table reflect the changes in all the related tables.
3. Define referential integrity. Who maintains referential integrity in a
database?
Ans. According to the principle of referential integrity, no unmatched foreign
key values should exist in the database. That means if a record, say
Admission No as 1001 is not present or deleted in the master table
(Student_Details) of Student database, then there should be no record with
Admission no as 1001 in the transaction table (Student_Result) as well.

The integrity of data will be managed by the DBMS. LibreOffice Base will
allow only that corresponding record to be entered in the transaction table
which already exists in the master table.

4. Differentiate between one to one relationship, one to many


relationship and many to many relationship. Give suitable examples to
explain your answer.
Ans. One-to-One relationship: In this type of relationship, one specific
record of a master table has one and only one corresponding record in the
transaction table.

One-to-Many relationship: in this type of relationship, one specific record of


the master table has more than one corresponding records in the related
transaction table.
Many-to-Many relationship: in In this type of relationship, there will be multiple
records in the master table that correspond to multiple records in the transaction
table.

You might also like