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

Unit-1 DBMS

Dbms

Uploaded by

razamdirfan77
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Unit-1 DBMS

Dbms

Uploaded by

razamdirfan77
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

What is a database management system?

A database management system (DBMS) is a software tool that enables users to manage a
database easily. It allows users to access and interact with the underlying data in the database.
These actions can range from simply querying data to defining database schemas that
fundamentally affect the database structure.

Furthermore, DBMS allow users to interact with a database securely and


concurrently without interfering with each user and while maintaining data integrity.

Understanding the distinction between data and information is crucial in today’s digital landscape.
Data comprises raw, unprocessed facts that need context to become useful, while information is
data that has been processed, organized, and interpreted to add meaning and value. This
explanation sets the stage for how businesses can transform data into strategic assets
through effective knowledge management.

What is Data?

Data represents raw elements or unprocessed facts, including numbers and symbols to text and
images. When collected and observed without interpretation, these elements remain just data—
simple and unorganized. When these pieces are analyzed and contextualized, they transform into
something more meaningful.

Data comes in various forms:

• Quantitative data, like an item’s weight, volume, or cost, is provided numerically.


MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

• Qualitative data is descriptive but non-numerical, such as a person’s name and sex.

What is Information?

You get information when data is processed, organized, interpreted, and structured. The
comprehensible output derived from raw data helps inform decisions, strategies, and actions.
Information is essentially data made valuable and accessible—an integral component of decision-
making.

For instance, if data points include daily temperature readings over a year, information is
recognizing the trend of temperatures, understanding seasonal changes, and predicting future
weather conditions.

What is the Difference Between Data and Information?

The transformation from data to information is fundamental in harnessing the potential of business
analytics and involves several key distinctions. In its original form, data is raw and often chaotic,
lacking meaningful structure or context. On the other hand, information is the refined, analyzed,
and structured output derived from this data, tailored to provide actionable insights and facilitate
strategic decision-making.

The journey from data to information involves several key distinctions:

• Data is raw and unstructured, like individual customer interactions or transaction logs.

• Information provides context and insights, like a trend analysis that shows increasing customer
satisfaction or sales figures over time.

• Data is often abundant and readily available but can be overwhelming without interpretation.

• Information is curated and actionable, offering strategic insights to guide business decisions.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

What Is a Database?

Database defined

A database is an organized collection of structured information, or data, typically stored


electronically in a computer system. A database is usually controlled by a database management
system (DBMS). Together, the data and the DBMS, along with the applications that are
associated with them, are referred to as a database system, often shortened to just database.
Data within the most common types of databases in operation today is typically modeled in rows
and columns in a series of tables to make processing and data querying efficient. The data can
then be easily accessed, managed, modified, updated, controlled, and organized. Most databases
use structured query language (SQL) for writing and querying data.

File System Vs DBMS: Explore What is the Difference between File System and DBMS
File System helps to store a collection of raw files of data into a hard disk, while DBMS is a
software system, and it helps to store, manipulate or recover data. In this article, attempts have
been made to explain the terms, find their definitions and comparisons, and finally to identify the
difference between File System and DBMS.

The terms at discussion in this article, are:

• File System
• DBMS

What is a File System?

File system is a method of organising the files with a hard disk or other medium of storage. File
system arranges the files and helps in retrieving the files, when required. It is compatible with
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

different file types, such as mp3, doc, txt, mp4,etc and these are also grouped into directories. It
also influences the method of writing and reading data to the hard disk.

Examples are NTFS or the New Technology File System and EXT, the Extended File System.

What is a DBMS?

DBMS, meanwhile, is the acronym for Database Management System. It is also a software used
to store and regain user’s data, while also maintaining the required security measures. This
includes a group of programmes that can help to manipulate the database. In bigger systems,
DBMS helps the users as well as third party software to store and recover the data.

Examples are MySQL, MS SQL Server, Oracle and so on.

What is the Difference between File System and DBMS?

The file system is a collection of data and for any management with it, the user has to write the
procedures, while DBMS is a collection of data and user need not write the procedures for
handling the database. Learn about what is the difference between a file system and DBMS from
the table given.

Difference between File System and DBMS


FILE SYSTEM DBMS

Used to manage and organise the files A software to store and retrieve the user’s data
stored in the hard disk of the computer

Redundant data is present No presence of redundant data


MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Query processing is not so efficient Query processing is efficient

Data consistency is low Due to the process of normalisation, the data


consistency is high

Less complex, does not support complicated More complexity in managing the data, easier to
transactions implement complicated transactions

Less security Supports more security mechanisms

Less expensive in comparison to DBMS Higher cost than the File system

Does not support crash recovery Crash recovery mechanism is highly supported

In a database management system (DBMS), a schema is the overall design of a database, while
an instance is the data stored in the database at a specific moment, and a subschema is a view of
the database as seen by an application program:

• Schema

The schema is the overall description of a database, including its structure and how everything
is located. There are three types of schemas: physical, logical, and view.

• Instance

The instance is the collection of data and information stored in the database at a specific
moment in time.

• Subschema
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

A subschema is a view of the database as seen by an application program. It's often a subset of
the schema definition. Subschemas can restrict access to the database, identify accessible areas,
records, and elements, and define logical records.

Instance and Schema in DBMS

What is DBMS Schema?

Here the DBMS schema means designing the database. For example, if we take the example of
the employee table. The employee table contains the following attributes. These attributes are
EMP_ID, EMP_ADDRESS, EMP_NAME, EMP_CONTACT. These are the schema of the
employee table.

Schema is further divided into three types. These three are as follows.

1. Logical schema.
2. View schema.
3. Physical schema.

The schema defines the logical view of the database. It provides some knowledge about the
database and what data needs to go where.

In DBMS, the schema is shown in diagram format.

We can understand the relationship between the data present in the database. With the help of
this schema, we can implement the DBMS function such as delete, insert, search, update, etc.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Let us understand this by the below diagram. There are three diagrams, i.e., section, course, and
student. This diagram shows the relationship between the section and the course diagram.
Schema is the only type of structural view of the database that is shown below.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System


MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

1. Physical schema:

In the physical schema, the database is designed at the physical level. At this level, the schema
describes how the data block is stored and how the storage is managed.

2. Logical schema:

In the logical schema, the database is designed at a logical level. At this level, the programmer
and data administrator perform their work. Also, at this level, a certain amount of data is stored
in a structured way. But the internal implementation data are hidden in the physical layer for the
security proposed.

3. View schema:

In view schema, the database is designed at the view level. This schema describes the user
interaction with the database system.

Moreover, Data Definition Language (DDL) statements help to denote the schema of a database.
The schema represents the name of the table, the name of attributes, and their types; constraints
of the tables are related to the schema. Therefore, if users want to modify the schema, they can
write DDL statements.

What is DBMS Instance?

In DBMS, the data is stored for a particular amount of time and is called an instance of the
database. The database schema defines the attributes of the database in the particular DBMS. The
value of the particular attribute at a particular moment in time is known as an instance of the
DBMS.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

For example, in the above example, we have taken the example of the attribute of the schema. In
this example, each table contains two rows or two records. In the above schema of the table, the
employee table has some instances because all the data stored by the table have some instances.

Let's take another example: Let's say we have a single table student in the database; today, the
table has 100 records, so today, the instance of the database has 100 records. We are going to add
another 100 records to this table by tomorrow, so the instance of the database tomorrow will
have 200 records in the table. In short, at a particular moment, the data stored in the database is
called the instance; this change over time as and when we add, delete or update data in the
database.

Differences between Database Schema and Instance

Both of these help in describing the data available in a database, but there is a fundamental
difference between Schema and Instance in DBMS. Schema refers to the overall description of
any given database. Instance basically refers to a collection of data and Information that the
database stores at any particular moment.

The major differences between schema and instance are as follows:

Database Schema Database Instance

It is the definition of the database, or it is It is a snapshot of a database at a specific moment.


defined as the description of the database.

It rarely changes. It changes frequently.


MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

This corresponds to the variable The value of the variable in a program at a point
declaration of a programming language. in time corresponds to an instance of the database
schema.

Defines the basic structure of the database, It is the set of Information stored at a particular
i.e., how the data will be stored in the time.
database.

Schema is same for whole database. Data in instances can be changed using addition,
deletion, updation.

It does not change very frequently. It changes very frequently

Database tasks in a DBMS


The typical database administrative tasks that can be performed using a DBMS include:

• Configuring authentication and authorization. Easily configure user accounts, define


access policies, modify restrictions, and access scopes. These operations allow administrators
to limit access to underlying data, control user actions, and manage users in databases.
• Providing data backups and snapshots. DBMS can simplify the backup process of
databases by providing a simpler and straightforward interface to manage backups and
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

snapshots. They can even move these backups to third-party locations such as cloud storage
for safekeeping.
• Performance tuning. DBMS can monitor the performance of databases using integrated
tools and enable users to tune databases by creating optimized indexes. It reduces I/O usage to
optimize SQL queries, enabling the best performance from the database.
• Data recovery. In a recovery operation, DBMS provides a recovery platform with the
necessary tools to fully or partially restore databases to their previous state—effortlessly.

All these administrative tasks are facilitated using a single management interface. Most modern
DBMS support handling multiple database workloads from a centralized DBMS software, even
in a distributed database scenario. Furthermore, they allow organizations to have a governable
top-down view of all the data, users, groups, locations, etc., in an organized manner.

DBMS system schematic


The following diagram illustrates the schematic of a DBMS system:
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Need of DBMS
A Database Management System (DBMS) is essential for various reasons in modern computing
environments. Here are some key reasons why DBMS is necessary:
1. Data Organization and Management
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

● Structured Data Storage: DBMS allows for the systematic storage of data in tables, making it
easy to organize, retrieve, and manage large volumes of data.
● Efficient Data Retrieval: With a well-designed DBMS, querying and retrieving specific data
becomes efficient and straightforward.

2. Data Integrity and Accuracy


● Data Integrity: DBMS ensures that the data remains accurate and consistent through the use
of constraints, triggers, and rules.
● Minimizing Redundancy: By normalizing data, DBMS reduces data redundancy, ensuring
that the same piece of data is not unnecessarily duplicated.

3. Data Security
● Access Control: DBMS provides robust security mechanisms to control access to data,
ensuring that only authorized users can perform certain actions on the database.
● Data Encryption: Sensitive data can be encrypted to protect it from unauthorized access and
breaches.

4. Data Backup and Recovery


● Automated Backup: DBMS systems often include automated backup procedures that ensure
data is regularly backed up.
● Recovery Mechanisms: In the event of data loss or corruption, DBMS provides tools and
processes to restore data from backups.

5. Concurrent Access and Data Sharing


● Multi-User Environment: DBMS supports concurrent access, allowing multiple users to work
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

with the same database simultaneously without conflicts.


● Data Sharing: It facilitates data sharing among multiple users and applications, enhancing
collaboration and productivity.

6. Data Independence
● Logical Data Independence: The ability to change the logical schema without altering the
physical schema, thus not affecting the applications using the data.
● Physical Data Independence: Changes in the physical storage of data do not impact the
logical schema, ensuring that applications can run without modifications.

7. Transaction Management
● ACID Properties: DBMS ensures that all database transactions adhere to ACID properties
(Atomicity, Consistency, Isolation, Durability), providing reliable and secure transaction
processing.
● Concurrency Control: Mechanisms like locking and timestamping prevent data anomalies in a
multi-user environment.

8. Data Abstraction
● Abstraction Levels: DBMS provides different levels of abstraction (physical, logical, and view
levels) to simplify data management and improve usability.
● User-Friendly Interfaces: Query languages like SQL offer a user-friendly interface to interact
with the database, abstracting the complexities of data handling.

9. Data Analysis and Reporting


● Query Capabilities: DBMS allows complex queries to analyze data, generate reports, and
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

support decision-making Processes.

Components of a database management system


All DBMS comes with various integrated components and tools necessary to carry out almost all
database management tasks. Some DBMS software even provides the ability to extend beyond
the core functionality by integrating with third-party tools and services, directly or via plugins.

we will look at the common components that are universal across all DBMS software, including:

• Storage engine
• Query language
• Query processor
• Optimization engine
• Metadata catalog
• Log manager
• Reporting and monitoring tools
• Data utilities
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System


MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Storage engine
The storage engine is the core component of the DBMS that interacts with the file system at an
OS level to store data. All SQL queries which interact with the underlying data go through the
storage engine.

● Integration with BI Tools: Modern DBMS can integrate with Business Intelligence (BI) tools
for advanced data analytics and visualization.
10. Scalability and Performance
● Handling Large Data Volumes: DBMS is designed to handle large volumes of data efficiently,
ensuring optimal performance even as the data grows.
● Performance Optimization: Techniques such as indexing, caching, and query optimization
enhance the performance of data retrieval and processing.

Data Modeling
Data modeling is the process of creating a visual representation of either a whole information
system or parts of it to communicate connections between data points and structures. Data can be
modeled at various levels of abstraction. The process begins by collecting information about
business requirements from stakeholders and end users. These business rules are then translated
into data structures to formulate a concrete database design. A data model can be compared to a
roadmap, an architect’s blueprint or any formal diagram that facilitates a deeper understanding of
what is being designed. Data modeling employs standardized schemas and formal techniques.
This provides a common, consistent, and predictable way of defining and managing data
resources across an organization, or even beyond.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Types of Data Model


Like any design process, database and information system design begins at a high level of
abstraction and becomes increasingly more concrete and specific. Data models can generally be
divided into three categories, which vary according to their degree of abstraction. The process
will start with a conceptual model, progress to a logical model and conclude with a physical
model.
Conceptual Data Modeling
They are also referred to as domain models and offer a big-picture view of what the system will
contain, how it will be organized, and which business rules are involved. Conceptual models are
usually created as part of the process of gathering initial project requirements. Typically, they
include entity classes (defining the types of things that are important for the business to represent
in the data model), their characteristics and constraints, the relationships between them and
relevant security and data integrity requirements. Any notation is typically simple.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Logical Data Modeling


They are less abstract and provide greater detail about the concepts and relationships in the
domain under consideration. One of several formal data modeling notation systems is followed.
These indicate data attributes, such as data types and their corresponding lengths, and show the
relationships among entities. Logical data models don’t specify any technical system
requirements. This stage is frequently omitted in agile or DevOps practices. Logical data models
can be useful in highly procedural implementation environments, or for projects that are data-
oriented by nature, such as data warehouse design or reporting system development.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Physical Data Modeling


They provide a schema for how the data will be physically stored within a database. As such,
they’re the least abstract of all. They offer a finalized design that can be implemented as a
relational database, including associative tables that illustrate the relationships among entities as
well as the primary keys and foreign keys that will be used to maintain those relationships.
Physical data models can include database management system (DBMS)-specific properties,
including performance tuning.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Benefits of data models


Data modeling makes it easier for developers, data architects, business analysts, and other
stakeholders to view and understand relationships among the data in a database or data
warehouse.
In addition, it can:
● Reduce errors in software and database development.
● Increase consistency in documentation and system design across the enterprise.
● Improve application and database performance.
● Ease data mapping throughout the organization.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

● Improve communication between developers and business intelligence teams.


● Ease and speed the process of database design at the conceptual, logical and physical levels.

Data Independence

Data Independence is mainly defined as a property of DBMS that helps you to change the
database schema at one level of a system without requiring to change the schema at the next
level. it helps to keep the data separated from all program that makes use of it.
We have namely two levels of data independence arising from these levels of abstraction:

• Physical level data independence

• Logical level data independence


MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Data Independence

Physical Level Data Independence


MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

It refers to the characteristic of being able to modify the physical schema without any
alterations to the conceptual or logical schema, done for optimization purposes, e.g., the
Conceptual structure of the database would not be affected by any change in storage size of the
database system server. Changing from sequential to random access files is one such example.
These alterations or modifications to the physical structure may include:

• Utilizing new storage devices.

• Modifying data structures used for storage.

• Altering indexes or using alternative file organization techniques etc.

Logical Level Data Independence

It refers characteristic of being able to modify the logical schema without affecting the external
schema or application program. The user view of the data would not be affected by any
changes to the conceptual view of the data. These changes may include insertion or deletion of
attributes, altering table structures entities or relationships to the logical schema, etc.

Data Models in DBMS

A Data Model in Database Management System (DBMS) is the concept of tools that are
developed to summarize the description of the database. Data Models provide us with a
transparent picture of data which helps us in creating an actual database. It shows us from the
design of the data to its proper implementation of data.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Types of Relational Models

1. Conceptual Data Model

2. Representational Data Model

3. Physical Data Model

It is basically classified into 3 types:-

1. Conceptual Data Model7

The conceptual data model describes the database at a very high level and is useful to
understand the needs or requirements of the database. It is this model, that is used in the
requirement-gathering process i.e. before the Database Designers start making a particular
database. One such popular model is the entity/relationship model (ER model). The E/R model
specializes in entities, relationships, and even attributes that are used by database designers. In
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

terms of this concept, a discussion can be made even with non-computer science(non-
technical) users and stakeholders, and their requirements can be understood.

Entity-Relationship Model( ER Model): It is a high-level data model which is used to define


the data and the relationships between them. It is basically a conceptual design of any database
which is easy to design the view of data.

Components of ER Model:

1. Entity: An entity is referred to as a real-world object. It can be a name, place, object, class,
etc. These are represented by a rectangle in an ER Diagram.

2. Attributes: An attribute can be defined as the description of the entity. These are
represented by Ellipse in an ER Diagram. It can be Age, Roll Number, or Marks for a
Student.

3. Relationship: Relationships are used to define relations among different entities. Diamonds
and Rhombus are used to show Relationships.

Characteristics of a conceptual data model

• Offers Organization-wide coverage of the business concepts.

• This type of Data Models are designed and developed for a business audience.

• The conceptual model is developed independently of hardware specifications like data


storage capacity, location or software specifications like DBMS vendor and technology.
The focus is to represent data as a user will see it in the “real world.”
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Conceptual data models known as Domain models create a common vocabulary for all
stakeholders by establishing basic concepts and scope

2. Representational Data Model

This type of data model is used to represent only the logical part of the database and does not
represent the physical structure of the database. The representational data model allows us to
focus primarily, on the design part of the database. A popular representational model is a
Relational model. The relational Model consists of Relational Algebra and Relational Calculus.
In the Relational Model, we basically use tables to represent our data and the relationships
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

between them. It is a theoretical concept whose practical implementation is done in Physical


Data Model.

The advantage of using a Representational data model is to provide a foundation to form the
base for the Physical model

3. Physical Data Model


MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

The physical Data Model is used to practically implement Relational Data Model. Ultimately,
all data in a database is stored physically on a secondary storage device such as discs and
tapes. This is stored in the form of files, records, and certain other data structures. It has all the
information on the format in which the files are present and the structure of the databases, the
presence of external data structures, and their relation to each other. Here, we basically save
tables in memory so they can be accessed efficiently. In order to come up with a good physical
model, we have to work on the relational model in a better way. Structured Query Language
(SQL) is used to practically implement Relational Algebra.

This Data Model describes HOW the system will be implemented using a specific DBMS
system. This model is typically created by DBA and developers. The purpose is actual
implementation of the database.

Characteristics of a physical data model:

• The physical data model describes data need for a single project or application though it
maybe integrated with other physical data models based on project scope.

• Data Model contains relationships between tables that which addresses cardinality and
nullability of the relationships.

• Developed for a specific version of a DBMS, location, data storage or technology to be used
in the project.

• Columns should have exact datatypes, lengths assigned and default values.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

• Primary and Foreign keys, views, indexes, access profiles, and authorizations, etc. are
defined

Some Other Data Models

1. Hierarchical Model

The hierarchical Model is one of the oldest models in the data model which was developed by
IBM, in the 1950s. In a hierarchical model, data are viewed as a collection of tables, or we can
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

say segments that form a hierarchical relation. In this, the data is organized into a tree-like
structure where each record consists of one parent record and many children. Even if the
segments are connected as a chain-like structure by logical associations, then the instant
structure can be a fan structure with multiple branches. We call the illogical associations as
directional associations.

2. Network Model

The Network Model was formalized by the Database Task group in the 1960s. This model is
the generalization of the hierarchical model. This model can consist of multiple parent
segments and these segments are grouped as levels but there exists a logical association
between the segments belonging to any level. Mostly, there exists a many-to-many logical
association between any of the two segments.

3. Object-Oriented Data Model

In the Object-Oriented Data Model, data and their relationships are contained in a single
structure which is referred to as an object in this data model. In this, real-world problems are
represented as objects with different attributes. All objects have multiple relationships between
them. Basically, it is a combination of Object Oriented programming and a Relational
Database Model.

4. Float Data Model

The float data model basically consists of a two-dimensional array of data models that do not
contain any duplicate elements in the array. This data model has one drawback it cannot store a
large amount of data that is the tables can not be of large size.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

5. Context Data Model

The Context data model is simply a data model which consists of more than one data model.
For example, the Context data model consists of ER Model, Object-Oriented Data Model, etc.
This model allows users to do more than one thing which each individual data model can do.

6. Semi-Structured Data Model

Semi-Structured data models deal with the data in a flexible way. Some entities may have extra
attributes and some entities may have some missing attributes. Basically, you can represent
data here in a flexible way.

Advantages of Data Models

1. Data Models help us in representing data accurately.

2. It helps us in finding the missing data and also in minimizing Data Redundancy.

3. Data Model provides data security in a better way.

4. The data model should be detailed enough to be used for building the physical database.

5. The information in the data model can be used for defining the relationship between tables,
primary and foreign keys, and stored procedures.

Disadvantages of Data Models

1. In the case of a vast database, sometimes it becomes difficult to understand the data model.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

2. You must have the proper knowledge of SQL to use physical models.

3. Even smaller change made in structure require modification in the entire application.

4. There is no set data manipulation language in DBMS.

5. To develop Data model one should know physical data stored characteristics.

Conclusion

• Data modeling is the process of developing data model for the data to be stored in a
Database.

• Data Models ensure consistency in naming conventions, default values, semantics, security
while ensuring quality of the data.

• Data Model structure helps to define the relational tables, primary and foreign keys and
stored procedures.

• There are three types of conceptual, logical, and physical.

• The main aim of conceptual model is to establish the entities, their attributes, and their
relationships.

• Logical data model defines the structure of the data elements and set the relationships
between them.

• A Physical Data Model describes the database specific implementation of the data model.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

• The main goal of a designing data model is to make certain that data objects offered by the
functional team are represented accurately.

• The biggest drawback is that even smaller change made in structure require modification in
the entire application.

Data Base Users:

Users are put into different groups based on how they want to use the system. There are four
different kinds of database users: Naive Users, Application programmers, Analysts, Specialized
Users and Database Programmers. The person in charge of the system as a whole is termed the
database administrator (DBA). The DBA also needs to define schema, storage structure and
access methods. DBA modifies schema and physical organization, grants access to data,
specifies integrity constraints and does regular maintenance.

Database Users

The people who use the system are called users. Users can be categorized into those who actually
use and manage the material (referred to as "Actors on the Scene") and those who make it
possible to create the database and the DBMS software (referred to as "Workers Behind the
Scene").

Users are put into different groups based on how they want to use the system. There are four
different kinds of database users:

1. Naïve-Users:
Naive users are people who don't know much about computers and use the system by
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

calling up one of the application programs that have already been written. For example, a
bank teller uses a program called "initaite_transfer" to move Rs. 15,000 from account A
to account B. This program asks the teller for the amount of money that needs to be
moved, the account that the money is coming from, and the account that the money is
going to.
2. Application-programmers:
These are people who work in computers and write programs for applications.
Application programmers have a lot of tools to choose from when making user interfaces.
E.g., RAD (Rapid Application Development) tools let an application programmer make
forms and reports without having to write a program.
3. Sophisticated-users:
These people know how to use the system without writing programs. They write their
requests in a language for talking to databases. They send each query to a query
processor, whose job is to turn DML statements into instructions that the storage manager
can understand. This group is made up of analysts who use queries to look at data in the
database.
For example, Online Analytical Processing (OLAP) tools make analysts' jobs easier by
letting them see data summaries in different ways. For example, analysts can see total
products by categories, by no. of sales, or by a combination of categories and no. of sales.
4. Specialized-users:
Specialized users are advanced users who write database programs that don't fit into the
traditional way of processing data. Among these applications are computer-aided design
systems, knowledge base and expert systems, systems that store data with complex data
types (like audio/visual data), and systems that model the environment.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

Database Administrators

One of the main reasons to use DBMS is to have centralized control over both the data and the
programs that access the data. The person in charge of the system as a whole is termed the
database administrator (DBA). The following are some of the duties of the DBA:
1. Defining-Schema:
The DBA makes the original database schema by writing a set of definitions. The DDL
compiler translates these definitions into a set of tables, which are then stored in the data
dictionary.
2. Defining Storage Structure and Access Methods:
The DBA makes the right storage structures and access methods by writing a set of
definitions that the data-storage and data-definition language compiler translates.
3. Modification of Schema and Physical Organization:
The DBA makes changes to the schema and physical organization to reflect how the
organization's needs change or to change the physical organization to make it run better.
4. Giving Permission to Access Data:
The database administrator can control which parts of the database different users can
access by giving different types of permission. The information about who has
permission to access the data is kept in a special system structure that is checked by the
database system every time someone tries to access the data.
5. Fulfilling Integrity-Constraint Requirements:
The values of the data stored in the database must meet certain consistency requirements.
The database administrator must tell the database about this constraint. The integrity
constraints are kept in a special structure that the database system checks every time it
makes a change.
MAHARISHI MARKANDESHWAR (DEEMED TO BE UNIVERSITY),

MULLANA (AMBALA)

Programme: BCA-III SEM

Course: BCA-301: DataBase Management System

6. Regular Maintenance Tasks:


DBA regularly needs to back up the database, either to tapes or to other servers, in order
to avoid data loss in the event of emergencies. They also need to ensure that there is
sufficient free disk space for standard operations and need to update disk space as
necessary. DBA should also monitor database jobs to make sure performance is not
harmed by extremely expensive tasks supplied by some users.

You might also like