Group 2 Presentation Data Environment...... Draft 1
Group 2 Presentation Data Environment...... Draft 1
PRESENTATION BY
Data models
A database environment is a system of components that regulate the collection, management and
use of data.
External Level: It describes only part of the entire database that the end user is concerned. It is
also known as view level. End users need to access only part of the database rather than entire
View 1 View 3
View 2 database. Different user need different views of database. And so, there can be many view level
abstractions of the same database.
Conceptual Level: It describes What data are stored in the database and What relationships exist
among those data. It is also known as Logical level. It hides low level complexities of physical
CONCEPTUAL LEVEL storage. Database administrator and designers work at this level to determine What data to keep
in database. Application developers also work on this level.
INTERNAL LEVEL
Internal Level: It describes How the data are actually stored on storage devices. It is also known
as physical level and It provides internal view of physical storage of data. It deals with complex
low level data structures, file structures and access methods in detail. It also deals with Data
Compression and Encryption techniques if used.
Data Models
Lec. Lec.
ID Name
Hierarchical Model
Assumes that every data relationship can be Example
represented in hierarchies
University
Data elements are organised in a tree like structure
where highest level of the tree is the root node
Department Infrastructure
Upper node is connected to a lower node in a
parent-child relationship. First database was based
on the hierarchical model
Each entity has one parent and many children Course Lecturers Students Hostels ICT
Course Lecturer
Student
Object-based(/Orientated)
Model
An extension of the E-R Model
Object 1: Student Object 2: Course
Both data and relationship are contained in a single structure
called an object
Data:
Data:
• ID
In object based data models, the focus is on how data is • Course ID
represented. The data is divided into multiple entities each of • Name
• Course Name
which have some defining characteristics. Moreover, these • Courses
data entities are connected with each other through some
relationships.
Methods (Used to Methods (Used to
Can store audio, video, pictures and other data types which perform operations on perform operations on
cannot be stored in relations/ tables data): data):
• Get Marks • Get Marks
• Get Attendance • Add Marks
Represents real world challenges better. There is not as much
concern over what the data is as compared to how it is
visualised and connected.
Semi-structured Data Model
An evolution of the relational data model and allows representation of data with a flexible structure e.g. some
entities may have missing attributes or extra attributes
This model is used to transfer data among two application and the language that support the semistructured data
model is the Extensible Markup Language, also known as XML
Main disadvantage is that queries cannot be performed quickly due to limited structure
Components of a DBMS, Anatomy of a
DBMS (organizational diagram)
Data : Data are unprocessed facts and information that must be sorted and processed in
order to be meaningful. Data is the most important component in a database. Database
dictionaries are used within an organization to consolidate, document, control, and
coordinate the use of data.
People: People who monitor and govern databases and perform various types of database
operations in the DBMS e.g. Database Administrators, Software Developer/ Designers and
End Users
Data Access Language: is a programming language that is used to create instructions that
access, edit, and remove data contained in a database. e.g. SQL
Types of Database
Management Systems
Definition of terms:
Data: Can be defined as facts that can be recorded. It can be in different formats such as
text, numbers, videos, images etc
Database: Is collection of related data that represent some real world entities.
DBMS: A DBMS is a (usually complex) piece of software that sits in front of a collection
of data, and mediates applications' accesses to the data, guaranteeing many properties about
the data and the accesses. It is used for managing data and simultaneously it supports
different types of users to create, manage, retrieve, update and store information
(tutorialspoint n.d).
Types of Database
Management Systems…cont
DBMSs can be divided into two broad categories i.e. relational and non-relational. Each category with subcategory.
(Akhtar, 2023).
Types of Database
Management Systems…cont
1) Relational DBMS:
Relational DBMSs are the most popular form of DBMS. The relational model is based on a table with columns and rows:
For example, a student table stores the records of various students, a row of this table represents the record of a single student and
the column represents the attributes of the record such as student id,first_ name, last_name, age, address etc.
DB Table: STUDENTS
Types of Database
Management Systems…cont
The basic and advanced operations are performed using some kind of database language, with Structured Query Language (SQL) being a
well-established standard .We use SQL to manage, organize and perform various operations on RDBMS.
RDBMS have been most common types of DBMS type. The market-leading traditional RDBMSs are Oracle, MySQL,
Microsoft SQL Server and PostgreSQL.
Types of Database
Management Systems…cont
2) Non-relational DBMS:
a) NoSQL: NoSQL database systems do not use a relational data model like RDBMS and generally have no SQL interface
b) Spatial DBMS: Spatial DBMS is different type of DBMS that can efficiently store, query, and manipulate spatial data
c) Temporal DBMS: Temporal DBMS deals with the data related to timestamps or events.
A non-relational database is a database that does not use the tabular schema of rows and columns found in most traditional database
systems. Instead, non-relational databases use a storage model that is optimized for the specific requirements of the type of data
being stored. For example, data may be stored as simple key/value pairs, as JSON documents, or as a graph consisting of edges and
vertices.
A graph data store manages two types of information, nodes and edges. Nodes represent entities, and edges specify the relationships
between these entities.
Types of Database
Management Systems…cont
This structure makes it straightforward to perform
queries such as "Find all employees who report
directly or indirectly to Sarah" or "Who works in the
same department as John?"
For large graphs with lots of entities and
relationships, you can perform complex analyses
quickly.
Common mistakes in design of
Databases
The right database design will give less trouble during deployment, development, and performance. Hence, to get it right in one go, here is a list of
some mistakes to avert while designing a database (Varshneya,2022).
Poor Design/Planning
Consequences of poor planning can be seen further down the line and impacts projects in terms of time management.
Ignoring Normalization
Normalisation is a process that transforms a rough idea of tables and columns into a database design that follows a specific set of rules, which aims
to be efficient and eliminate redundancy.
Redundant Records
Redundancy in a database is a condition in which the same set of data is stored at two different places. This means two different spots or two
separate fields in software. This is a problem for developers because they must keep several versions of data updated.
Insufficient Indexing
Indexes on a database are objects that allow certain queries to run more efficiently. Insufficient indexing comes from a SQL configuration whose
performance is affected due to improper, excessive, or missing indexes. In case indexes aren’t created properly, the SQL server goes through more records
to retrieve the data that’s requested by the query.
Lack of Testing
The lack of database testing fails to give information on whether the data values stored and received in the database are valid or not. Testing helps to save
transaction data, avoids data loss, and prevents unauthorized access to information.
References