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

Class 10 IT - Data Base Notes

The document provides an overview of Database Management Systems (DBMS) using LibreOffice Base, explaining key concepts such as data, information, databases, and the advantages of using DBMS. It details various database models, terminologies, and components of RDBMS, including tables, forms, queries, and reports. Additionally, it covers data types and the user interface of LibreOffice Base, along with assessment questions to test understanding of the material.

Uploaded by

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

Class 10 IT - Data Base Notes

The document provides an overview of Database Management Systems (DBMS) using LibreOffice Base, explaining key concepts such as data, information, databases, and the advantages of using DBMS. It details various database models, terminologies, and components of RDBMS, including tables, forms, queries, and reports. Additionally, it covers data types and the user interface of LibreOffice Base, along with assessment questions to test understanding of the material.

Uploaded by

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

Unit 3.

Database Management System using LibreOffice Base


Chapter-1 (8)
Q1- What is Data and Information?
Ans. Data-The raw facts constitutes data. The facts may be related to any person, place, activity or
things. It may be stored in the form of text, graphics, audio or video. This data must be processed by
any computing machine in a proper way to generate the useful and meaningful information. The
examples of data are marks scored by the students, weights, prices, costs, numbers of items sold,
employee names, product names, addresses, tax codes, registration, marks etc.
Data can be organized into two types:
• Flat File: Data is stored in a single table. Usually suitable for less amount of data.
• Relational: Data is stored in multiple tables and the tables are linked using a common field.
Relational is suitable for medium to large amount of data.
Information is the processed or organized form of data. If data is not correct or accurate, the
information obtained by processing such data may not be correct. For example, marks obtained by
students and their roll numbers is the data, while the report card/sheet is the information.
Q2) What do you understand by ‘Database’?
Ans: 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
Q3) Define Database Servers
Database servers are dedicated computers that hold the actual databases and run only the DBMS and
related software
Q4) Define DBMS.
Ans: The software that is used to create, update and retrieve data is known as database management
system (DBMS). It facilitates planning and maintenance of the database for the user. Some of the
common examples of DBMS are MS Access, Open Office or LibreOffice Base, Oracle, MySQL,
Ingress, PostgreSQL, Mongo DB. In this book, we will use LibreOffice Base.
Q5) Enlist the advantages of DBMS.
Ans: The Advantages of DBMS includes:
 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.

Created by Pankaj Kashyap Sir | Page - 1


 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.
 Data Security: Validates the data entered and provide restrictions on unauthorized access to
the database.
 Backup and recovery of the data provides prevention from failure or system crash.
 Increases Efficiency – Since database tables are properly organised, saving, reading and
searching data can be carried out efficiently.
 Increases Accuracy – Since data redundancy and inconsistency can be minimised in a
database, the data is retrieved accurately from the database.
 The privacy rule in a database states that only the authorized users can access a database
according to its privacy constraints. To secure data levels are set in the database and a user
can only view the data which is allowed to be seen.

Q6) Define RDBMS.


Ans: Relational Database Management System(RDBMS) is based on a relational model of data that
is stored in databases in separate tables and they are related to the use of a common column. Data
can be accessed easily from the relational database using Structured Query Language (SQL).

Q7) What is the Data model and its type?


Ans. A database can be designed in different ways depending on the data being stored. This
structure of database is known as data model that describes the manner in which data will be stored
and retrieved. There are different data models such as hierarchical data model, network data model
and relational data model.

i. Hierarchical Data Model in this model the data is


organized into a tree like structure. The data is stored in
the form of records. A record is a collection of fields
and its data values. All these records are linked to each
other at various levels, thereby forming a hierarchy.

ii. Network Data Model In this model, multiple


records are linked to same master file. It is also
considered as an inverted tree where master is
present in the bottom of the tree and the branches
contain information linked to the master.

Created by Pankaj Kashyap Sir | Page - 2


iii. Relational Data Model This data model is based on the principle of setting relationships
between two or more tables of the same database. It is the most commonly used database model.
Relation Database Terminologies:- Entity, Table, Field, Record, Data Value, Primary Key, Foreign
Key, Candidate Key, Alternate Key.
Q8). Relation Database Terminologies.
i. Entity – It is a real world object about which information is to be stored in a database. Like a
‘Student’ in a school, have his admission number, roll number, name, father’s name, date of
birth, city etc. These details associated with the entity are called attributes. These attributes are
represented in the form of columns.

ii. Field or Columns or attributes – A field is the smallest entity in the database. A collection of
fields makes a record, a collection of records makes a table and a collection of tables make a
database. Fields are individual record characteristics and are presented as columns within a table.
For Example, admission number, roll number, name, father’s name, date of birth, city etc., can be
attributes of the entity Employee.

iii.Table – A table is a collection of logically related records. It is organized as a set of columns,


and can have any number of rows.

iv.Data Values – Data values are the raw data represented in numeric, character or alphanumeric
form. Examples of data values are ‘123’, ‘30’ ‘Rohan’, ‘Rai Bahadur, “10-12-2018”,
“Chandigarh”,

v. Record or Row or Tuple – The data values for all the fields related to a person or object is
called a record. It is presented as rows within a table. A record holds the data values of all the
fields for a single person or object in a table. For example, in the Student table with the field
names as admission number, roll number, name, father’s name, date of birth, city etc., can be
attributes of the entity Employee, the data values of all the fields for an employee and this form
one record.

vi. Primary Key:- A primary key or simply a key is a field that uniquely identifies a row in a table.
The primary key is a unique identifier for the table. The column or combinations of columns that
form the primary key have unique values. At any time, no two rows in the table can neither have
same values for the primary key nor can data value for such field be left blank. For example, in a
student table, each student has a unique enrolment no or roll no, which forms the primary key. If,
in a table we use more than one fields to identify a record, it is known as a composite key. For
example, we may form a composite key consisting of fields roll no. and name. Primary key value
can never be null nor can it be modified or updated.

Created by Pankaj Kashyap Sir | Page - 3


vii. Foreign Key – If a field or a combination of fields of one table can be used to uniquely
identify records of another table, then that particular field is known as the foreign key. This
foreign key helps to build a relation between two tables by using that common column that used
both table.

Example explanation: In Student Registration Table, ‘Enrolment_Number’ is the primary key and in the Student
Marks Table, ‘Roll_Number’ is the primary key, whereas ‘Enrollment_ Number’ is the foreign key. This foreign key
can be used to set a relation between two tables because Enrollment Number column is common in both table.

viii. Candidate Key – All the field values that are eligible to be the primary key are the candidate
keys for that table. Such fields can neither be left blank nor can have duplicate values. So in
the table Student Marks, Enrollment Number and Roll Number both are candidate keys.
ix. Alternate Key – Out of the candidate keys, one or two are made as primary keys. The others
are the alternate keys. Hence, if Roll Number is made as the primary key, Admission Number
is the Alternate key.
x. Unique key: A Unique key is the same as the primary key whose every row data is uniquely
identified with a difference of null value i.e. Unique key allows one value as a NULL value.

Q9) What are the Objects of an RDBMS.


An object in a database is a structure or a feature that is used to store, represent or retrieve data. In
fact a database is a collection of these objects that work on multiple sets of data related to each
other. Various objects in a database are as discussed below:
i. Table – As mentioned before, a table is the basic unit of any DBMS. The data is first stored in
tables in row and column format. A column represents a field or an attribute while a row
represents a record.
ii. Forms – A form is a feature of a database using which we can enter data in a table in an easy
and user friendly manner. A form consists of text boxes, labels, radio buttons, list boxes, check
boxes etc. that give a user friendly interface for entering data. The data entered through the
forms is stored in tables.
iii. Queries – A query is used to retrieve the desired information from the database. In simple
terms, it is a question asked from the database. For example, if we want to view the names of
only those students who have scored more than 50 marks, then we post a query. The data set
matching the given criterion is retrieved from the table and displayed on the screen.
iv. Reports – 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.
Created by Pankaj Kashyap Sir | Page - 4
ASSESSMENT-D:1
A. Multiple choice questions
1. Which of the following can be considered as an example of a database?
(a) Dictionary (b) Telephone directory (c) Marks Register (d) Newspaper
2. Which of the following is NOT a DBMS?
(a) MS Access (b) Open Office Base (c) MS Excel (d) MySQL
3. DBMS stands for ______________________.
(a) Data and Books Management System (b) Database Management System (c) Duplicate Books Management
System (d) Data Management Multi System
4. Which of the following data models sets a relation between the two or more tables?
(a) Relational Data Model (b) Network Data Model (c) Hierarchical Data Model (d) Connection Data Model 5. The
details associated with an entity are called ____________.
(a) Table (b) Attributes (c) Records (d) Primary key
6. A __________ is represented as rows in a table.
(a) field (b) attribute (c) record (d) candidate key
7. In which of the following forms can a data value be represented?
(a) Numeric (b) Character (c) Alphanumeric (d) All of the above
8. Which of the following uniquely identifies a row in a table?
(a) Primary key (b) Alternate key (c) Foreign key (d) Candidate key
9. A ___________is a feature of a database using which we can enter data in a table in an easy and user friendly
manner. (a) query (b) report (c) form (d) field
10. A _____________ is a question asked from a database.
(a) query (b) report (c) form (d) field

B. State whether the following statements are True or False


1. A database cannot be organised.
2. Data is the collection of raw facts.
3. A table can be created without a primary key.
4. Two tables can be related in a network data model.
5. MS Access is an example of a database.

C. Fill in the blanks 1. The raw facts constitutes _____________.


2. An _____________ is a real world object about which information is to be stored in a database
3. The output of a query may be displayed in the form of ________.
4. The data values for all the fields related to a person or object is called a _________.
5. All the field values that are eligible to be the primary key are the ___________ keys for that table

D. Consider the table given below and answer the questions that follow

(a) Name the fields in the given table.


(b) Which field should be made the primary key?
(c) Is there any alternate key in the table?
(d) How is primary key different from foreign key? Explain with example.

Chapter-2 (9)
Q10 What are the Data Types?
Ans. Data Types: A data type refers to the type of data that will be stored in that particular field.
The nature of data to be entered for various fields are of different types. For example, names are

Created by Pankaj Kashyap Sir | Page - 5


stored in the form of text, age in numbers, fees in decimal numbers, date of birth in date format and
so on. The memory size of a field varies according to its data type.
Some commonly used data types are described below:
1. Text Data Type
2. Numeric Types
3. Binary Types
4. Date time

Text Data Type – The text data is a combination of letters, numbers or special characters. No arithmetic
calculations can be performed on text data. Examples of text data type is PAN Card Number, Name, Marks,
etc.

Numeric Types:
Numeric data types consists of numbers.
The numbers can be integer or real
numbers on which any type of arithmetic
calculations can be performed. For
example, 10, -34.8, 90.6789 , -86 are of
numeric data type, etc.
The different types of numeric data
types available are listed here.

Binary Types: Binary data types are used for store digitalized data like image, video, sound etc that
comes as long string of zeros and ones (Binary format-0 and 1). Some binary data types available
are listed here.

Date Time: – This data type is used to indicate dates and time. For example 12/25/2019, 08:45 AM.
The data and time can be stored in various formats

Created by Pankaj Kashyap Sir | Page - 6


Boolean – In boolean data type there can be only two values- True or False. This also can be given
in multiple formats like Yes/No, True/False, On/Off
Currency Data Type – The currency data type indicates the monetary values and can be stored
using currencies of various countries. For example $100, £ 500 or Rs. 25.50

Q11) Mention the various components of the Base User Interface.


Title Bar – The title bar displays the name of a database and an application in which it is made. The
windows buttons to maximize, minimize or close the window are located on the right corner of the
title bar.
Menu Bar – The menu bar appears below the title bar. It consists of seven menu items – File, Edit,
View, Insert, Tools, Window and Help. All these menu items contain commands that help to
perform various operations on the database.
Standard Toolbar – It is located below the menu bar. It is used to access frequently used tools.
Status Bar – It is located at the bottom of the interface window. It displays information about the
type of view of the object in the database.
Database Pane – The database pane is located on the left side of the window. LibreOffice Base is
the collection of related data objects known as Tables, Forms, Queries, Reports and application
modules. Depending on the object that is selected, the respective Task Pane and Object Area
displaying the created object appears.
Q12) What is the use of Design View and DataSheet View?
"Design View" allows you to modify the structure of a database table, including adding or removing
fields, setting data types, and defining properties, while
"Datasheet View" displays the actual data within a table in a simple row and column format,
enabling you to easily enter, edit, and view data without changing the table structure itself.
Q13) How can we define a primary key in a table?
Ans. To make a particular field as the primary key, place the mouse pointer before the field name,
say Event Id in our above example 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.
Q14) Write steps to sort the table in descending or ascending order of primary key.
Ans. Follow the following steps to sort the table.
Step 1. Open the Event table in datasheet view and select the field on which you want to sort. Field
“Points” is selected to sort the records in ascending order.
Step 2. From the tool bar click Sort Ascending icon if the table has to be sorted in ascending order
of selected field. Alternatively select Sort Descending icon if the table has to be sorted in
descending order of selected field.
Step 3. The table will be sorted in the ascending order of points.

Q15) What is the use of navigation box with respect to tables in a database
Ans. The black pointing arrow ( )just before the field name is the record pointer. To
navigate through various records of the table, we use the navigation box present at the bottom of the
datasheet window. It indicates a current record of the table at any given time.
Created by Pankaj Kashyap Sir | Page - 7
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.
Press |◄ to move to the first record
Press ► and ◄ to move to the next and previous records respectively.
Press ►| to move to the last record
Q16) Creating a Table by using a Wizard.
Ans. To create a table at the time of creating a database in database wizard, select the radio button
with option “Create tables using the table wizard”, then click on the Finish button. If the database is
already opened then we can select Use Wizard to create a table option from the Tasks Pane.
Q17) Creating Table by using Design View.
Ans. To create table using Design View, in main Database window, click on the option Create Table
in Design View in the Tasks Pane and Table Design Window will be opened. The screen is broadly
divided into two sections or horizontal panes. The upper half consists of a grid structure with three
columns Field Name, Field Type and Description
Q18) Write the steps to Entering Data in a Table
Ans. To enter data in the table, double click on the created table Events icon in the Tables Object
Area on the database screen. Alternatively, we can open the table by right clicking on the desired
table and then selecting the Open option from the drop down menu. The datasheet view of the table
will appear to enter the data.
Q19) Write the steps to Deleting Records from Table
Ans. To delete any record from the table, open the table and select the record to be deleted. The
record can be deleted by pressing the Del key from the keyboard or selecting the Delete Record
option from the Edit menu. Alternatively a record can also be deleted by right clicking on the record
and clicking on the Delete Rows option from the pop up menu.
Q20) Write down the steps to Editing Data
Ans. To edit or modify the previously entered data simply place the cursor on the field value that
has to be edited to edit and enter the new value. The Edit icon ( ) appears before the record that
is being edited. This icon is displayed till the table is saved after making the required changes. Press
Esc key to cancel the corrections made and restore the original contents
Assessment- D-2
A. Multiple choice questions
1. Which of the following is NOT a type of text data type?
(a) Memo (b) Varchar (c) Float (d) Char
2. A currency data type can only store monetary data that is in dollars.
(a) True (b) False (c) Neither a nor b (d) Both a and b
3. Which of the following data can a date data type store?
(a) Date (b) Time (c) Both date and time (d) Neither date nor time
4. Which of the following is true about LibreOffice Base?
(a) It is a spreadsheet software (b) It is free and open source software
Created by Pankaj Kashyap Sir | Page - 8
(c) It can store only character data (d) It is a licensed software.
5. Which of the following methods can be used to create a table in Base?
(a) Using a table wizard (b) Design View (c) Both a and b (d) Neither a nor b
6. The related objects of a database can be seen in ____________ pane of the Base Database window.
(a) Database (b) Task (c) Title Bar (d) Menu Bar
7. Which is the shortcut key to open an existing database?
(a) Ctrl+ D (b) Ctrl+O (c) Ctrl+E (d) Ctrl+F
8. The Design view of Table Creation window in LibreOffice Base is divided into ______ sections or panes.
(a) 2 (b) 3 (c) 4 (d) 5
9. While entering records in a table, we can move to the next field by pressing the _________ key.
(a) Tab (b) Ctrl (c) Enter (d) Shift
10. Which of the following is true about primary key of a table?
(a) Every table must have a primary key (b) The data values in primary key field cannot be duplicated.
(c) A primary key field cannot be left blank (d) All of the above

B. State whether the following statements are True or False


1. The text data can contain special characters.
2. Memo data type can be used to store descriptive data.
3. A Boolean data type can have two or more than two values.
4. We cannot store audio data in LibreOffice Base.
5. The properties of a field change according to the data type selected.
6. Field description may or may not be entered while designing a table.

7. is pressed to move to the last record. 8. appears when the record is being edited.

8. appears when the record is being edited.


9. A table once created in a database cannot be edited.
10. Sort dialog box can only help to sort data in ascending order.

C. Fill in the blanks


1. A data type refers to the type of data that will be stored in that particular field.
2. The _____________ data is a combination of letters, numbers or special characters.
3. ________ data type can be used to store Aadhar number.
4. The __________ data type used to store digitized images.
5. The shortcut key to save a table is _______________.
6. _______ on the Base Interface Window displays information about the type of view of the object in the database.
7. A __________ icon appears before the field name indicating that it is a primary key.
8. The data can be entered in a table only in __________ view.
9. The black pointing arrow just before the field name in a table is called ____________.
10. The process of arranging the records in particular order on any filed is called _______________.

Chapter-3 (10)
Q21) What are the various types of relationships in Database? Define them.
Or How many types of relationships can be
created in Base? Explain each of the them.
Ans: There are 3 types of relationships in
Database:
 One-to-one: One table has the
relationship with another table having
the similar kind of column. Each
primary key relates to only one or no
record in the related table.
Created by Pankaj Kashyap Sir | Page - 9
 One-to-many: This is one of the most common types
of relationship between the tables in a database. As the
name says, 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: 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.
Generally this type of relationship is set when certain
records have to be saved more than once in both the
related tables.

Q22) What are the Advantages of Relating Tables in a Database.


Ans. Advantages are given below:
i. A relationship can help prevent data redundancy.
ii. It helps prevent missing data by keeping deleted data from getting out of synch. This is called
referential integrity. According tot this, no unmatched foreign key values should exist in the
database.
iii. Creating relationships between tables restricts the user from entering invalid data in the
referenced fields.
iv. Any updation in the master table is automatically reflected in the transaction tables.
Q23) LibreOffice Base gives us following four options to choose from to maintain referential
integrity in such cases.
• No action – This is the default option. This option states that a user should not be allowed to
update or delete any record in the master table if any related record exists in the transaction table.
• Update cascade – This option allows the user to delete or update the referenced field but along
with it all the related records in any of the transaction tables will also be deleted or updated.
• Set NULL – This option assigns NULL value to all the related fields if the master record is
deleted or updated.

Created by Pankaj Kashyap Sir | Page - 10


• Set default – This option assigns any fixed default value to all the related fields if the master
record is deleted or updated.
• Unique primary keys: Each table must have a unique primary key.
• Matching foreign keys: Foreign keys must match existing primary keys in related tables.

Assessment- D-3
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) (a) 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 following statements are True or False


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

C. Fill in the blanks


1. A table to be edited is displayed in ___________ view.
Created by Pankaj Kashyap Sir | Page - 11
2. The most important prerequisite for setting a relationship between the two tables is that there must be a
________________between them.
3. In ________________relationship, one specific record of a master table has one and only one corresponding
record in the transaction table.
4. ___________________is one of the most common types of relationship between the tables in a database. 5. A
record being entered in a _________ table must always exist in a ________ table.
6. The principle of _______________helps prevent missing data by keeping deleted data from getting out of synch.
7. Creating ____________ between tables restricts the user from entering invalid data in the referenced fields. 8.
Data integrity is maintained by ______________.
9. A relationship between customers and products is an example of __________________ relationship.
10. The __________________ window is used to set relationships between the tables.

Chapter-4 (11)
Q24). Define a query? What is the need of creating a query in a database?)
Ans. Using a query, we can retrieve and display data from one or more tables in a database. This is
done by giving specific search criteria to the DBMS so that we are able to view the exact
information that we want.
Using a query, we can specify the fields that we want to display and also the criterion based on
which the records to be filtered. The information may be retrieved from a single table or from
multiple tables. Also the result of the query is displayed in tabular form with field names in columns
and the records in rows
Q25). What all information is seen in the overview (last step) of the Query wizard?
Ans. It includes the following
• Name of the Query – By default, the name of the query is Query_Events by default. If desired,
type the new name in the text box.
• The action to be performed after the wizard finishes – By default Display Query option will be
selected. Click and select the Modify Query radio button if the query has to be edited in the Design
view.
• Complete detail of the query – This section contains a summary about the query that has been
created.
Q26). What is the use of Alias row in the Design grid of the Query Design window?
Ans. In the grid, there is a row titled Alias. As mentioned before, it can be used to display
meaningful names in the output.
Q27). What relational operators can be used to display records basis on a criteria in Criterion
row in the Query Design window?
Ans. We can use the Criterion row to apply multiple conditions as well. Also note that we can apply
all relational operators like <, > , <=, >=, != and = for all conditions that can be given in Criterion
row
Q28). Name any four mathematical functions that can be applied to numerical data in a query.
Ans. we can use certain mathematical functions to find the count, sum, minimum, maximum or
average of data values

Created by Pankaj Kashyap Sir | Page - 12


Q29). Name the three ways of creating a query in LibreOffice Base?
Ans. A query can be created in three ways. In this chapter you will learn the first two methods to
create a query. (i) Using a Wizard (ii) In Design View (iii) In SQL view
Assessment-D-4
A. Multiple choice questions
1. Which of the following is refer to asking questions from the database?
(a) Report (b) Table (c) Query (d) Database
2. Which of the following are the ways to design a query?
(a) Wizard (b) Design View (c) SQL (d) All of the above
3. Which is a flexible way to create a query?
(a) Wizard (b) Design View (c) Both (a) and (b) (d) Neither (a) nor (b
4. Into how many parts is the query design window divided?
(a) One (b) Two (c) Three (d) Four
5. Which of the following is NOT true about queries?
(a) It can be created using multiple tables (b) Multiple queries can be created in a database (c) A query can run
multiple times (d) A query once created cannot be edited
6. Which of the following is the shortcut key to run the query?
(a) F3 (b) F4 (c) F5 (d) F6
7. Which of the following functions can be performed on numerical data while designing a query? (a) Sum (b)
Minimum (c) Maximum (d) All of the above
8. In a Query Design wizard, which of the following buttons is clicked to move a field from ‘Available fields’ list box to

(a) > (b) < 9 (c) ∨ (d) ∧


‘Fields in the query‘ list box?

9. Which of the following relational operators can be applied to set the criterion while designing a query in
LibreOffice Base?
(a) > (b) = (c) != (d) Add Form
10. Which of the following dialog box is present when the Query Design window is opened for the first time to design
a query?
(a) Add Table (b) Add Query (c) Add Table or Query (d) None of the above
11. Which of the following step is not performed if there is no numerical data to be worked upon in a query?
(a) Selection of fields (b) Giving Aliases (c) Summarizing (d) Selection of tables
B. State whether the following statements are True or False
1. You can run a query only once
2. A query cannot be created from multiple tables
3. The shortcut key to run a query is F5.
4. LibreOffice Base provides us with two ways to create a query.
5. A query with numerical data cannot be saved.
6. By default the query result is not sorted.
7. A query can be used to display the average value of a numerical field.
8. While designing a query, the criterion can be set on only one field.
9. Alias is an alternative name for a field in a query.
10. In query Design window, the visible check box is selected by default.
11. A query once created using a wizard can only be edited in the Design view.
C. Fill in the blanks 1. A ____________ is a sort of question asked from a database.
2. The result of the query is displayed in ____________ form with field names in columns
3. A query can be created in ________ways.
4. The Query Design window is divided into __________ sections.
5. The shortcut key to run the query is ______________.
6. The conditions to filter the records are set in the _________ row.
7. When a table is selected in a Query wizard, the corresponding fields are displayed in the_______________list box.
8. The result of the query can be displayed in __________ or ____________ order of any particular field of the table.
9. At the most __________ search conditions can be given in the query wizard.

Created by Pankaj Kashyap Sir | Page - 13


10. The last step of the Query wizard displays the entire ____________ of the query.
11. The _____________ view is a more flexible method to create a query.
12. To edit any query, right click on the ________ icon of the query that has to be edited.
13. In the _____________ row of the Query Design grid, we can type the column heading that will be displayed
instead of field name when we run the query.

Chapter-5 (12)
Q30) Give one difference between a form and a report.
Ans. A form is an object of the database that has a user friendly interface where data can be entered
and seen in an attractive and easy-to-read format.
A report is used to present the retrieved data in an attractive and customized manner.
Q31) What is a field control with respect to forms?
Ans. A form contains field controls arranged in a presentable and user friendly manner. Each field
control consists of a label and the field value text box. We may add all or selected fields from the
table on the form. In addition to field controls, it may contain some additional text like titles,
headings and names, graphics like logos, list boxes and radio buttons.
Q32) Write the function of Forms Controls toolbar and Records toolbar.
Ans. Form Controls toolbar allows you to add various interactive elements like text boxes,
checkboxes, radio buttons, and dropdown lists to your forms, essentially providing the building
blocks for data input, while
The Records toolbar gives you the tools to navigate through and manipulate data records within
your database, including adding new records, deleting existing ones, and moving between them
Q33) Name the two ways to create a form in LibreOffice Base.
Ans. There are two ways to create a form: 1) Using a wizard 2) Using the Design View
Q34) What is the difference between a static and a dynamic report?
Ans. A "static report" displays a fixed set of data based on predefined filters, meaning the
information shown won't update automatically when the underlying database changes, while
A "dynamic report" allows users to interact with the data by filtering and sorting it in real-time,
providing a live view of the most current information from the database
Q35) Which tool on the Forms Record toolbar is used to insert text on the form?
Ans. The Text Box icon is the tool used to insert text on a form in LibreOffice Base
Assessment-D-5
A. Multiple choice questions
1. Which of the following toolbars contains the Label tool?
(a) Standard Toolbar (b) Forms Controls Toolbar (c) Records toolbar (d) Formatting toolbar
2. The Record toolbar has the buttons to move to the
(a) first record (b) second record (c) last record (d) all records
3. Which of the following is NOT true about forms?
(a) It is the front end for data entry (b) It can contain only text fields (c) Graphics can be inserted on the form (d) It
can contain only fixed number of records.
4. Which of the following keys is pressed to select only textbox on the form?
Created by Pankaj Kashyap Sir | Page - 14
(a) Alt (b) Shift (c) Ctrl (d) Tab
5. Which of the following properties in the Properties: Label Field text box is used to insert a tool-tip on the form?
(a) Tool Text (b) Help Text (c) Tool Tip (d) Help Tip
6. Which of the following objects of LibreOffice Base is used to display data retrieved from one or more tables in a
presentable manner?
(a) Query (b) Form (c) Report (d) Panel
7. Which of the following values of Date Format property is selected to view a calendar on the form?
(a) Standard (short) (b) Standard (long) (c) Default (d) Standard (Medium)
8. Which of the following commands on the Forms Control toolbar is used to toggle between Design View and Form
view?
(a) Design Mode (b) Toggle Mode (c) View Mode (d) Print mode
9. Using which of the following objects in a database, can a report be generated?
(a) Tables (b) Queries (c) Both a and b (d) Neither a nor b
10. Which of the following components open along with the Report Wizard?
(a) Report Builder (b) Add Fields dialog box (c) Both (a) and (b) (d) Neither (a) nor (b)

B. State whether the following statements are True or False


1. Report is an object of a database but form is not.
2. We can choose the layout of the form
3. We have to add all fields of the table on the form.
4. There are two ways n which a form can be created.
5. A report is generated in a separate window.
6. Once a control is added on to the form, it cannot be repositioned.
7. The Record toolbar has the button to add a new record.
8. We can create a report only using a table.
9. By default, the records in a report are sorted in descending order.
10. We can group data based on a particular field in a report.
11. A report can have data only in row and column format.
12. We can insert both date and time of generation of report.
13. A report once created cannot be edited.

C. Fill in the blanks 1. A form can be used for ____________ and _____________.
2. Each field control consists of a ____________and ________________
3. A ________________ is a piece of text that specifies the data that should be entered in the field value text box.
4. By default the border of the field text value is displayed in _________.
5. A ____________ is a small piece of text that is displayed when the mouse pointer is placed on a particular control
on the form.
6. The default orientation option for a report is _______________.
7. A ____________ is the manner in which the 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 ___________ menu.
9. A Report Wizard contains _____________ steps.
10. A _______ type of report changes automatically as the field values in the base table or query change.

Note:
SQL: Structured Query language, SQL is an ANSI(American National Standard Institute) standard
programming language that is designed specifically for storing and managing the data in the
relational database management system (RDBMS) using all kinds of data operations.
SQL statements are basically divided into three categories, DDL, DML, and DCL.
They can be defined as:

Created by Pankaj Kashyap Sir | Page - 15


1.Data Definition Language (DDL) commands are used to define the structure that holds the data.
These commands are auto-committed i.e. changes done by the DDL commands on the database are
saved permanently.
(DDL) commands:
 CREATE to create a new table or database.
 ALTER for alteration.
 Truncate to delete data from the table.
 DROP to drop a table.
 RENAME to rename a table.
2.Data Manipulation Language (DML) commands are used to manipulate the data of the
database. These commands are not auto-committed and can be rolled back.
(DML) commands:
 INSERT to insert a new row.
 UPDATE to update an existing row.
 DELETE to delete a row.
 MERGE for merging two rows or two tables.
 SELECT
3.Data Control Language (DCL) commands are used to control the visibility of the data in the
database like revoke access permission for using data in the database.
(DCL) commands:
 COMMIT to permanently save.
 ROLLBACK to undo the change.
 SAVEPOINT to save temporarily.

Created by Pankaj Kashyap Sir | Page - 16


Answer keys
Unit 3. Database Management System using LibreOffice Base Chapter
8. Introduction to Database Management System

A. Multiple choice questions 1. (d) 2. (c) 3. (b) 4. (a) 5. (b) 6. (d) 7. (d) 8. (a) 9. (c) 10. (a
B. State True or False notes 1. False 2. True 3. False 4. False 5. False
C. Fill in the blanks 1. Data 2. Entity 3. Report 4. Record 5. Candidate
Chapter 9. Starting with LibreOffice Base

A. Multiple choice questions 1. (c) 2. (b) 3. (c) 4. (b) 5. (c) 6. (a) 7. (b) 8. (a) 9. (a) 10. (d)
B. State True or False 1. True 2. True 3. False 4. False 5. True 6. True 7. False 8. True 9. False 10. False
C. Fill in the blanks 1. Data type 2. Text 3. Text 4. Binary 5. Ctrl+S 6. Tasks Pane 7. Key 8. Datasheet 9. Record pointer
10. Sorting
Chapter 10. Working With Multiple Tables

A. Multiple choice questions


1. (d) 2. (c) 3. (b) 4. (b) 5. (b) 6. (b) 7. (c) 8. (a) 9. (c) 10. (d)
B. State True or False 1. False 2. True 3. False 4. False 5. True 6. True 7. False 8. False 9. True 10. False
C. Fill in the blanks 1. Design 2. common field 3. one-to-one 4. one-to-many 5. transaction, master 6. referential
integrity 7. relationship 8. DBMS 9. Many-to-many 10. 10.
Chapter 11. Queries in Base

A. Multiple choice questions 1. (c) 2. (d) 3. (b) 4. (b) 5. (d) 6. (c) 7. (d) 8. (a) 9. (d) 10. (c) 11. (c)
B. State True or False 1. False 2. False 3. True 4. False 5. False 6. True 7. True 8. False 9. True 10. True 11. True
C. Fill in the blanks 1. Query 2. Report 3. Three 4. two 5. F5 6. Criterion 7. Available fields 8. ascending, descending 9.
three 10. Overview 11. Design 12. Query 13. Alias
Chapter 12. Forms and Reports

A. Multiple choice questions 1. (b) 2. (d) 3. (b) 4. (c) 5. (b) 6. (c) 7. (b) 8. (a) 9. (c) 10. (c)
B. State True or False 1. False 2. True 3. False 4. True 5. True 6. False 7. True 8. False 9. False 10. True 11. False 12.
True 13. False
C. Fill in the blanks 1. Enter, view data 2. label, field value 3. label 4. 3D 5. tool tip 6. landscape 7. Layout 8. Insert 9.
Six 10. dynamic

Created by Pankaj Kashyap Sir | Page - 17

You might also like