FDBMS
FDBMS
A data mean known facts or raw facts that can be recorded and that have
implicit meaning. For example, consider the names, telephone, numbers, and
addresses of the people you know. You may have recorded this data in an indexed
address book; you may have stored it on a hard drive, using a personal computer
and software such as Microsoft Access, or Excel.
Information: Processed data.
Database: Database is a large collection of related data that can be stored
generally describes activities of an organization.
Properties:
1. It is used to store data of an organization.
2. A database is designed and developed for a specific purpose.
3. It has some source from which data is derived and it is populated with that
data.
4. It can be of any size
5. It allows multiple users to share and access database at the same time.
Eg: - University database which includes students, faculty, courses & class
rooms information along with activities such as enrolment and teaching
courses.
DBMS (Database Management System)
A database management system (DBMS) is a collection of programs
(software) for defining, creating, manipulating and maintaining a database.
The DBMS is a general-purpose software package that facilitates the
processes of defining, constructing, manipulating, and sharing databases
among various users and applications.
Defining a database involves specifying the data types, structures, and
constraints for the data to be stored in the database.
Constructing the database is the process of storing the data itself on some
storage medium that is controlled by the DBMS.
Manipulating a database includes functions such as querying the database to
retrieve specific data, updating the database to reflect changes,, and
generating reports from the data
Sharing a database allows multiple users and programs to access the
database concurrently.
Simplified database system environment:
DBMS Applications:
1. Banking – For customer information, accounts, and loans, and banking
transactions. [all transactions]
2. Airlines – For reservation and schedule information. [reservations,
schedules]
3. Universities – For student information, course registrations, and grades.
[registration, grades]
4. Credit Card Transactions – For purchases on credit card and generation of
monthly statements.
5. Telecommunication – For keeping records of calls made, generating
monthly bills, maintaining balances on prepaid calling cards, and storing
information about communication networks.
6. Finance – For storing information about holdings, sales, and purchases of
financial instruments such as stocks and bonds.
7. Sales – For customer, product, and purchase information. [customers,
products, purchases]
8. Manufacturing – For management o f supply chain and for tracking
production of items in factories, inventories of items in
warehouses/stores, and orders for items. [production, inventory, orders,
supply chain]
9. Human Resources – For information about employees, salaries, payroll taxes
and benefits, and generation of paychecks. [employee records, salaries, tax
deductions]
File System:
Before the evolution of DBMS, File Systems are used to store and manage
the data.
In File Processing System data will be stored in individual files.
A File is a collection of data.
Files are typically designed to meet needs of a particular department or user
group.
Files are also typically designed to be part of a particular computer
application.
Consider an organization/enterprise that is organized as a collection of
departments/offices. Each department has certain data processing "needs",
many of which are unique to it. In the file processing approach, each
department would "own" a collection of relevant data and software
applications to manipulate that data.
Data Models:
A data model is a collection of concepts that can be used to describe the
structure of a database.
Structure of a database; mean the data types, relationships, and constraints
that should hold for the data. Most data models also include a set of basic
operations for specifying retrievals and updates on the database.
Types of Data Models
1. Relational Model
2. Entity-Relationship Model
3. Hierarchical Model
4. Network Model
5. Object-Oriented Model
1.Relational Model
Most commonly used model is the relational model.
In this model data is organized as two-dimensional tables.
Each table is called relation.
The relational model uses a collection of tables to represent both data and
the relationships among those data. Each table has multiple columns, and
each column has a unique name.
The relational model is implemented in database where a relation is
represented by a table, a tuple is represented by a row, and an attribute is
represented by a column of the table.
SID SNAME Branch Section
1 Ram CSE A
2 Raj ECE B
3 Rani IT C
2. Entity-Relationship Model
Entity-Relationship model is based on the notion of real world entities and
relationship among them.
ER Model is best used for the conceptual design of database.
ER Model is based on:
Entities and their attributes
Relationships among entities
Entity
An entity in ER Model is real world entity, which has some properties
called attributes. Every attribute is defined by its set of values, called domain.
For example, in a school database, a student is considered as an entity. Student has
various attributes like name, age and class etc.
Department
Teacher Student
Course
4. Network Data Model
In Network model data is represented as records and the records organized
as collection of arbitrary graphs.
The relationships among the data are represented by links, which can be
viewed as pointers.
In network model a record can have any number of parent records.
Department Student
Course Teacher
COURSE
The above schema diagram displays structure of each record type but not
actual instances of records.
A schema diagram displays only some aspects of a schema, such as the
names of record types and data items, and some types of constraints.
Instance:
The data in the database at a particular moment in time is called instance or
database state.
The distinction between database schema and database state is very
important. When we define a new database, we specify its database schema only to
the DBMS. At this point, the corresponding database state is the empty state with
no data. From then on, every time an update operation is applied to the database,
we get another Database state.
At any point in time, the database has a current state.
Levels of Abstraction or Three-Schema architecture:
Application (Middle) Tier − At this tier reside the application server and
the programs that access the database. For a user, this application tier
presents an abstracted view of the database. End-users are unaware of any
existence of the database beyond the application. At the other end, the
database tier is not aware of any other user beyond the application tier.
Hence, the application layer sits in the middle and acts as a mediator
between the end-user and the database.
User (Presentation) Tier − End-users operate on this tier and they know
nothing about any existence of the database beyond this layer. At this layer,
multiple views of the database can be provided by the application. All
views are generated by applications that reside in the application tier.