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

Database Management System 2

The document discusses database management systems and their importance. It describes what a database is, different types of databases, and features of database management systems. It also compares database systems to traditional file systems, highlighting advantages such as reduced redundancy and improved consistency.
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)
9 views

Database Management System 2

The document discusses database management systems and their importance. It describes what a database is, different types of databases, and features of database management systems. It also compares database systems to traditional file systems, highlighting advantages such as reduced redundancy and improved consistency.
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/ 13

Database management System

Each and every individual, company and organization have their own aim and target. Without
maintaining or without any data or information they cannot achieve their goal. They formulate plans
polices and to achieve the goal they should have data and information. Any logical decision should be
made on the basics of facts. Therefore it is duty of manager to manage each and every data and
information in safe and secure method. One of the secure methods of maintaining the data is used of
database management system.

Data
Collection of raw-facts is called data
Information
Processed data is called information which gives clear meaning to the user.
Importance of data.
1. To get information about something.
2. To make plan and policies.
3. To make decision
4. To give current result.
Database:
 A database is a repository (place where things/data are stored) for collection of related a data or
facts. Simply we can say that database is a collection of related data stored in a particular place.
 A database contains a collection of related items or facts arranged in a specific structure.
 The most common example of non-computerized database is telephone directory.
 Database program can also sort lists of, arranging them in alphabetical, numeric, or chronological
order.
 A database is an organized collection of data in easily accessible form which are shared and used
for multiple purposes as desired.

Importance Of Database
1. Data can be stored in small area
2. Save time while searching specific data
3. Database can store data for long time.
4. Database reduces risk of data being lost

Demerit of Traditional database System


1. more redundency occur in traditional data
2. More chances of data inconsistency.
3. Data integrity is not maintained.
4. Does not allow concurrent access
Redundency: Duplication of data is called data redundancy.
Consisstency: Correctness of a data is called consistency.
Inconsistency: incorrect data is called inconsistency.
Data integrity: Set of rules and standards that allows to enter correct data.
Types a) domain integrity: set of rules that enforce to enter correct value/data under a
field name
b) Entity integrity : set of rules that identify an object/entity uniquely is called

c) referential integrity :set of rules that helps to show relationship between object in a
database is called ……..

Item code Item name Rate quantity Amount


P001 Pen 50 10 500
P001 Pencil 10 20 200

Student student class class


Sid Classid
Name Class name
Address Section
sex Ac_year

1
Database Management System (DBMS)
 Database Management System is a software tool that allows multiple users to store, access, and
process data or facts into useful information.
 DBMS is an equally vital tool for people and organizations that use networks and stand-alone
personal computers.
 DMBS can be used at home and for commercial use.
 DBMS helps to maintain address list of friends and business contacts, manage household purchases
and budget, organize music CD and video libraries and store for home

Application of DBMS
Databases are widely used in
 Bankingemployee information, client information, account, loan, banking transaction
 Airlines employee information, ticket Reservation, Flight Schedule information, air traffic
information,
 Universities employee information, Student information, registration No., Result.
 Credit and Transaction Purchase on credit cards and monthly statement
 Telecommunication Record of call made, generating monthly bills
 Finance Sales and purchase of financial instrument
 Human Resource Information about employee, salary, payroll taxes, benefits, and generation of
paychecks

Some of the commonly used database management systems are as follows.


 dBase
 MS-Access
 Oracle
 My-SQL
 SQL server

Features of Database Management System


Every system has its own features. Some of the features of database management system are:
1. Easy to add new data.
2. Easy to modify the data.
3. Delete existing data.
4. Organize the data in proper sequence.
5. Sorting and indexing of data.
6. Easy queries (searching) in data.
7. Retrieve the data easily.
8. Print the formatted reports, labels etc.
9. Linking between two two or more databases.
10. it can be used as SQL (structure query language)

Database System versus file System


A database system has following advantages over file system
a. DBMS helps to add a new account easily than file system
b. Debit or credit of a transaction is done automatically in DBMS than file system.
c. DBMS can generate balance sheet automatically rather than file system.
d. DBMS can generate monthly statement but file system cannot.
e. Data integrity
f. Reduce data redundancy
g. Consistency
h. Allows concurrent access.

Function of Databases
A database is a organization or collection of related information. Any database need ti have the
following features to be a functional database
1. To store, manipulate and manage the information.
2. To reduce data redundancy.
3. To keep the latest and correct information. (Data consistency).
4. To automate the data managing and processing system
5. To improve the data security system.
6. To provide data validation facilities.

Demerit of Traditional database System


1. It helps to reduce data redundancy.
2
2. It helps to maintain data consistency.
3. It helps to maintain Data integrity.
4. It allow concurrent access database.

Student Class
RN Stuent Address DOB Sex
Name Class Class Sec
1 Soni Ktm 12-20-2008 F id name
2 Tisa Pok 10-22-2007 F 10 Ten A
3 soni But 10-22-2006 F 9 Nine B
4 Rachana Dhading 10-22-2004 F

Student Class

Rn Classid
1 10
9 Nine

Student(rn,student name,address,dob, sex)

Disadvantage of DBMS
 DBMS s/w are complex and expensive. so small organization cannot effort to implement database
properly
 Databases are usually increasing the cost of data processing.
 If database gets corrupted, it becomes difficult to get data/recover lost daata
 DBMS expert is needed to install,manage and repair database software.

Element of database
Data: Value entered under a field
Table
Any object or entity or thing which has some property is called table. Table has field and each
field holds data called record.
Field/ attribute
Column heading of a table is called field. The property of an entity is known as field. An
entity can have unique property or common property. So we can say that an entity have many
property/field.

Record
The collection of data stored horizontally for each field is known as record. A record is
complete set of information about an entity.

Tupple:
A record row in database is called tupple.
Index
The index is a numeric value organized internally by database system in order to keep data in
organized form and helps in fast retrieval of data. It speed up search operation. An index field may
accept duplicate or only unique values.

Cell
A cell is a intersection of row and column.
End users: are person who has need to use the computer according to their will
Structure Query Language: A database language used to create, insert, update, select and delete,
manipulate data in a database. tables
Macro: Macro consist of lists of actions that execute in response to an event such as button click.
Visual Basic Code : This is highly flexible and comprehensive language you can use to develop
complete user interactive applications.

File keeping has number of disadvantage such as which are the advantages of database as well as
feature of database.
Data redundancy Keeping or placing one original data into different place or location. Having
various copy of original data/file is called duplicate data/file

3
Data inconsistency various copy of data may no longer agree or mismatch of data is called
inconsistency because other copy of original data/file may not contain actual data that is in the original
data/file.

Difficulty in accessing data It is difficult, time consuming and tedious to search a piece of
data/information in file system

Data Isolation Data are scattered in various file and file may be in different format. Writing new
application program to retrieve the appropriate data is difficult.

Integrity problems Data stored in the database must satisfy certain types of consistency constraints.
Constraints are the limitation that should be match while entering the data or information.

Data Atomicity problem Like mechanical and electrical system computer system is subject to
failure. Data values stored must be in consistent state prior it goes to failure.
e.g.
Consider a program to transfer $5.0 from Account A to Account B. if a system failure occurs
during the execution of the program, it is possible that $5.0 was removed from account A but was not
credited to Account B. Resulting in an inconsistent database state. Clearly, it is essential to database
consistency that either both debit or ccredit occurs or both should not occur.

No Concurrent access anamolies  many systems allows many user to update the data without
inconsistency at the same time is called Concurrent access anomalies

Security problem  DBMS system provides strict security so no data leakage occurs.

Component of database
A database management system (DBMS) provides a secure medium for the storage and
retrieval of data. It helps to integrate and manage a large volume of related data in a convenient way. It
allows sharing data in the files that make up the database, delete existing, data, make changes in the
existing data, and selectively access portions of the data. The major database components are:
Transaction Processing:
It is the method in which data or information are processed or manipulated. It is the series of
action in which different event such as update, delete or modify a set of record may occurs.
Concurrency Management:
It is the database activity that maintains the consistency of shared data.
Security: It refers to the protection of data against unauthorized access.
Storage Management:
It is the way that defines how the data to be stored and how the storage manager (user)
interfaces the operating system to access the physical storage.

Data Abstraction (no need for xi)


Actual vision of data that how it is stored defined and can be accessed is called data
abstraction
Several levels of abstraction
Physical level  describe how data are actually stored
Logical level  what data are stored and what relationship exit among those data
View level  describe only part of entire database
Simplify their interaction with the system
Instance  the collection of information stored in the database at particular moment of time
Schema  Overall design of database is called Schema. It can be of
a. Logical Schema describes the database at logical level. A database may have several schema
at view level, sometime called sub-schema. Subschema describe different view of database.
b. Physical schema the database design at physical level

Attribute  are the descriptive properties of an entity that describe an entity. For each attribute, there
is set of permitted values

Types of attributes: Property of an object is called attribute. An object can have unique property or
common property.

4
Student

rn name Addres gender Phone


s

FN MN LN

Simple attribute Attributes that cannot be divided in subpart. Simple attribute accept single and
simple value

Composite attributes attributes that can be divided into subpart. If an attribute of an entity cannot
identify a record uniquely then we have to make other attribute as primary key along with the first
attribute.
E.g. name can be divided into f_name, m_name and l_name and
address can be divide into country, state, city,street,zipcode
single-valued attribute  attribute that takes only one value is a single valued attributes
e.g. loan_no,sid,eid, etc

Multivalued attributes If an attribute that takes multiple values then it is said to be multi-valued
attribute.
e.g. phone_no can take multiple value such as phone1,phone2, phone3 etc.

Derived attributes attribute that are derived from other attribute are called derived attribute
e.g. age attribute can be calculate from Date_of_birth attribute
An attribute that take null values when an entity does not have a value for it.

Relational Database
A database made up of a set of tables or database which consists of collection of object called
entities and relationship among those object/entities is called relational database.
Relational database management system
A database management system which reflects the relationships among the object of databse is
called Relational database management system.
Relationship is a an association (link ) among several entities.
Set of entities and the set of all relationship of the same type s termed as entity set and relationship set
we create form, query and report in which we pull information from more than one table. this
work can be done by creating suitable relationship among tables.
Relationship set  is a set of relationships of same type
Constraints  are rules to be followed, when database is designed.

Types of constraints/types of relationship


Mapping cardinalities
Mapping cardinalities or cardinality ratio express the number of entities to which another
entity can be associated via a relationship set
The relationships, which can be established between the databases, are of following types.

For a binary Relationship R Between entity A and B, mapping cardinality must be

One to one (1:1) If an entity in entity set A is associated with at most one entity in entity set B

A B

a d

b e

c f

one to many (1:M) if an entity in entity set A is associated with any entity in entity set B

A B

a d

b e 5
c f
many to one (M:1) if any entity of A is associated with at most one entity of entity set B .
A B

a d

b e

c f

many to many (M:M) if any entity of entity set A is associated with any entity of entity set B

A B

a d

b e

c f

Participation constraints
Participation of an entity E in a relationship set R is said o be TOTAL if every entity in E
participate at least one in R.
If entity in B participate in R is said to be PARTIAL if some entityin E participate in R

KEY is the way of specifying an entity within the entity set.


 An attribute or set of attribute that can specify an object uniquely is called key.

Student(rn,name,address,dob,gender,phone)
Student(rn,name,address,dob,gender,phone)

Super key  Set of attribute that uniquely identifies an entity/object.


Candidate key  minimum super key is a candidate key.
Primary key  minimum candidate key is a primary key. PK is an attribute that uniquely identifies an
entity/object.
Feature of primary key.
PK does not accept duplicate value
 PK does not accept NULL value
PK identify an object uniquely.
Foreign key
A foreign key is the linking pin between two tables. To become a foreign key a key must be
primary key.

File  is a collection of information of various items. A file has a name called filename. The filename
of dBASE can have 8 characters and DBF as an extension, thus a total of 11 characters.

Data processing
The process by which the raw data or facts collected from the field are inputted to the computer to
process and computer gives the required result is called data processing.
Some of the terms used in data processing are:
Data collection  collecting data from different source of filed by means of field survey,
questionnaire, interview.

Raw data or facts  any piece of information that is collected in the field and not entered into the
computer.

Filing  the process of keeping or storing collected data from the field in the registered is called
filing

Data entry putting the collected data to the computer in for further processing is called Data entry

6
Coding  is the process by which programmer writes queries to manipulate data that are the database
is called coding

Encoding The method of hiding the original message by using some technique while sending
message.
Decoding The method of retaining the original message which was encoded by using some
technique while receiving message.
Edit/ing  the method in which may change to the text but we do not save the changed text or
document is called edit/ing
Update/ting the method in which may change to the text and save the changed text or document is
called edit/ing
Insert/ing  to enter data by using SQL is called insert and the method to entering the data to the
computer is called Insert/ing  to enter data by using SQL is called insert and the method to entering
the data to the computer is called.
Select/ing  manipulating data or taking data from database is selecting.
Delete/ting  removing data from database is called deleting.
Modify/ing changing data in the database is called modifying.
Create/ing  making any objects on the database is called creating.
Verify/ing proving or checking the data or information in the database is called verifying.
Filtering  Removing unnecessary data from data base is called filtering.
Sorting ordering data in chronological (ascending order or descending order) is
Form : Form is an interface that retrieves data from database and displays to the user

Data models  underlying the structure of database is the data model/or database model is collection
of conceptual tools for describing data, data relationship, data semantic and consisting constraints
e.g. entity-relationship model ,Hierarchical model, Relational model and Network model.
Database Model
Relational Model
Hierarchical Model
Network Model
Method of Database
Centralized
Decentralized Database.
Distributed

Flat file data base


Relational database

Importance of Data processing


1. The data are processed very fast.
2. The data can be manipulated as the user’s requirement.
3. The information can be restructured as per the requirement.
4. The electronic data processing allows storing raw data and processed result in small space of
magnetic disk or magnetic tapes.

Process of converting data into information


1. collection
2. classification
3. Data entry.
4. sorting, adding, deleting or removing, merging, editing, updating or modifying,
5. Summarizing
6. Storing
7. Retrieval
8. Dissemination.

Inform Compit io Other


customer Supplier Business 7 n
ation
Dept
Data Collection
Data Entry

Data Entry

Classify

Process

Store

Retrieve

Duplicate

Disseminate

DM1 DM2 DM3

Action

Goald

SQL (Structure Query Language): is a database language which helps create database user and table. It
also helps insert , update, delete, select data in a database

Ms Access
Ms Access is a desktop database management system where we can create and maintain related data. It
is is a relational database management system (RDBMS). It uses file sharing mechanism. It collects
data and information in the form of tables.

Features of Ms Access
1. It provides useful database features such as database tables, forms, query,reports, data access pages
and macro.
2. It provide Backend as well as Front End database Development tool
3. It can easily add, edit, delete and display the data.
4. This provides end-user application development environment.
5. it incorporates three programming languages: Structure Query language (SQL), macro and Visual
Basic

Purpose of Ms Access
Ms Access provides the following facilities
1. Ms Access Database reduces data redundancy.
2. Ms Access Database can control data inconsistency.
3. Ms Access Database facilitates sharing of data.
4. Ms Access Database enforces database standards
8
5. It shows relationship among database object.
6. Ms Access Database ensures data security.
7. Ms Access Database maintains data integrity checks and validates data.

Objects of Ms Access Database


 Table  for defination see above
A table is the primary object of Ms-Access which is made of row and column. It is the
background object of DBMS. It helps to store data. Some part of Ms-Access are
i) Fields (column) ii) Records (Row) iii) Data
iv) Primary Key v) Index
Table can be created in four ways
i) Using wizard ii) using design view iii) Using datasheet view iv) By entering data.

there are two ways to view table


i) Datasheet view is the data table displayed in column and rows. Each column in datasheet is the
field and each row is a record.You can enter data in this view.
ii)Design view is an access mode that switch in order to modify the structure of the
table.

Importance of table
 To store data about specific topic.
 It holds the main information.
 It facilitates grouping and sorting the relevant data.

Way of creating table:


 Design view
 Using wizard
 Using datasheet view
 By entering data
Data type
Programming element that defines types of data is called data type.
Data type size e.g.
Text 0-255 character Ram Hari Krishna Dhungel
Memo 0-65535 character Subas is a genius student.
Number 1,2,4,8,10,12 byte
Currency 8 byte $500
Date/Time 8byte 6-jun-2020
Autonumber 4 byte
Lookup wizard 4 byte
Yes/no 1 bit
Hyperlink 2048 charater
OLE 1Gb
 Query
Query is one of the most important object of Ms-Access. It is a way of retrieving and editing
information according to the condition asked by user..
A query is a search or question that you make for a record or item
 Is important tools in a database
 Converts raw data into information
 Can be executed as a request to find all record that satisfying certain criteria.
 Are made up of records that from the fields of several tables.
 Simplest use of a query is to show selected field and records from one table.
Ms Access provide several tools, features and methods for organizing, searching and retrieving
data.

What can you do in query(Advantages of query)


 To view the field in certain order.
 To view, change and analyze the data.
 To give criteria for each field.
 To display the records joining tables and displaying results.
Different ways of creating Queries
 Using wizard.
 Using design view.
Types of queries
Simple/Select queries : queries used to select data from a database table
Cross-tab queries: queries used to select data from a database different table and

9
summarize large amount of data and perform calculations on the data using various
types of calculation
create queries: queries used to create table and user in database.
Update queries: queries used to modify data in table of database.
Append queries: queries used to add more data in table of database.
Delete queries: queries used to remove data in table of database.
Find Duplicate query: this query is very useful for finding out redundant data in a table. By
using this query, we can search for particular fields that are prone to redundancy in a database.
Find mismatch/Unmatched query: this query enables us to find all the records in a table that
are related with other related table in the database.

Form
Form is a foreground object of DBMS, which is designed to enter new records, edit and delete the
existing records easily. Forms present the data from a table or a query in a way we want it to be
displayed.
Use of form
 It is used to make modification, addition the data directly into the table
 To view the table in user defined manner.
 Database forms are interactive data entry forms.
 They need to be attractive for the user and easy to use.
 You can control and enhance the way your data looks on the screen.
 You can perform extensive editing of data using macros and VB procedures.
 You can link multiple form or reports by using macros or VB procedures that are run form
buttons.
A form can have one or more forms that show the related information of the data in the main
form.
Mainly there are two types of forms
 master-detail forms: It is the main form of a DBMA which contain detail related
information of an object. This form can call the sub-form.
 Sub-form: A form that can be embedded or called by master-detail form is called
sub-form
Different view/layout of form
 columnar View
 Design view
 Datasheet view
 Tabular view
 Justified view
Advantages of Form over table
 Form are easier to enter data than table.
 It is easier to make modification than table.
 It helps to make database application interactive and attractive
 it is easier to focus on specific/particular data.
 In form in your own way you can design on the screen.
 You can perform editing of data using macros or visual basic procedures.
Way of creating form
 Using wizard
 Using design view

Controls object are the parts of a form or report that you use to enter, edit, or display
data. Controls let you view and work with data in your database application.
Different control objects used in form are:
there are two types of controls they are
1. Bound controls : helps to display data retrieved from database table.
 text box
 combo box
 Text area
 Radio buttons
 Check box
1. Unbound controls : object which does not has control on data
 Selecting control
 Moving control
 Grouping control
 Resizing control
 Aligning control
 Label
10
 button

 Report
It is an object of MS-Access which helps to summarize, analyse, present and print data from
database
Reports are the printed result of data processing. It I s a very important object of database. A
report is an effective way of present your data in printed format or on a screen softcopy.
 A report is a printed form of the database for the officers and users.
 The data entry form and table are the place where the data are usually manipulated.
 Report allows to view a complete set of record from one or more table
 It is an important tool of Ms-Access.
Importance of Report
 It is helpful to give complete required information related to an object after processing from
different table.
 Report can compare, summarize and subtotal large set of data.
 Report can be created to produce attractive invoices, purchase order, mailing and labels.
 You can view reports on your screen before print it.
Way of creating report:
 Auto Report
 Report wizard

Form Report
Form is an interactive tool Report is a not an interactive tool
Form is used to enter and view data in database Report is used only to view the data from database.
Form should be attractive Report should attractive

Table Form
Form is a background tool Form is a foreground object of Ms-Access
Form is used to enter and store data in database Form is used to enter, edit and view data in database

Table do not have control objects Form has control objects

Table can be created in 4 ways Form can be created in 2 ways

Table Query
Form is a background tool Report is a not an foreground tool
Table is used to enter and store data in database Query is used to retrieve data and helps to do
calculation in database
Table do not have types There are different types of query

Table can be created in 4 ways Query can be created in 2 ways

Form Query
Form is a interactive object Report is a not interactive
Form is used to enter and edit data in database Query is used to retrieve data and helps to do
calculation in database
Form has control objects Query do not has control object

Table can be created in 4 ways Query can be created in 2 ways

 Macro

11
Pages : the Data Access page is the user interface for the database . They are used in viewing and
entering data form in a website or internet.
Datasheet view: - is an object of Ms-Access which helps to enter data or you can create a data entry
form or topic
Wizard
A wizard is a small program that interviews us, asking questions about what we want to
accomplish, then it takes over answers and creates the table , query or whatever according to our
specification.
Desing View Wizard
1 It takes more time. 1 It saves our time.
2 We can make our own design. 2 We can choose formats from pre-mod
one.
3 We can create any field according to 3 We copy fields from any of the simple
own requirement. table.

Sorting:
Sorting is the process of arranging the records in a particular order of a field is known as
sorting. the order of sorting may be entered in ascending order(A-Z) or descending order (Z-A)
Filtering
Filtering is an activity by which specified records only can be seen on the basic of criteria.

Database Database management system


1 It a collection of facts or data. 1 It is a software to manage database.
2 It consists of data. 2 It manges data stored in database.
3 It is part of DBMS. 3 It is a software system, which contains
database.
4 e.g. Result processing, inventory, salary 4 e.g. Ms-Access, dBase, Oracle, My-SQL,
sheet etc. SQL-Server etc.

Field size
field size is the property that set maximum or minimum size for data stored in a fixed set to
the text, number or auto number data type.

Number:- It allows any number to be entered in the field.


Autonumber:-It will automatically insert the unique number in the row data.

Macro
A macro is a set of one or more actions that each perform a particular operation, such as
opening a form or printing a report. Macros can help you to automate common tasks. For example, you
can run a macro that prints a report when a user clicks a command button.

or
A macro is a set of keystrokes and instruction recorded and saved under a short key code or
short name. When key code is typed or the macro name is used, the program carries out the instruction
of the macro.

Validation Rule
A rule that verify whether the data is entered data correctly or not.
Validation Text
A text that used to specify the message to be displayed to the user.
Format
Format property to specify the data display format for a field. Format property to display data
in a consistent format. For example, if you set the Format property for a Date/Time field to Medium
Date format, all dates entered will display in this form: 12-Jan-1999. If a user of your database enters a
date as 01/12/99 (or any other valid date format), Microsoft Access will convert the display to the
Medium Date format when the record is saved

Input Mask
If you define both a display format and an input mask for a field, Microsoft Access uses the
input mask when you are adding or editing data, and the Format setting determines how the data is
displayed when the record is saved. When using both Format and InputMask properties, be careful
that their results don't conflict
12
Caption
is the field property that
a. Rename a field name in a table or datasheet
b. Change the field name that appears in the datasheet

13

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy