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

Working With The Database Management System

The document discusses database management systems and designing databases. It provides information on gathering requirements, identifying key objects and their relationships, and modeling the database structure. The key steps in designing a database include gathering information on user needs, identifying main objects and related entities, modeling object relationships, defining table structures, and creating a design plan. Well-designed databases improve performance and reduce maintenance costs.

Uploaded by

Cresanelle Polo
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
155 views

Working With The Database Management System

The document discusses database management systems and designing databases. It provides information on gathering requirements, identifying key objects and their relationships, and modeling the database structure. The key steps in designing a database include gathering information on user needs, identifying main objects and related entities, modeling object relationships, defining table structures, and creating a design plan. Well-designed databases improve performance and reduce maintenance costs.

Uploaded by

Cresanelle Polo
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Working with the Database

Management System
MS Access
Generally, a database is a collection of related
information that is organized in a table with rows
and columns. A database can include text,
pictures, sound and animations. It can be created
manually, as with the traditional filling system, or
electronically, as when organizing and maintaining
data in a computer system.
In a more specific sense, a database is a
collection of interrelated files that is created and
managed by a database software called a Database
Management System(DBMS).
Example of Database
Database Management
System
A database management system (DBMS) consists
of software that operates databases, providing storage,
access, security, backup and other facilities. Database
management systems can be categorized according to
the database model that they support, such
as relational orXML, the type(s) of computer they support,
such as a server cluster or a mobile phone, the query
language(s) that access the database, such
as SQL or XQuery, performance trade-offs, such as
maximum scale or maximum speed or others. Some DBMS
cover more than one entry in these categories, e.g.,
supporting multiple query languages. Examples of some
commonly used DBMS are MySQL, PostgreSQL, Microsoft
Access, SQL Server, FileMaker,Oracle,Sybase, dBASE,
Clipper,FoxPro etc. Almost every database software comes
with an Open Database Connectivity (ODBC) driver that
allows the database to integrate with other databases.
Database - Advantages &
Disadvantages
 

   Advantages
 Reduced data redundancy
 Reduced updating errors and increased
consistency
 Greater data integrity and independence from
applications programs
 Improved data access to users through use of
host and query languages
 Improved data security
 Reduced data entry, storage, and retrieval costs
 Facilitated development of new applications
program

   Disadvantages
 Database systems are complex, difficult, and time-
consuming to design
 Substantial hardware and software start-up costs
 Damage to database affects virtually all
applications programs
 Extensive conversion costs in moving form a file-
based system to a database system
 Initial training required for all programmers
Developing a Database
Plan
The first step in creating a database is creating a
plan that serves both as a guide to be used when
implementing the database and as a functional
specification for the database after it has been
implemented. The complexity and detail of a
database design is dictated by the complexity and
size of the database application and also the user
population.
The nature and complexity of a database
application, and also the process of planning it, can
vary significantly. A database can be relatively
simple and designed for use by a single person, or
it can be large and complex and designed, for
example, to handle all the banking transactions for
thousands of clients. In the first case, the database
design may be slightly more than a few notes on
some scratch paper. In the latter case, the design
may be a formal document hundreds of pages long
that contains every possible detail about the
database.

In planning the database, regardless of its size


and complexity, use the following basic steps:
 Gather information.
 Identify the objects.
 Model the objects.
 Identify the types of information for each
object.
 Identify the relationships between objects.

Gathering Information
Before creating a database, you must have a good
understanding of the job the database is expected to
perform. If the database is to replace a paper-based or
manually performed information system, the existing
system will give you most of the information that you
need. You should interview everyone involved in the
system to determine what they do and what they need
from the database. It is also important to identify what
they want the new system to do, and also to identify the
problems, limitations, and bottlenecks of any existing
system. Collect copies of customer statements,
inventory lists, management reports, and any other
documents that are part of the existing system, because
these will be useful to you in designing the database
and the interfaces.

Identifying the Objects


During the process of gathering information, you must identify the
key objects or entities that will be managed by the database. The
object can be a tangible thing, such as a person or a product, or it
can be a more intangible item, such as a business transaction, a
department in a company, or a payroll period. There are generally
a few primary objects, and after these are identified, the related
items become visible. Each distinct item in your database should
have a corresponding table.
The primary object in the AdventureWorks2008R2
sample database included with SQL Server is a bicycle.
The objects related to bicycle within this company's
business are the employees who manufacture the
bicycle, the vendors that sell components used to
manufacture the bicycle, the customers who buy them,
and the sales transactions performed with the
customers. Each of these objects is a table in the
database.

Modeling the Objects

As the objects in the system are identified, you


should record them in a way that represents
the system visually. You can use your database
model as a reference during implementation of
the database.
For this purpose, database developers use tools
that range in technical complexity from pencils
and scratch paper to word processing and
spreadsheet programs, and even to software
programs created specifically for the job of
data modeling for database designs. Whatever
tool you decide to use, it is important that you
keep it up to date.

Identifying the Types of


Information for Each Object

After the primary objects in the database have been


identified as candidates for tables, the next step is to
identify the types of information that must be stored for
each object. These are the columns in the table of the
object. The columns in a database table contain a few
common types of information:
 Raw data columns
These columns store tangible pieces of information,
such as names, determined by a source external to
the database.
 Categorical columns
These columns classify or group the data and store a
limited selection of data such as true/false,
married/single, and VP/Director/Group Manager.
 Identifier columns
These columns provide a mechanism to identify
each item stored in the table. These columns
frequently have an ID or number in their name, for
example, employee_id, invoice_number, and
publisher_id. The identifier column is the primary
component used by both users and internal database
processing for gaining access to a row of data in the
table. Sometimes the object has a tangible form of
ID used in the table, for example, a social security
number, but in most situations you can define the
table so that a reliable, artificial ID can be created
for the row.
 Relational or referential columns
These columns establish a link between information
in one table and related information in another table.
For example, a table that tracks sales transactions
will generally have a link to the customers table so
that the complete customer information can be
associated with the sales transaction.

Identifying the Relationship Between


Objects

One of the strengths of a relational database is the ability to


relate or associate information about various items in the
database. Isolated types of information can be stored
separately, but the database engine can combine data when it
is required. Identifying the relationship between objects in
the design process requires looking at the tables, determining
how they are logically related, and adding relational columns
that establish a link from one table to another.
For example, the designer of the AdventureWorks2008R2
database has created tables for products and product models
in the database. The Production.Product table contains
information for each product that includes an identifier
column named ProductID; data columns for the product
name, the price of the product, and the product color, size,
and weight. The table contains categorical columns, such as
Class, or Style, that lets the products be grouped by these
types. Each product also has a product model, but that
information is stored in another table. Therefore, the
Production.Product table has a ProductModelID column to
store just the ID of the product model. When a row of data is
added for a product, the value for ProductModelID must
exist in the Production.ProductModel table.

Designing Databases

Designing a database requires an


understanding of the business functions you
want to model. It also requires an
understanding of the database concepts and
features that you want to use to represent
those business functions. Make sure that you
accurately design the database to model the
business, because it can be time-consuming to
significantly change the design of a database
after you implement it. A well-designed
database also performs better.

In This Section

Topic Description
Developing a Describes the purpose of the
Database Plan database and how it affects
the design. Provides
guidelines for creating a
database plan to fit your
purpose.
Online Describes the characteristics
Transaction of Online Transaction
Processing vs. Process (OLTP) and
Decision Support Decision Support
applications and their effect
on the design considerations
for a database.
Normalization Describes database
normalization rules that help
prevent mistakes in the
database design.
Data Integrity Describes how to help
protect the data integrity of
the database.
Using Extended Describes how to use
Properties on extended properties to add
Database Objects descriptive or instructional
text, input masks, and
formatting rules as
properties of objects in a
database or of the database
itself.
Estimating the Provides procedures for
Size of a Database estimating how large the
database will be when it is
filled with data.
Designing Files Describes how to use files
and Filegroups and filegroups to manage
database growth, enhance
backup and restore
strategies, and improve
database performance.

You might also like