Module 2
Module 2
DATABASE
MANAGEMENT SYSTEM
(DBMS)
Module Author
JUDE CAPONPON, CPA, MBA, CTT
Accountancy Department
De La Salle University – Manila
Database Management System increases the quality and ensures that the
Acquiring New data is maintained in accordance to business structure and its needs. It also
helps in data sharing and also enhances the data consistency in the system and
Knowledge
reduces program maintenance and data hacking. Bigger organizations have
complex databases. They must be able to support several users at one time,
including supporting applications and involves several databases.
1. Data
2. Hardware
3. Software
4. Users
DATA
Data is made up of data item or data aggregate. A Data item is the smallest
unit of named data: It may consist of bits or bytes. A Data item is often
referred to as field or data element. A Data aggregate is the collection of data
items within the record, which is given a name and referred as a whole. Data
can be collected orally or written. A database can be integrated and shared.
Data stored in a system is partition into one or two databases. So if by chance
data lost or damaged at one place, then it can be accessed from the second
place by using the sharing facility of data base system. So a shared data also
can be reused according to the user‟s requirement.
Also data must be in the integrated form. Integration means data should be in
unique form i.e. data collected by using a well-defined manner with no
redundancy, for example Roll number in a class is non-redundant form and so
these have unique resistance, but names in class may be in the redundant form
and can create lot of problems later on in using and accessing the data.
HARDWARE
Hardware is also a major and primary part of the database. Without hardware
nothing can be done. The definition of Hardware is “which we can touch and
see”, i.e. it has physical existences. All physical quantity or items are in this
category. For example, all the hardware input/output and storage devices like
keyboard, mouse, scanner, monitor, storage devices (hard disk, floppy disk,
magnetic disk, and magnetic drum) etc. are commonly used with a computer
system.
SOFTWARE
Software is another major part of the database system. It is the other side of
hardware. Hardware and software are two sides of a coin. They go side by
side. Software is a system. Software are further subdivided into two
categories, First type is system software (like all the operating systems, all the
languages and system packages etc.) and second one is an application
software (payroll, electricity billing, hospital management and hostel
administration etc.). We can define software as which we cannot touch and
see. Software only can execute. By using software, data can be manipulated
organized and stored.
USERS
Without user all of the above said components (data, hardware & software)
are meaningless. User can collect the data, operate and handle the hardware.
Also operator feeds the data and arranges the data in order by executing the
software. Other components:
1. Controlling Redundancy
In a DBMS there is no redundancy (duplicate data). If any type of duplicate
data arises, then DBA can control and arrange data in non-redundant way. It
stores the data on the basis of a primary key, which is always unique key and
have non-redundant information. For example, Roll no is the primary key to
store the student data.
In traditional file processing, every user group maintains its own files. Each
group independently keeps files on their database e.g., students. Therefore,
much of the data is stored twice or more. Redundancy leads to several
problems:
Duplication of effort
Storage space wasted when the same data is stored repeatedly
Files that represent the same data may become inconsistent (since the updates
are applied independently by each users group).We can use controlled
redundancy.
3. DBMS Developers. Design and build the DBMS product, and the
only ones who touch its code. They are typically the employees of a
DBMS vendor (e.g., Oracle, IBM, Microsoft, Sybase), or, in the case
of Open source DBMSs (e.g., MySQL), volunteers or people
supported by interested companies and organizations. They are
typically skilled systems programmers. DBMS development is a
complicated task, and some of the popular DBMSs have been under
development and enhancement (also to follow progress in technology)
for decades.
4. Application's end-users (e.g., accountants, insurance people, medical
doctors, etc.). They are the people who know the application and its
end-user interfaces, but need not know nor understand the underlying
DBMS. Thus, though they are the intended and main beneficiaries of a
DBMS, they are only indirectly involved with it.
Server based database systems are designed to run on a central server, so that
multiple users can access the same data simultaneously. The users normally
access the database through an application.
For example, a website could store all its content in a database. Whenever a
visitor views an article, they are retrieving data from the database. As you
know, websites aren't normally limited to just one user. So, at any given
moment, a website could be serving up hundreds or even thousands of articles
to its website visitors. At the same time, other users could be updating their
personal profile in the members' area, or subscribing to a newsletter or
anything else that website users do.
Generally, it's the application that provides the functionality to these visitors.
It is the database that stores the data and makes it available. Having said that,
SQL Server does include some useful features that can assist the
application in providing its functionality.
Figure 2.2.3
Based on our usage and work and requirement we chose a software tool which
gives us the desired output for our day to day work in the software industry.
NOTE: During the course of this subject we will not connect a User created
Database to SAP B1 nor install SAP B1, because of data integrity of SAP B1
and only SAP certified technicians are allowed to install and manipulate
SAP Databases, thus if we would to connect our own created Databases on
SAP B1 it will void out the application license and we cannot run the
application anymore. So having that certain condition the following topic for
Connecting SAP B1 to MSSQL Server will be just for information or lecture.
Figure 2.2.4
Figure 2.2.5
SAP B1 are installed on all computers on the network including the Server
But only the Server computers have MSSQL Installed, the data that are
saved on Branch 1 and 2 are to be transferred to the Main Server by Batch
Processing wherein it will be transfer sequentially.
The connection between SAP B1 and MSSQL are set during the installation
of SAP B1, the picture below shows the step where the Database information
is being inputted.
Figure 2.2.6
Figure 2.2.7
Figure 2.2.8
Above tables shows three different relations: Customer, Items, and Sales
Summary. The primary key of relation Customer is CustomerID, while the
primary key of relation Items is ItemID. These primary keys can be used to
link another relation with the relation to whom they belong. The primary key
of another table that is used to do this is referred to as a foreign key.
Relationship Types
One to One
One to Many
Figure 2.2.10
Many to One
When more than one instance of entity is associated with the relationship, it is
marked as 'N:1'. The following image reflects that more than one instance of
an entity on the left and only one instance of an entity on the right can be
associated with the relationship. It depicts many-to-one relationship.
Figure 2.2.11
Many to Many
The following image reflects that more than one instance of an entity on the
left and more than one instance of an entity on the right can be associated with
the relationship. It depicts many-to-many relationship.
Figure 2.2.12
Checkpoint # 1. List down and observe all the relationships that work on the
diagram/entity.
Figure 2.2.13