Database Management System (1)
Database Management System (1)
System
Shikha Shokeen
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.
Relational Data Model
Shikha Shokeen
Relational Database Model
Shikha Shokeen
Objects of an RDBMS
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 –
• TextData Types
• Numeric Data Type
• Currency Data Type
• Date Data Type
• Boolean Data Type
Shikha Shokeen
• Binary Data Type
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.
1.
Name Data type Signed Range
Tiny Integer TYNYINT No 0-255
Small Integer SMALLINT Yes -32768 to 32768
Integer INTEGER Yes -2.14×109 to 2.14×109
BigInt BIGINT Yes -2.3×1018 to 2.3×1018
Number NUMERIC Yes Unlimited
Decimal DECIMAL Yes Unlimited
Float FLOAT Yes
Real REAL Yes 5×10(-324) to 1.79×10(308)
Double DOUBLE Yes
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.
Timestamp Stores date and time information at once.
Boolean
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
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 –
Types of Relationships
1. One-to-One
2. One-to-many
3. Many-to-Many Shikha Shokeen
One-to-One relationship
One-to-Many relationship
Many-to-Many relationship
In a One-to-Many relationship, the master table has multiple records
and the transaction table has multiple records.
-
getting out of sync.
4. Any update in the master table is automatically reflected in the
transaction 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.
Referential Integrity
Query
1. Using a Wizard
2. In Design View
3. In SQL view Shikha Shokeen
Database Languages
Select Statement
Select statement is most important for retrieving and for displaying data
from a database.
-
Answer: Select * from product where price < 90;
Answer: Select * from product where Price >= 40 and Price <= 120;
UPDATE statement
Update statement is used to update existing records present in database.
The updated statement will apply using WHERE clause.
-
Answer: Update product Set Price = 300 where Price = 250;
Form
1. Using a wizard
2. Using the Design View
Creating a Form Using a Wizard
You can create report from the Report using a wizard. To create a
report, follow the following steps –
Reference : -
https://cbseskilleducation.com/database-
management-system-class-10-notes/
Shikha Shokeen
Answer –
Data – The raw facts constitute data. The facts may be related to
any person, place, activity, or thing. It may be stored in the form
of text, graphics, audio, or video.
2. What is a database?
Shikha Shokeen
• Table
• Form
• Queries
Shikha Shokeen
• Report
11. Give the advantages of a database.
-
users are permitted to access the database. For example, if
you log in to your Gmail account, then you will see your
email only; you will not see any other account email.
-
• Backup and Recovery – Backup and recovery are handled
automatically by the database management system.
• 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 a
registered recovery backup ticket from the IRCTC website,
then whatever changes are there, it will be the same for all
the users who are trying to reserve the ticket.
Chapter 9: Starting with LibreOffice Base
Answer – Data types are used to define the type of data that will
be stored in the database. Data types in the LibreOffice base are
classified into six types.
• TYNYINT
• SMALLINT
• INTEGER
• BIGINT Shikha Shokeen
• NUMERIC
• DECIMAL
• FLOAT
• REAL
• DOUBLE
c. 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.
d. Date Data Type – This data type is used to indicate dates and
time. The date and time can be stored in various formats.
Answer – There are two different ways to create the table in the
database:
Using a Wizard
•
• In Design View
Shikha Shokeen
• In SQL view
26. Consider the table given below and answer the questions
that follow
•Using a wizard
•Using the Design View
30. What is the Forms Control Toolbar in LibreOffice Base?
Answer –
Form
•Forms are used to store the data in a semantic way.
• Edit, delete, & modify can be easily managed.
• Auto calculation can be done easily.
Report
Reference : -
https://cbseskilleducation.com/database-management-system-
class-10-questions-and-answers/