Database Models
Database Models
Database design
Database design is the process of producing a detailed data model of a database. The data model
contains all the needed logical and physical design choices and physical storage parameters
needed to generate a design in a Data Definition Language which can then be used to create a
database.
Summary:
Database schema:-database schema refers to the overall structure of the database. The schema
specifies data, data relationships, data semantics, and consistency constraints on the data.
Advantages of flat database model: most software include free access to flat data files
2) Relational model
The relational database organizes data in a series of tables called relations. Each table has its own
field’s specific to the type of data being stored. Data can be accessed or reassembled in many
different ways without having to reorganize the database tables.
The standard user and application program interface to a relational database is the structured
query language (SQL). SQL statements are used both for interactive queries for information
from a relational database and for gathering data for reports.
(1)Student table
(2)Lecturer Table
Caro
002 James Otieno DIT 205 002 FOCIM002
003 Peter Mwendia DIT 201 003 FOCIM002
004 Jane Janet BUD-004 004 SOB001
1) Cost: relational databases are expensive to setup and maintain. In order to set up a
relational database, you generally need to purchase special software.
2) Structured Limits: Some relational databases have limits on field lengths. When you
design the database, you have to specify the amount of data you can fit into a field. Some
names or search queries are shorter than the actual, and this can lead to data loss
(3)Network database model: A network database model is a database model that allows
multiple records to be linked to the same owner file. The relationship that the information has in
the network database model is defined as many-to-many relationship because one owner file can
be linked to many member files and vice versa.
KCA University
(Parent/owner)
Business department
IT department
1) System complexity: In a network model, data are accessed one record at a time. This
means that it’s essential for the database designers, administrators, and programmers
to be familiar with the internal data structures to gain access to the data. Therefore, a
user friendly database management system cannot be created using the network
model
2) Lack of Structural independence: Making structural modifications to the database
is very difficult in the network database model as the data access method is
navigational. Any changes made to the database structure require the application
programs to be modified before they can access data. Though the network model
achieves data independence, it still fails to achieve structural independence.
Summary:-
Top down approach:-this approach starts from the general idea off what is needed for the
system and then work your way down to the more specific details of how the system will
interact. This process involves the identification of different entity types and the definition of
each entity’s attributes. Top down approach generates an output referred to as Entity
Relationship Diagram.
Bottom up approach: - begins with the specific details and moves up to the general. This is
done by first identifying the data elements (items) and then grouping them together in data sets
i.e. this method first identifies the attributes and then groups them to form entities. The output for
this approach is normalized database data that is generated from a normalization process.
A DBA should use the social technical approach while designing a database system. The social
technical approach puts into consideration the social and technological factors that determine the
effectiveness of a database implementation process.
1) Organization issues such as the organization structure, management style, and existing
organization politics and policies etc.
2) People issues such as the targeted end-users skills and knowledge, their likes and dislikes
etc.
3) Technological issues such as the required database, hardware’s, software’s and
networking devices required to setup the database etc.
Note:-Considering the above factors leads to the implementation of database systems that are
socially and technically compatible with an organization.
Database Models 2020