Class 10 IT - Data Base Notes
Class 10 IT - Data Base Notes
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.
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.
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.
D. Consider the table given below and answer the questions that follow
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
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
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
7. is pressed to move to the last record. 8. appears when the record is being edited.
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.
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
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
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.
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)
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:
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. (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