Database Management System Class 10 Notes
Database Management System Class 10 Notes
Data is most important for any organization or in a company, the organization’s primary objective is to store data,
manage data and retrieve data from computers and this is only possible with database management systems.
A database is an organized collection of data that is maintained electronically. Any kind of data like text, numbers,
pictures, videos and files can be stored in a database. This data can be stored, retrieved and edited using software
known as a database management system.
• Data – Data is a collection of facts which do not have any meaning. This data is unstructured information
such as numbers, text, symbols and images.
• Information – Information depends on data, this information has some meaning. This Information refers to
organized and structured data.
• Database – A database is a collection of logically related data items stored in an organized manner, It is also
considered as a data bank.
• DBMS (Database Management System) – This software that is used to create, update and retrieve data is
known as database management system. Some of the common examples of DBMS are LibreOffice Base, MS
Access, Open Office Base, Oracle, MySQL.
Advantages of DBMS
• Organized Storage – In database data are stored in an organized manner, so that retrieval of the data is fast
and accurate.
• Data Analysis – In database you can retrive the data based on certain criteria for example average, maximum
or minimum value etc.
• Data Sharing – Databases can share the data with other applications.
• Minimal Data Redundancy – In database duplicate data is not allowed, it means that same data will not be
repeated in the table.
• Data Consistency – In database if any record is changed in any one of the tables then the same data will
update in other tables also.
• Increase Efficiency – In the database the data is organized which helps to retrieve and search data efficiently.
• Increases Accuracy – In the database the data is retrieved accurately from the database.
• Increases Validity – In the database the valid data is being entered and checked by the database.
Data Models
A database can be designed in different ways dependent on data storage. This structure of the database is known as
a data model. The data models describe the relationships between the data.
In Hierarchical Data Model the data is organized like tree structure and data is stored in the form of a table.
In this model, multiple records are linked to the same master file. This network model is considered as a tree where
the master table present in the bottom and other tables linked to the master table.
In relational data models are based on relationships between two or more tables of the same database. This is the
most popular data model.
E. F. Codd given the concept of Relational Database Model in 1970. The most popular type of database model is the
relational model. In relational database models the data elements are stored in different tables, this table is related
through the common fields.
• Entity – Entity is a piece of data that is stored in the database, for example student rollno, name and age is
the entity of the student record.
• Field or Columns or attributes – The smallest entity in the database is known as field, a collection of fields is
known as record, a collection of records make a table and a collection of tables make a database.
• Data Values – Data values are raw data represented in character, numeric or alphanumeric.
• Record or Row – The collection of data values of all the fields are known as record.
• Primary Key – The field which uniquely identifies a row in a table. The primary key used to be a unique
identifier for the table.
• Candidate Key – All the field values that are eligible to be the primary key are the candidate key for that
table.
• Alternate Key – One or two fields in the table are made as primary key but others are the alternate key.
Objects of an RDBMS
The database is a collection of object or a feature that is used to store, represent or retrieve data, different types of
objects in a database are given below –
• Table – Table is a collection of row and column which is used to store data. The data in the database is first
stored in a table.
• Form – A form is used to enter data in a table, form is the interface between database and users, it is an
easiest method to enter data in database using user friendly manners. A form consists of a text box, radio
button, labels, check box etc.
• Queries – Queries are used to retrieve the desired result from the database.
• Reports – The output of any query in the database may be displayed in the form of reports.
Data Types
A data type refers to the type of data that will be stored in that particular field. The memory size of a field varies
according to its data type. There are six different types of data type in LibreOffice Base –
The text data consists of a mix of special characters, numbers, and letters. With text data, no mathematical
operations may be carried out. PAN card numbers, names, marks, and other data types are examples of text data.
The lists of various data types that can store textual data –
Numeric Data type contains numbers. The number can be integer, real, float or double.
Currency Data type contains monetary values and can store currencies of different countries.
This data type is basically used for date and time. There are various formats used to store date and time.
Name Description
Date Stores the year, month and day as it is stored in the system.
Time Stores the time of the day as hour, minute and second.
In boolean data type there are only two values – True or False, This also can be given in multiple formats like Yes/No,
True/False, On/Off.
Binary
LibreOffice base is a database management software belonging to LibreOffice suite, It is free and open source
software for creating and managing data. It also allows you to create a query for retrieving desired results from the
database.
• Step 3: After Creating a new database, Click on Yes, register the database for me
Creating a Table
After creating a database now you will start working with objects of the database, The first object we are going to
create is Create Table. There are two different method to create table –
After creating tables in a database, you can also create relationships between two or more tables to control data
redundancy and inconsistency. When you create a relationship between two or more tables then adding or updating
a record in one table reflects the changes in all the related tables.
If the School wants to manage student fees collection in a database, then they will create two tables, one for Student
Details and second for Free details, here the Student Details will be master table and Fee details will be transaction
table.
Relationships between Tables
A relationship is a connection between two or more tables that contain data, the relationships between tables are
based on a common field. This relationship helps to improve table structures and reduce redundancy of the data.
Types of Relationships
The relationships between two or more tables in a database is based on the number of records, Primarily there are
three different types of relationships that can be set up between two or more tables.
1. One-to-One
2. One-to-many
3. Many-to-Many
One-to-One relationship
In a One-to-One relationship, the master table and transaction table both have one record.
One-to-Many relationship
In a One-to-Many relationship, the master table having one record and transaction table having multiple records. This
is a very common type of relationship between the tables in the database.
Many-to-Many relationship
In a One-to-Many relationship, the master table has multiple records and the transaction table has multiple records.
2. Relationships between tables help to restrict from entering invalid data in the referenced field.
3. It helps to prevent missing data by keeping deleted data from getting out of sync.
4. Any update in the master table is automatically reflected in the transaction tables.
In the RDBMS data can be integrated using keys. These are Primary Key, Composite Primary Key, and Foreign Key, Key
are used to make the relationship between the tables.
1. Primary Key – This unique field is called the Primary Key (PK). primary key is a field or a set of fields that
uniquely identify each record in a table. A primary key must be unique and cannot contain null values.
2. Composite Primary Key – A composite primary key is a primary key that consists of two or more fields that
together uniquely identify each record in a table.
3. Foreign Key – A composite primary key is a primary key that consists of two or more fields that together
uniquely identify each record in a table.
Referential Integrity
As per the principle rule of the database, no unmatched foreign key values should exist in the database. Referential
integrity processes concentrate on ensuring data consistency and the link between tables.
1. No action – This is default option, This option states that no update or delete are allowed in the master table
if any related record exists in the transaction table.
2. Update cascade – This option allows to delete or update the referenced field but the related records that are
also available in any transaction tables will also be deleted or updated.
3. Set NULL – This option assigns NULL value to all the records in the master record that are deleted or
updated.
4. Set default – This option assigns a fixed default value to all the related fields if the master record deleted or
updated.
In the database data is stored in an organized manner which helps to retrieve data quickly and accurately. To search
and retrieve the desired data from the database, we have to give its specifications to DBMS. Such specifications are
given to the database in the form of queries.
Query
A query is the most important feature of DBMS. Query is a request for data, query helps to retrieve and display data
from one or more tables in a database. This is done by giving criteria to the DBMS.
1. Using a Wizard
2. In Design View
3. In SQL view
Database Languages
DDL Statements:
• Drop: This statement is used to remove database objects from the system.
DML statements:
• SELECT: The statement “SELECT” is used to get data from the database.
• INSERT: The statement “INSERT” is used to add a new record to the database.
• DELETE: The database can be cleaned out by using the statement DELETE.
Select Statement
Select statement is most important for retrieving and for displaying data from a database.
25 Soap 40 80
31 Powder 80 30
45 Shampoo 250 25
Question 3 – Write a Query to display Product_Name and Price from the table;
Question 5- Display the total amount of each item. The amount must be calculated as the price multiplied by
quantity for each item.
Question 6- Write a Query to display the product whose price is less than 90
Question 7- Write a Query to find the total amount of the Shampoo product;
Question 8- Write a Query to display the data whose quantity is equal to 80.
Question 9- Write a Query to display a list of Products whose Price between 40 to 120.
Answer: Select * from product where Price >= 40 and Price <= 120;
Question 10- Write a Query to display the list of Product_Name in alphabetical order.
Question 11- Write a Query to display the list of Price in descending order.
UPDATE statement
Update statement is used to update existing records present in database. The updated statement will apply using
WHERE clause.
25 Soap 40 80
31 Powder 80 30
45 Shampoo 250 25
Question – Write a Query to update the price of Shampoo in the product table.
Question – Write a Query to update the Quantity of Powder in the product table.
LibreOffice Base provides the Form feature for data entry purposes and report feature for displaying the data.
Form
A form is a database object with a user-friendly interface that allows data entry and viewing in a visually attractive
and accessible method. It serves as the front end for entering and editing data into any database.
1. Using a wizard
Creating a Form Using a Wizard is the simplest way to create a form in LibreOffice base. To create a form using
wizard, follow the following steps.
Forms Control Toolbar – This toolbar contains various controls that can be added to the form.
Records Toolbar – The Records toolbar contains the navigation control buttons in the extreme left.
You can create report from the Report using a wizard. To create a report, follow the following steps –
1.
3. Data is a collection of _.
a. Raw facts
b. Table
c. Database
d. None of the above
14. Database helps to maintain the same data across all the tables, this is known as _.
a. Data Redundancy
b. Data Sharing
c. Data Consistency
d. None of the above
15. Data redundancy and inconsistency can be minimized in a database which helps to increase.
a. Validity
b. Security
c. Accuracy
d. None of the above
16. The data is translated in such a manner in a database that unauthorized users are not able to read is known
as _.
a. Validity
b. Encryption
c. Consistency
d. None of the above
19. In which data model the data is organized into a tree-like structure.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
20. In which of the following data models are used to link multiple records to the master file.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
21. In which data model is based on the principle of setting relationships between two or more tables of the same
database.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
22. Which of the following is the most commonly used database model in DBMS.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
25. In relational data models the data are stored in different tables made up of __.
a. Rows
b. Columns
c. Both a) and b)
d. None of the above
26. In which data model the relations are set between tables based on common fields.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
27. Which of the following is a real world object which stores the information in a database.
a. Attribute
b. Entity
c. Field
d. All of the above
28. The details associated with the entity are called __.
a. Attribute
b. Entity
c. Field
d. All of the above
35. The raw data represented in the form of alphanumeric, character or numeric data is known as _.
a. Attribute
b. Field
c. Record
d. Data value
36. A __ is the set of data values for all the fields related to a person or object.
a. Attribute
b. Field
c. Record
d. Database
37. A __ holds the data values of all the fields for a single person or object in a table.
a. Attribute
b. Field
c. Record
d. Database
40. __ key helps to build a relation between two or more tables in a database.
a. Primary key
b. Composite key
c. Foreign key
d. None of the above
41. If the field values that are eligible to be the primary key are known as _.
a. Primary key
b. Candidate key
c. Foreign key
d. None of the above
42. In the database table if candidate keys are not chosen as the primary key are called __.
a. Alternate key
b. Candidate key
c. Foreign key
d. None of the above
46. If in the database table there are two field roll numbers and admission number both are uniquely identified
fields, if roll number is made as primary key then admission number will be __.
a. Alternate key
b. Candidate key
c. Foreign key
d. None of the above
47. A structure or feature that is used to store, represent, or retrieve data is called __.
a. Database
b. Object
c. Report
d. None of the above
49. __ is a feature of a database, which contains data from users and stored in a database table using a user-
friendly manner.
a. Form
b. Queries
c. Report
d. None of the above
54. _ helps to specify while creating the tables and check only valid data will be entered in the table.
a. Data Type
b. Data Storage
c. Validation
d. None of the above
54.
55. __ refers to the type of data that will be stored in the particular field.
a. Data Type
b. Data Storage
c. Validation
d. None of the above
56. The memory size of the field varies according to its __.
a. Data Type
b. Data Storage
c. Validation
d. None of the above
59. __ data type stores maximum length of the characters, data having more than 255 characters.
a. Memo (Longvarchar)
b. Text(fix) (Char)
c. Text (Varchar)
d. None of the above
60. _ data type stores exactly the length specified, this data type uses a fixed number of characters.
a. Memo (Longvarchar)
b. Text(fix) (Char)
c. Text (Varchar)
d. None of the above
61. __ data type allocated depends on the number of characters entered by the user.
a. Memo (Longvarchar)
b. Text(fix) (Char)
c. Text (Varchar)
d. None of the above
62. __ data type consists of number, integer, decimal, real or double type which can perform arithmetic
calculation.
a. Text Data type
b. Number Data type
c. Date Data type
d. Binary Data type
63. _ data type is used to store decimal values in the database using a table.
a. Tiny Integer
b. BigInt
c. Number
d. Float
64. Which data type is used to store monetary values and can store currencies of various countries.
a. Boolean Data type
b. Currency Data type
c. Date Data type
d. None of the above
65. Which data type is used to store date and time both in the database.
a. Date
b. Time
c. Timestamp
d. None of the above
66. Which data type is used to store date data in the database table.
a. Date
b. Time
c. Timestamp
d. None of the above
67. Which data type is used to store time in the database table.
a. Date
b. Time
c. Timestamp
d. None of the above
68. In which data type you can store True/False, Yes/No, or On/Off in the database table.
a. Binary Data type
b. Text Data type
c. Boolean Data type
d. Number Data type
69. Which data type is used to store digital image, sound, video or file in the database table.
a. Binary Data type
b. Text Data type
c. Boolean Data type
d. Number Data type
70. What is the name of a method where you can create a new database using step by step procedure.
a. New Database
b. Database Wizard
c. Database Method
d. None of the above
71. In LibreOffice Base if you select the option “No, do not register the database” then what will happen.
a. Database will be not store the data
b. Database will not open
c. Database will not share publicly
d. None of the above
74. In LibreOffice Base, If you want to describe the purpose of the field, it will not be a part of the database table
but it helps the user to understand the purpose of the field.
a. Field Name
b. Field Type
c. Description
d. None of the above
75. Which of the following shortcut keys is used to save the table in the database.
a. Alt + S
b. Ctrl + S
c. Shift + S
d. None of the above
77. The data type in LibreOffice base can be categorized into __.
a. Text
b. Numeric
c. Currency and Date
d. All of the above
78. To edit a table in LibreOffice Base, Which of the following interfaces is used.
a. Database Edit Interface
b. Database User Interface
c. Database Manage Interface
d. None of the above
78.
79. __ are used to set up between the tables which helps to control data redundancy and inconsistency.
a. Relationship
b. Common Field
c. Database Interface
d. None of the above
80. The most important prerequisite for setting a relationship is that there must be a _.
a. Different field
b. Common field
c. Both a) and b)
d. None of the above
81. The table contains a unique record that is used as a main source of information known as _.
a. Transaction table
b. Master table
c. Sub table
d. None of the above
83. Primarily how many types of relationships can be set up between two tables.
a. 2
b. 3
c. 4
d. 5
84. In the database if the master table and transaction table both have a unique record then it will create __ type
of relationship.
a. One-to-One
b. One-to-many
c. Many-to-many
d. None of the above
85. _ specific record of the master table has more than one corresponding record in the related transaction table.
a. One-to-One
b. One-to-many
c. Many-to-many
d. None of the above
86. In _ multiple records in the master table that correspond to multiple records in the transaction table.
a. One-to-One
b. One-to-many
c. Many-to-many
d. None of the above
87. What are the benefits of relating tables in a database?
a. It helps to prevent data redundancy
b. It helps to prevent missing data using referential integrity
c. Restricts the user to enter invalid data using relationships
d. All of the above
88. Any update in the master table is automatically reflected in the transaction tables using________.
a. Relationships
b. Common Field
c. Database Interface
d. None of the above
90. According to the principle of __ no unmatched foreign key values should exist in the database.
a. Database
b. Referential integrity
c. Database Interface
d. None of the above
91. Referential integrity allows only that corresponding record to be entered in the transaction table which already
exists in _.
a. Master table
b. Transaction table
c. Relationships table
d. None of the above
92. LibreOffice base gives us how many options to maintain referential integrity in the database.
a. 3
b. 4
c. 5
d. 6
95. Which referential integrity states that the user is allowed to update or delete the referenced field along with
the related record in the transaction table will also be updated or deleted.
a. No action
b. Update cascade
b. Set NULL or Set Default
c. All of the above
96. To search or retrieve the desired record from the database we have to give specifications in the form of _.
a. Form
b. Table
c. Query
d. Report
96.
97. LibreOffice Base allows us to create a query and you can save it as __ in a database.
a. a Micro
b. an Object
c. a Module
d. None of the above
98. You can run query multiple times whenever it is required (True/False)
100. In LibreOffice Base, which mathematical function you can use in a query.
a. count and sum
b. maximum and minimum
c. average
d. All of the above
104. Which is the most flexible way to create a query in LibreOffice Base.
a. Design View
b. Wizard
c. SQL View
d. None of the above
106. In LibreOffice Base which view is used to insert SQL query manually.
a. SQL View
b. Design View
c. Wizard View
d. Datasheet View
107. In LibreOffice Base which of the following conditions you can apply in the Query Wizard to perform the result.
a. is equal to/ is not equal to
b. like/ not like/ is not null
c. is smaller than/ is greater than
d. All of the above
108. Which of the following functions is used to find the average of the numbers in LibreOffice Base design view.
a. average
b. avg
c. total avg
d. None of the above
109. Which of the following functions is used to find the sum of numbers in LibreOffice Base.
a. Total
b. Sum
c. Addition
d. None of the above
110. Which of the following functions is used to count total no of records in the table.
a. Total
b. Count
c. Sum
d. None of the above
112. After saving the query in LibreOffice Base the query will be seen in the _.
a. Module area
b. Object area
c. Query area
d. All of the above
114. You can apply multiple conditions to design a query in LibreOffice Base. (True/ False)
115. Which of the following relational operators is used to define not equal in LibreOffice Base.
a. >=
b. Not=
c. <>
d. !=
117. The LibreOffice Base provides the _ feature for data entry purposes.
a. Table
b. Form
c. Report
d. None of the above
117.
118. Which features are used by the database to retrieve data in a user friendly, understandable and formatted
manner.
a. Table
b. Form
c. Report
d. None of the above
119. The Table, Query, Forms and Reports are considered as __ of the database.
a. Object
b. Function
c. Method
d. None of the above
120. The database objects are present in the __ of the LibreOffice Base User Interface.
a. Database Pane
b. Windows Pane
c. Data Pane
d. None of the above
123. In LibreOffice Base form can be created using which of the following ways.
a. Using a wizard
b. Using the design view
c. Both a) and b)
d. None of the above
127. How many layouts are given in LibreOffice Base using the wizard option.
a. 3
b. 4
c. 5
d. 6
128. In LibreOffice Base by default the name of the form is the same as the name of the _.
a. Form
b. Table
c. Database
d. None of the above
129. _ toolbar contains various controls that can be added to the form.
a. Records toolbar
b. Form Control Toolbar
c. Format Toolbar
d. None of the above
130. The Form Control toolbar is present on the __ of the Form design window.
a. Left
b. Right
c. Middle
d. Bottom
131. The _ toolbar contains the navigation control buttons and we can traverse and view the records in the file.
a. Records toolbar
b. Form Control Toolbar
c. Format Toolbar
d. None of the above
132. The form modification can be done once it is created, In LibreOffice Base modification can be changed to the
__.
a. Background color
b. Font size
c. Font color of the text or positioning of various controls
d. All of the above
133. To change the background color of the form, right click on the form and select _.
a. Page Style
b. Background Style
c. Database Style
d. None of the above
134. The Page Style dialog box will appear when you will click on __.
a. Color tab
b. Area tab
c. Design tab
d. None of the above
135. Label text can be changed using which of the following options in LibreOffice Base.
a. Property
b. Design View
c. Font design
d. All of the above
136. A __ is a small piece of text that appears when the mouse cursor is over a specific control.
a. Tool-design
b. Tool-tip
c. Tool-Font
d. All of the above
143. If you don’t want automatic updation of the report in LibreOffice Base, you can select the _ option.
a. Dynamic
b. Static
c. Both a) and b)
d. None of the above
145. To insert data and time in Report, you can use __.
a. Insert > Date and Time
b. Edit > Date and Time
c. View > Date and Time
d. None of the above
147.
150. Data is stored in multiple tables, which are connected together via a common field.
a. Flat File
b. Relational
c. Both a) and b)
d. None of the above
152. __ are dedicated computers which store database and related DBMS software.
a. Database Server
b. Decided Server
c. Web Server
d. None of the above
153. When the same data stored in multiple table is known as __.
a. Data Redundancy
b. Data Integrity
c. Data Consistency
d. None of the above
155. __ means that the data is accurate and consistent in the database.
a. Data Redundancy
b. Data Integrity
c. Data Consistency
d. None of the above
156. _ prevent multiple mismatching copies of the same data in the database and only valid data will be added in
the database.
a. Data Redundancy
b. Backup and Recovery
c. Data Consistency
d. None of the above
158. The relationship between two tables where one table has one record and another table has many records is
known as _.
a. One-to-Many
b. Many-to-Many
c. Many-to-One
d. None of the above
164. What are the different types of relationships in LibreOffice Base, which are used to make connection between
two tables___________.
a. One to One
b. One to Many or Many to One
c. Many to Many
d. All of the above
165. A Which of the following command used to define structure in the database.
a. Data Manipulation Language (DML)
b. Data Definition Language (DDL)
c. Both a) and b)
d. None of the above
166. A __ is a language that enables users to access and manipulate data in a database.
a. Data Manipulation Language (DML)
b. Data Definition Language (DDL)
c. Both a) and b)
d. None of the above
171. Which of the following use a systematic way for storing data in database.
a. Query
b. Form
c. Table
d. None of the above
172. __ will help you to display summarized data from the database.
a. Report
b. Form
c. Table
d. None of the above
Database Management System Class 10 Questions and Answers
1. What is a database?
Answer – A database is an organized collection of data. Databases can store, retrieve and manage large amounts of
data. The database stores the information in the form of a table.
Answer – A database management system (DBMS) is a software package which manages and maintains data in a
database. A DBMS enables several user application programs to access the same database at the same time. It
enables organizations to easily create databases for a variety of purposes. A database is a comprehensive collection
of data records, files, and other items.
Answer – Database servers are powerful computers that store and manage data on a server. This type of server is
dedicated to a single purpose and helps to hold the database and run only DBMS and related software.
a. Reduce Data Redundancy – When the same data set is stored in two or more locations, this is referred to as data
redundancy. As a result, this helps in the protection of duplicate data in a database.
b. Sharing of Data – Databases can share the data with multiple users at a time. There are multiple levels of
authorization to access the data, and as a result, the data can only be shared with those who are permitted.
c. Data Integrity – The term “data integrity” refers to the accuracy and consistency of the data in the database. Data
integrity also refers to data safety.
d. Data Security – You know that data is very important, databases give privileges to authorized users and allow them
to access the database using username and password.
e. Privacy – A database’s privacy rule says that only authorized users are permitted to access the database in
accordance with its privacy constraints. For example – if you log in your Gmail account then you will see your email
only, you will not see any other account email.
f. Backup and Recovery – Backup and recovery are handled automatically by the Database Management System.
g. Data Consistency – Data consistency ensures the modification in the data will be the same for all the users who are
accessing the database. For example if you have registered a train ticket from IRCTC website then whatever changes
are there it will be the same for all the users who are trying to reserve the ticket.
7. What is RDBMS?
Answer – RDBMS stands for Relational Database Management System is an upgraded version of DBMS, RDBMS
stores the data in the form of a table. In RDBMS multiple tables can be linked together, and support multiple users to
access the database.
a. Primary Key (PK) – A primary key is a unique value that identifies a row in a table. If the primary key is defined to
any table column it means the duplication will be not allowed.
b. Composite Primary Key – When a primary key is applied to one or more columns in the same table is known as
Composite Primary Key.
c. Foreign Key (FK) – By default columns are foreign key, foreign key points to the primary key of another table.
Session 2: Create and Edit tables using wizard & SQL commands
Answer –
a. Table – A table is a collection of data components structured in the form of vertical columns and horizontal rows.
b. Columns / Fields / Attributes – Columns or Fields or Attributes all are the same, A column is a collection of data
values of a single data type, one for each row in a table. It is also known as the heading of the column.
c. Rows / Records / Tuples – A row, also known as a Record or Tuple, is a single data item in a table. A database table
can be represented as a series of rows and columns or fields. Each row in a table represents a set of related data, and
each row has the same structure.
Answer – Datatypes are used to define the type of data that will be stored in the database. Data types in the
OpenOffice base are classified into five types.
a. Numeric Types – Numeric data types are used to describe numerical values for fields in a database table. Numeric
data types used for numbers and decimals.
Some of the important numeric data types are –
a. Boolean
b. Integer
c. Numeric
d. Decimal
e. Float
f. double
b. Alphanumeric Types – Alphanumeric data types are used to describe character values for fields in a database.
Some of the important alphanumeric data types are –
a. Longvarchar
b. Char
c. Varchar
d. Varchar_ignorecase
c. Binary Types – For storing data in binary formats, binary data types are used. Binary data types in a database can
be used to store images, music files, and so on.
Some of the important Binary data types are –
a. Varbinary
b. Binary
c. Longvarbinary
d. Date time – Date and time data types are used to describe date and time values for fields in a database table.
Some of the important Date time data types are –
a. Date
b. Time
c. Timestamp
Answer – There are two different ways to creating the table in database –
a. Using Design View
b. Using Wizard
Answer – A table is a collection of data components structured in the form of vertical columns and horizontal rows.
Answer – Tuple is a single data item in a table. A database table can be represented as a series of rows and columns
or fields.
An attribute is a collection of data values of a single data type, one for each row in a table.
Answer – Referential integrity is used to keep data maintained, accurate and consistent.
Data in Base can be connected between two or more tables using primary key and foreign key constraints.
Referential integrity helps to –
a. If there is no connected record in the main key table, records are added to a related table.
b. Changing values in a primary if there are any dependent records in the linked table
c. If there are any matching linked records in an associated table, records from a primary key table are deleted.
16. What is the file extension for databases created using OpenOffice.Org Base?
17. List any three file formats that can be managed using OpenOffice.Org Base?
18. How many types of relationships can be created in Base? Explain each of the them.
Answer – There are three types of relationships –
a. One to One – Both tables in this relationship must have primary key columns.
b. One to Many or Many to One – One of the tables in this relationship must have a primary key column.
c. Many to Many – The primary key column is not present in any of the tables in this relationship.
19. What do you mean by Sorting? In how many ways it can be done?
Answer – Referential integrity is used to keep data maintained, accurate and consistent.
Data in Base can be connected between two or more tables using primary key and foreign key constraints.
For example – Suppose there is two table “Student_details” and “fee_details”,
Here, both have a common field “Grno” this is known as referential Integrity.
DDL (Data definition language) – Data definition language is used to design and modify the structure of a database.
Common DDL commands are
a. Create – This command is used to create database
b. Alter – This command is used to modify the database.
c. Drop – This command is used to delete database tables.
DML (Data manipulation language) – Data manipulation language provides commands for manipulating data in
databases.
Common DML commands are
a. Select – This command is used to display information from the database.
b. Insert – This command is used to insert new records in the database.
c. Delete – This command is used to delete records from the database.
d. Update – This command is used to modify records in the database.
Answer – Data manipulation language (DML) access and manipulate data in existing tables.
Name of DML commands –
a. Select
b. Insert
c. Update
d. Delete
Answer – Where clause is used to display specific data from the database.
25. Differentiate between Where clause and Orderby clause of SQL statements.
Answer – Where clause is used to display specific data from the database and Orderby used to display data in
ascending order or descending order.
26. State the purpose of Update Command with the help of an example.
Answer – The update statement is used to modify records in the table. Example of update command is – Update
Student_details set Location = ‘Pune’ where Rollno = 10;
b. To list the details of all the students whose percentage is between 90 to 100.
Answer – Select * from students where percentage >= 90 and percentage <= 100;
29. Write the SQL commands to answer the queries based on Fabric table
b. Write a query to display only those fabric whose disc is more than 10
30. Consider the following Vendor table and write the queries
11 Soap 40 80
22 Powder 80 30
55 Soap box 20 50
a. Display the total amount of each item. The amount must be calculated as the price multiplied by quantity for
each item.
32. Identify the columns and data types of a table: Airlines. Mention at least four columns with data type.
Answer –
Columns Data type
Flight No Text
No.of Passengers Integer
Airlines Text
Arrival_Time Date/Time
Departure_Time Date/Time
Fares Float
33. Identify the columns and data types of a table: Students. Mention at least four columns with data type.
Answer –
Columns Data type
RollNo Integer
Student_name Varchar(20)
Father_name Varchar(20)
Mother_name Varchar(20)
Address Varchar(50)
DOB Date
Answer – A form allows the user to enter information into a database in a systematic manner. It is a user-defined
interface that allows users to see, enter, and edit data directly in database.
Answer –
Forms –
a. Forms help or manage to store data in a systematic format.
b. The prerequisites to create a form would be –
c. Add all the necessary fields in the form
d. Make the connection between form and the table
Reports –
a. Reports display the data in a summarized manner.
b. The prerequisites to create a report would be –
c. Data
d. Data source
Answer –
Form
a. Forms are used to store the data in the semantic way
b. Edit, delete & modify can be easily managed
c. Auto calculation can be done easily
Report
a. Report display the data in the presenting format
b. Report can display all the record from the table
c. Edit, delete & modification cannot be done through report
d. You can take printout with the help of report
Answer – Yes form can display the data from queries, with the help of query you can filter the data and you can
display in the form.
39. In how many ways Forms and Reports can be created in a database?
Answer – There are two ways to create a form and report in the database.
a. Using Wizard
b. Using Design View