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

Part B Unit 3 CH 2,3

Uploaded by

souravsingla020
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)
34 views5 pages

Part B Unit 3 CH 2,3

Uploaded by

souravsingla020
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

Part B: Unit 3:Database Management System using LibreOffice Base

Chapter 2: Starting with Libre Office Base

Q1. Differentiate between:


(a) Memo and Varchar data type
Ans.
Memo Varchar

It is used to store long alphanumeric


It is used to store small alphanumeric data.
data. for example Summary of a
for example Name, Address etc.
book, review of a movie etc.

It can store text data up to 64,000


It can store text data up to 255 characters.
characters.

(b) Number and Decimal data type


Ans.
Number Decimal

It is used to store integers of


It is used to store decimal values.
any length.

for example 457, 342 for example 23.56, 458.29

(c) Design View and Datasheet view of a table


Ans.
Design View Datasheet View

This view is used to design the structure of This view is used to enter the values in
the table. the table.

In this view, we can add or delete the In this view, we can add or delete the
fields rows

Q3. Name the menu items present on the Base User Interface.
Ans. Menu items present on the Base User Interface are:
1. File
2. Edit
3. View
4. Insert
5. Tools
6. Window
7. Help

Q4. Label the components – Title Bar, Database Pane, Tasks Pane,
Status Bar of the LibreOffice Base User Interface.
Ans.
Q5. How can we define a primary key in a table?
Ans. A Primary key is a field which is unique for each and every record in a
table. To make a particular field as the primary key, place the mouse pointer
before the field name, and right click. A pop up menu appears and Select the
Primary Key option. A key icon appears before the field name indicating that it is
a primary key.

Q6. Write steps to sort the table in descending order of primary key.
Ans. Steps to sort the table in descending order of primary key are:
1. Open the table in datasheet view and select the primary key on which you
want to sort.
2. From the tool bar click Sort Descending icon to sort in descending order.
3. The table will be sorted in descending order of primary key.

Q7. What is the use of navigation box with respect to tables in a


database?
Ans. Navigation box is used to navigate (move) through various records of the
table.
The various components of Navigation Box are as follows:
Record Selector Box – This is the text box where the currently active record
number is displayed. We may enter the record number that we want to see in
this text box.
Navigation Buttons – These are used to scroll vertically in the table.
 Press |◄ button to move to the first record.
 Press ► and ◄ to move to the next and previous records respectively.
 Press ►| button to move to the last record.
Part B: Unit 3:Database Management System using LibreOffice Base
Chapter 3: Working with Multiple Tables
Q1. Give any two advantages of relating a table in a database.
Ans. Two advantages of relating a table in a database are:
1. A relationship can help prevent data redundancy.
2. Creating relationships between tables restricts the user from entering
invalid data in the referenced fields.
3. Any updation in the master table is automatically reflected in the
transaction tables.
Q2. How is redundancy or inconsistency controlled in a database? Explain
with an example.

Ans. Redundancy or inconsistency is controlled in a database by setting the


relationship between tables which help in checking that neither the records are
duplicated nor there is variable data value for a particular field in two or more
tables. After creating relationship between table, then adding or updating a record
in one table reflect the changes in all the related tables.
Q3. Define referential integrity. Who maintains referential integrity in a
database?
Ans. Referential integrity refers to the relationship between tables. Referential
integrity is used to maintain accuracy and consistency of data in a
relationship. LibreOffice Base will allow only that corresponding record to be
entered in the transaction table which already exists in the master table.
DBMS maintains referential integrity in a database.
Q4. Differentiate between one to one relationship and one to many
relationship. Give suitable examples to explain your answer.

Ans. 1. 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.

Table 1: Student _Details


Adm_No. Name Class DOB
1001 Mampi 10 12/3/2004
1110 Harnoor 9 2/5/2005
1134 Urjit 10 7/7/2003

Table 2: Student_Result
Roll_No. Adm_No. Class Percentage
1 1001 10 80
2 1110 9 73
One-to-One Relationship

2. 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. For example

One-to-Many Relationship

Q5. Explain many to many relationship with an example.

Ans. Many-to-Many relationship: In this type of relationship, there will be multiple


records in the master table that correspond to multiple records in the transaction
table as well.
For example, a teacher in a school may hold multiple responsibilities such as class
teacher, an activity incharge or examination in-charge. For each responsibility the
teacher might be attached with multiple students.
Many-to-Many Relationship

You might also like