compassignment
compassignment
Assignment
Submitted To-Mr.Ali Siddiqui
Submitted By-Hemangi Srivastava
BBA Semester 3
2023-25
Database
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). 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. Databases often store information about people, such as customers or
users. For example, social media platforms use databases to store user information, such as
names, email addresses and user behavior. The data is used to recommend content to users and
improve the user experience.
Types of databases
There are various types of databases used for storing different varieties of data:
Network Entity-
model Relationship
Data Model
Hierarchial Model Database
A hierarchical database model is a data model in which the data are organized into a tree-like structure.
The data are stored as records which are connected to one another through links. A record is a collection
of fields, with each field containing only one value. In the hierarchical model, segments pointed to by the
logical association are called the child segment and the other segment is called the parent segment. If
there is a segment without a parent is then that will be called the root and the segment which has no
children are called the leaves. The main disadvantage of the hierarchical model is that it can have one-to-
one and one-to-many relationships between the nodes.
13 Presentation
This Photo by Unknown Author is licensed undertitle
CC BY-SA 20XX
Object Oriented Programming model
Object Oriented Data Model, data and their relationships are contained in a single structure which is
referred as 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 combination of Object
Oriented programming and Relational Database Model . There are 3 types of models in the object oriented
modeling and design are: Class Model, State Model, and Interaction Model. These are explained as following below.
Class Model: The class model shows all the classes present in the system.