0% found this document useful (0 votes)
68 views26 pages

Chitransh File BDPS

This document provides an overview of a database management system (DBMS). It discusses the key components of a database including data, software, hardware, and users. It describes some important features of databases like tables, fields, records, queries, forms, and reports. It explains what a DBMS is and how it works as an interface between users and the centralized database. Some advantages of using a DBMS like reducing data redundancy and enforcing data integrity are also summarized.

Uploaded by

Chitransh Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views26 pages

Chitransh File BDPS

This document provides an overview of a database management system (DBMS). It discusses the key components of a database including data, software, hardware, and users. It describes some important features of databases like tables, fields, records, queries, forms, and reports. It explains what a DBMS is and how it works as an interface between users and the centralized database. Some advantages of using a DBMS like reducing data redundancy and enforcing data integrity are also summarized.

Uploaded by

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

Blue DiamondPublic school

SUBJECT:- IT-402
SESSION 2022-23

SUBMITTED BY : Chitransh Rana

SUBMITTED TO : Mr.Rajkumar sir

CLASS : 10 C ROLL NO.13


Acknowledgement

I would like to express my special


thanks of gratitude to our
computer teacher
Mr.rajkumar who gave me tha
golden opportunity to do this
wonderful project on DBMS '
who also helped me in
completing my project.
CERTIFICATE

this is to certify that


“CHITRANSH RANA” student
of class 10-c successfully
completed their project
under the guidance
of”mr.rajkumar

Teacher’s sign
DATABASE
MANAGEMENT SYSTEM
(DBMS)
Introduction to Database Management System
A database is basically a computer based record/data/information keeping system. Data is raw, unorganized facts and entities
relevant to the user need to be processed such as a digital representation of text, numbers, graphical images or sound. The data
are stored in such a way that they are independent of the programs used by the people for accessing the data.

e.g. consider the names, telephone numbers and addresses of the relatives etc. You may have recorded this data in an indexed
address book or you may have stored it on a hard drive, using application software such as Microsoft Access or OpenOffice.org
BASE. Database can be created with the help of given structure:

Information – When data is processed, organised, structured or presented in a given context so as to make it useful is called
information.
Character – The value or data are in the form of letter, number or special character.
File – A file is a collection of related record.

NEED FOR A DATABASE

The need for a database arose in the early 1960s in response to the traditional file processing system. In the file processing
system, the data is stored in the form of files and a number of application programs are written by programmers to add, modify,
delete and retrieve data to and from appropriate files.
However, the file processing system has a number of problems, which are as follows:

•Some information may be duplicate in several files.

•The file processing system lacks the insulation between program and data.

•Handling new queries is difficult, since it requires change in the existing application programs or requires a new application
program.

•Unable to maintain data standards and does not provide data sharing.

•In this system, all the integrity rules need to be explicitly programmed in all application programs, which are using that
particular data item.

•This system also lacks security features.

•To overcome these problems, database system was designed.


COMPONENTS OF A DATABASE

A database consists of several components. Each component plays an important role in the database system environment.
The major components of database are as follows:

Data
It is raw numbers, characters or facts represented by value. Most of the organisations generate, store and process large amount
of data. The data acts as a bridge between the hardware and the software. Data may be of different types such as User data,
Metadata and Application Metadata.

Software
It is a set of programs that lies between the stored data and the users of database. It is used to control and manage the overall
computerized database. It uses different types of software such as MySQL, Oracle etc.

Hardware
It is the physical aspect of computer, telecommunication and database, which consists of the secondary storage devices such as
magnetic disks, optical discs etc., on which data is stored.

Users
It is the person, who needs information from the database to carry out its primary business responsibilities.
The various types of users which can access the database system are as follows:

Database Administrator (DBA)


A person, who is responsible for managing or establishing policies for the maintenance and handling the overall database
management system is called DBA.

Application Programmers
The people, who write application programs in programming languages to interact and manipulate the database are called
application programmers.

End-user
A person, who interacts with the database system to perform different operations on the database like inserting, deleting etc.,
through menus or forms.

FEATURES OF A DATABASE

Features of database to let you manage your data are as follows:

Tables
It is the building block of any relational database model, where all the actual data is defined and entered. A database consists of
many tables. Tables (relations) consist of cells at the intersection of records (rows) and fields (columns). Different types of
operations are done on the tables such as storing, filtering, retrieving and editing of data. It is also known as file.

Field (Data item)


It is an area (within the record), reserved for a specific piece of data. It is the individual sub-component of one record. It contains
set of characters, e.g. customer number, customer name, street address, city, state, phone number, current address etc. Field of a
table is also known as column or attribute.

Record
It is the collection of data items of all the fields (information) pertaining to one entity or a complete unit of information, i.e. a person,
company transition etc. Record of a table is also known as row, entity or tuple.

Queries
It is an inquiry into the database using the SELECT statement. These statements give you filtered data according to your
conditions and specifications indicating the fields, records and summaries which a user wants to fetch from a database. It allows
you to extract information from the database based on the conditions that you define in query.

Forms
In a database, a form is a window or a screen that contains numerous fields or spaces to enter data. Forms can be used to view
and edit your data. It is an interface in user specified layout.
e.g. a user can create a data entry form that looks exactly like a paper form. People generally prefer to enter data into a well-
designed form, rather than a table.

Reports
When you want to print those records which are fetched from your database, design a report. It is an effective way to present data
in a printed format. It allows you to represent data retrieved from one or more tables, so that it can be analysed.

DATABASE MANAGEMENT SYSTEM (DBMS)

It is a collection of programs that enables users to create, maintain database and control all the access to the database. It is a
computer based record keeping system.

The primary goal of the DBMS is to provide an environment that is both convenient and efficient for user to retrieve and store
information. It acts as an interface between the application program and the data stored in the database.

DBMS is a software package that manages database, e.g. MySQL, INGRES, MS-ACCESS etc.

DBMS is actually a tool that is used to perform any kind of operation on data in database. It also maintains data consistency in
case of multiple users. The purpose of a DBMS is to bridge the gap between information and data. Some basic processes that are
supported by a DBMS are as follows:

•Specification of data types, structures and constraints to be considered in an application.

•Storing the data itself into persistent storage.

•Manipulation of the database.

•Querying the database to retrieve desired information.

•Updating the content of the database.

Relational DataBase Management System (RDBMS)


RDBMS is a type of DataBase Management System that stores data in the form of relations (tables). Relational databases are
powerful, so they require few assumptions about how data is related or how, it will be extracted from the database.
An important feature of relational database system is that a single database can be spread across several tables. Base, Oracle,
DB2, SAP, Sybase, ASE, Informix, Access etc. are the examples of RDBMS.
WORKING OF A DATABASE

Database is created to operate large quantities of information by input, store, retrieve and manage the information. It is a
centralised location which provides an easy way to access the data by several users.

It does not keep the separate copies of a particular data file still a number of users can access the same data at the same time.

As the given diagram shows, DBMS works as an interface between the user and the centralized database. First, a request or a
query is forwarded to a DBMS which works (i.e. a searching process is started on the centralized database) on the received query
with the available data and if the result is obtained, it is forwarded to the user.

If the output does not completely fulfill the requirements of the user then a rollback (again search) is done and again search
process is performed until the desired output is obtained.

Advantages of a Database/DBMS
The centralized nature of database system provides several advantages, which overcome the limitations of the conventional file
processing system.
These advantages are as follows:

1.Reduce data redundancy Redundancy means ‘duplication of data’. This eliminates the replication of data item in different
files, extra processing required to face the data item from a large database. This also ensures data consistency and saves
the storage space.

2.Enforcing data integrity It means that the data contained in the database is accurate and consistent. Integrity constraints or
consistency rules can be applied to database, so that the correct data can be entered into the database.

3.Data sharing The data stored in the database can be shared among multiple users or application programs.

4.Data security The DBMS ensures that the access of database is done only through an authorized user.

5.Ease of application development The application programmer needs to develop the application programs according to the
user’s needs.

6.Backup and recovery The DBMS provides backup and recovery sub-system that is responsible to recover data from
hardware and software failures.

7.Multiple views of data A view may be the subset of database. Various users may have different views of the database
itself.

8.Enforced standards It can ensure that all the data follow the applicable standards.

9.Data independence System data descriptions are independent from the application programs.

Disadvantages of a Database/DBMS
There are many advantages of database, but database also have some minor disadvantages.
These disadvantages are as follows:

1.Cost of hardware and software Through the use of a database system, new costs are generated due to additional
hardware and software requirements.

2.Complexity A database system creates additional complexity and requirements.

3.Database failures If database is corrupted due to power failure or it is corrupted on the storage media, then our valuable
data may be lost or the system will stop working.

4.Lower efficiency A database system is a multi-user , software, which is less efficient.


KEY FIELDS

The key is defined as the column or the set of columns of the database table which is used to identify each record uniquely in a
relation, e.g. if a table has id, name and address as the column names then each one is known as the key for that table. The key
field is a unique identifier for each record, e.g. In Student table, you could use a combination of the lastname and firstname (or
perhaps lastname, firstname to ensure you to identify each student uniquely) as a key field.

Types of Key Fields


The following are the types of key fields available in the DBMS system:

Primary Key
A field or a set of fields that uniquely identify each record in a table is known as a primary key. Each relation has at least one
column for which each row that must have a unique value. Only one column attributes can be defined as a primary key for each
table.
A primary key must possess the following properties:

•It does not allow null values.

•It has a unique index.

•It allows numbers and text both.

e.g. In the Student table, student works as a primary key because it contains Ids which are unique for each student.

Candidate Key
The set of all attributes which can uniquely identify each tuple of a relation are known as candidate keys. Each table may have
one or more candidate keys and one of them will become the primary key. The candidate key of a relation is always a minimal key.
e.g. Column student and the combination of firstname and lastname work as the candidate keys for the Student table.
A candidate key must possess the following properties:

•For each row, the value of the key must uniquely identify that row.

•No attribute in the key can be discarded without destroying the property of unique identification.

Alternate Key
From the set of candidate keys after selecting one of the key as a primary key, all other remaining keys are known as alternate
keys.
e.g. From the candidate keys (student, firstname and lastname), if student is chosen as a primary key, then the firstname and
lastname columns work as alternate keys.

Foreign key
A field of a table (relation) that references the primary key of another table is referred to as foreign key. The relationship between
two tables is established with the help of foreign key. A table may have multiple foreign keys and each foreign key can have a
different referenced table. Foreign keys play an essential role in database design, when tables are broken apart, then foreign keys
make it possible for them to be reconstructed.
e.g. column of Student table (reference table) works as a foreign key as well as a primary key for Course table (referenced table).

Creating A Database Object

There are several popular RDBMS applications like microsoft access,open office base.Here we shall use libre office base open
source database applications.

Opening libre office

1. Start > all programs > libre office


Creating a DataBase

1. Open libre office and select base database from the sidebar

2. In the pop up window click on database

3. In the database wizard dialogue box select create a new database option

4. Click next

5. Click on save button

Create and working with Tables


1. Click on Create Table in design View .... option in the tasks pane.

2. As you choose to create a table using Design view, the design view window opens.

3. Under field name specify the names of the fields that make the Table

4. define the data type under Field type.

Setting the primary key


1. Right click on the lest hand side gray area showing a green arrow beside the desired field and select the
desired field and select Primary key.

Create Table using Wizard

1. Click on Table object > Select Use Wizard to create table in Tasks pans.

2. In the Table wizard select a sample table and add desired fields. Click next button.

3. Specify for automatic primary


key. Click on next button.

4. Specify a relevant, unique name to the table. Click Finish button.


Create Table Using SQL Command

To open SQL command window, go to TOOL menu > SQL option.


Relationships and Referential Integrity

1. One to many : This means one record in one table has many matching records in the other
related table.

2. One to One : This means one record in one table has one matching records in the other related
table.

3. Many to Many : This means many record in one table has many matching records in the other
related table.

Creating and managing queries

Create query using Query wizard.

1. Select Query object an click on Use Wizard to create Query option in Tasks pane.
2. select the desired table in the forst step of Query wizard and add desired fields in the Query.

3. At the last click on finish..

Create Query using Design view

1. Click on Queries object and Select Create Query in Design view option in tasks pane and desired table.
2. Fill all the required data and click on finish.

Structured Query Language

Creating Query in SQL View

Select Create Query in Sql View option in the tasks of Query object. In SQL View, type:

SELECT *from Item; Press F5


Display Selective fields

Inserting Data in the Table


Building Forms

Step 1: Select fields.


1.Under Tables or queries, select Vacations as the table. Available fields lists the fields for the Vacations table.
2.Click the right double arrow to move all of these fields to the Fields in the form list. Click Next.

Figure 21: Form Wizard steps.

Top of page

Step 2: Set up a subform.


Since we have already created a relationship between the Fuel and Vacations tables, we will use that relationship. If no
relationship had been defined, this would be done in step 4.
1.Click the box labeled Add Subform.
2.Click the radio button labeled Subform based upon existing relation.
3.Fuel is listed as a relation we want to add. So, click Fuel to highlight it as in Figure 22. Click Next.

Figure 22: Adding a subform.

Top of page

Step 3: Add subform fields.


This step is exactly the same as step 1. The only difference is that not all fields will be used in the subform.
1.Select Fuel under Tables or queries.
2.Use the   >>   button to move all the fields to the right.
3.Click the FuelID field to highlight it.
4.Use the   <   button to move the FuelID to the left (Figure 23).
5.Click   Next  .

Figure 23: Selecting fields of a subform.

Top of page

Step 4: Get joined fields.


This step is for tables or queries for which no relationship has been defined. Since we want to list all expenses by the
day they occur in both the form and subform, we will join the Date fields of these two tables (Figure 24).

Figure 24: Selection of joined subform and main form fields.

1.Select Date from the First joined subform field dropdown list. This is the Date field in the Fuel table. This is not the
Primary key for the Fuel table, but it is known as a Foreign key.
2.Select Date from the First joined main form field dropdown list. This is the Date field in the Vacations table. This is the
Primary key for the Vacations table. Click   Next  .

It is possible to create a relationship between two tables that is based upon more than one pair of
fields. How to do that and why is discussed in the Base Guide (not yet written).
When selecting a pair of fields from two tables to use as a relationship, they have to have the same
field type. That is why we used the Date field from both tables: both their field types are
Date[DATE].
Whether a single pair of fields from two tables are chosen as the relationship or two or more pairs
are chosen, certain requirements must be met for the form to work.

• No field from the subform can be the Primary key for its table. (FuelID cannot be used.)
• Each pair of joined fields must have the same file type.
• One of the fields from the main form must be the Primary key for its table. (Date would have to
be used.)
Top of page
Step 5: Arrange controls.
Each control in a form consists of two parts: label and field. This step in creating the form determine
where a control's label and field are placed in relationship with each other. The four choices from
left to right are Columnar left, Columnar - Labels on top, As Data Sheet, and In Blocks - Labels
Above (Figure 25).
1.Arrangement of the main form: Click Columnar - Labels on top. (The labels will be placed above their field.
2.Arrangement of the subform: Click As Data Sheet. (The labels are column headings and the field entries are in
spreadsheet format.) Click   Next  .

Figure 25: Control arrangements.

Top of page

Step 6: Set data entry.


Unless you have a need for any of these entries to be checked, accept the default settings. Click   Next  .

Top of page

Step 7: Apply styles.


1.Select the color you want in the Apply Styles list. (I chose the beige which is Orange 4 in the Color table.)
2.Select the Field border you want. (I prefer the 3-D look. You might want to experiment with the different possible
settings.)
3.Click Next.
Top of page

Step 8: Set name.


1.Enter the name for the form. In this case, it is Fuel.
2.Click the circle in from of Modify the form. (This circle is called a radio button.)
3.Click   Next  . The form opens in Edit mode.

Creating report
Step 1
In this step you select the Table Fields that you want the report to contain. In
this example we select the Title, Author and PublishingDate fields.

Step 2

The report generates a label for each field. By default Base chooses the field
name for the label name. In our example we change the "PublishingDate" field
to "Publishing Date".
Step 3

A report can group the results by one ore more fields. In our example we


choose to group the results by Author.
Step 4

As with queries, the results in reports can be sorted. By default results are
sorted by the group field (Author). You can specify more levels of sorting.
Leave the default values.
Step 5

In this step we choose the Layout for the data and the headers and footers of
the report. Click on the available options to preview each layout.
Step 6

Here we specify the title and the type of the report. A dynamic report


generates data from the current table data. This means that if we update data
on the table that feeds the report, the report will change accordingly.’
BIBLIOGRAPHY
I have taken help of
•Our class 10 IT textbook
•Wikipedia
•Google

You might also like