0% found this document useful (0 votes)
5 views

DBMS CW

Uploaded by

chandanapriya.83
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

DBMS CW

Uploaded by

chandanapriya.83
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Unit 3: Database Management System using LibreOffice Base

Session 1: Introduction to Database Management System

1. Define the terms


(a) Database
(b) Data redundancy
(c) Report

Ans:
Database:
 A database is a collection of logically related data items Stored in
an organised manner.
 The information being stored in a database can be added, modified,
deleted or displayed according to the requirements of the user.

Data redundancy:
In the event of requiring the same data field in several tables the
data field might get repeated in number of tables. This is called as data
redundancy. This can be reduced by using DBMS tools.

Report:
The output of a query may be displayed in the form of reports. The
usual result of the query is in the form of rows and columns. But if we
want the report to be formal and in proper layout, then we can use the
Reports feature of RDBMS.

2. Give one point of difference between


(a) Data and Information
(b) Form and Query
(c) Network and hierarchical data model

Ans:
(a)Data and Information:
Data Information

Data is unorganised and unrefined Information comprises


facts processed, organised data
presented in a meaningful
context

Data is an individual unit that Information is a group of data


contains raw materials which do that collectively carries a logical
not carry any specific meaning. meaning.

Data doesn’t depend on Information depends on data.


information.

Raw data alone is insufficient for Information is sufficient for


decision making decision making

An example of data is a student’s The average score of a class is


test score the information derived from the
given data.

(b)Form and Query:


Forms Query
A form is a feature of a database A query is used to retrieve the
using which we can enter data in a desired information from the
table in an easy and user friendly database.
manner.
A form consists of text boxes, The data set matching the given
labels, radio buttons, list boxes, criterion is retrieved from the
check boxes etc. that give a user table and displayed on the screen.
friendly interface for entering
data. The data entered through the
forms is stored in tables.

(c) Network and hierarchical data model:


Hierarchical Data Model Network Data Model
In this model the data is organized In this model, multiple records are
into a tree like structure. linked to same master file.
All these records are linked to It is also considered as an inverted
each other at various levels, tree where master is present in the
thereby forming a hierarchy. bottom of the tree and the
branches contain information
linked to the master.
3. Give any four advantages of a DBMS.
Ans :
advantages of DBMS:
• Organised Storage – The data in the database is stored in an
organised manner, so that retrieval of the required data is fast and
accurate.
• Data Analysis – A database helps in analysis of data based on certain
criteria. It is easy to find out maximum or minimum value, average or
mean using a database.
• Data Sharing – If the same data set is required for different
applications then the database can be shared with other applications.
Hence using a database means making once and using it repeatedly for
multiple applications.
• Minimal Data Redundancy – In the event of requiring the same data
field in several tables the data field might get repeated in number of
tables. This is called as data redundancy. This can be reduced by using
DBMS tools.
• Data Consistency – By minimising data redundancy, chances of
inconsistent data being stored is reduced. For example, it should not
happen that the name of the student is changed in one table and not in
another. Such inconsistency is reduced by using a DBMS.
Session 2: Starting with LibreOffice Base

1. Differentiate between:
(a) Memo and Varchar data type
(b) Number and Decimal data type
(c) Design View and Datasheet view of a table
Ans:

(a) Memo and Varchar are data types used in database management
systems. Memo is specific to Microsoft Access and stores alphanumeric
data up to about one gigabyte. Varchar is used in SQL databases and
can store alphanumeric data up to a defined limit, usually 255
characters.
(b) The Number and Decimal data types both store numerical data, but
Decimal data type includes decimal places, making it ideal for financial
calculations or any calculation requiring precision. Number data type,
on the other hand, is used to store integers or whole numbers.
(c)The Design View and Datasheet View of a table present different
ways of looking at the same data. The Datasheet view allows you to see
the data in rows and columns, similar to a spreadsheet. The Design
view, however, allows you to see and modify the structure of your table
and to set field properties.

2. Name the menu items present on the Base User Interface,


Ans : Base User Interface consists of seven menu items – File, Edit,
View, Insert, Tools, Window and Help.

3. How can we define a primary key in a table?


Ans:
A primary key is a field that uniquely identifies a row 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. Select
the Primary Key option from pop up menu. A key icon appears before
the field name indicating that it is a primary key.

4. Write steps to sort the table in descending order of primary key.


Ans:
Step 1: Open the table in datasheet view and select the field on which
you want to sort.

Step 2: From the tool bar click Sort Descending icon if the table
has to be sorted in descending order of selected field. The table will be
sorted in the descending order

5. What is the use of navigation box with respect to tables in a database?


Ans:
The various components of Navigation Box are as follows:
• Record Selector Box – T his 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.

You might also like