You are on page 1of 38

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES

DEPARTMENT OF BCA,

OPP LALBAGH MAIN GATE, HOSUR ROAD, BANGALORE-27.

BANKING MANAGEMENT SYSTEM


SUBMITTED BY:

1.SHAIK ARSHAD 17HUSB7079


2.SANJAY SINGH 17HUSB7070
3.SHAIK SULAIMAN 17HUSB7085
4.SADIQ BASHA 17HUSB7063
5.SHAIK THOFIQ 17HUSB7084
SUBMITTED IN PARTIAL FULFILLMENT FOR THE COMPLETION OF 5TH SEMESTER

BACHELOR OF COMPUTER APPLICATIONS

2019

Under the Guidance of

Mr. MOHAN RAJ C S


Lecturer
RAILWAY RESERVATION SYSTEM

RAILWAY RESERVATION
SYSTEM

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 2


RAILWAY RESERVATION SYSTEM

Sl.no Chapter name Page no


I ABSTRACT 4
Introduction 5
CHAPTER 1
1.1 Advantages 6
1.2 Problem Definition 6
System Analysis And Feasiblity Study 7
CHAPTER 2
2.1 Introduction To System Analysis 8
2.2 Feasibility Study 10
2.2.1 Technical Feasibility 11
2.2.2 Economic Feasibility 12
2.2.3 Behavioral Feasibility 12
2.3 Scope Of Proposed System 13
System Requirement 14
CHAPTER 3
3.1 Visual Basic 6.0 16
3.1.1 Introduction To Visual Basic 16
3.1.2 Advantages Of Visual Basic 17
3.2 Oracle 18
3.2.1 Introduction T0 Oracle 18-19
3.2.2 Data Connectivity 20-22
System Logical Design 23
CHAPTER 4
4.1 Introduction 24
4.2 Water Flow Model 25
4.3 Data Flow Diagram 26-27
4.4 Structure Chart 28
4.5 Activity Diagram 29
4.6 User Case Diagram 30
4.7 Scheme Diagram 31
System Physical Design 32
CHAPTER 5
5.1 System Designe 33
5.1.1 Input Designe 33
5.1.2 Output Designe 34
5.2 Data Base Designe 35-38

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 3


RAILWAY RESERVATION SYSTEM

ABSTRACT

Designing the application and of Railway Reservation System for the


purpose of reservingrailway tickets and database maintenance about
train and passenger details by the railwaydepartment only. This
database helps railways to retrieve data as and when required in
future.The scope of project included evaluation of the application and
was primarily concerned with thetransactions related to booking of
tickets from the terminals operated by the railway personnel.
Application controls and simulation were used to evaluate data
validation and program logic. Theselected data, as made available, for
substantive checking of the completeness, integrity andconsistency of
data using computer assisted applications such as VB, ORACLE.The
records maintained in the database of the railways reservation centre
were also reviewedDiscussions were held with the database users to
gain understanding regarding the various functionalaspects of the
system
The booking database has passenger's details like Name, Age, Gender.
Total Number of PassengersTraveling. Date of Travel, and Class of
Travel.The train database has train details like Train Name, Train
Number, Route, From, To Train Time, AC
First Class, AC 2 Tier, AC 3 Tier, Sleeper, Second Sitting and Quota
Management like General
Tatkal.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 4


RAILWAY RESERVATION SYSTEM

CHAPTER 1
INTRODUCTION

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 5


RAILWAY RESERVATION SYSTEM

INTRODUCTION

Proposed “Railway Reservation System” is developed for to automate


the railway reservation system. It includes modules required to
successfully operate railway reversion process smoothly. It has train
master to add modify train information, Train schedule to enter train
journey details include all the station name, arrival time and departure
time. It includes automatic fare calculation as per the distance between
two stations.

Reservation module consist of automatic seat no and coach no


allocation system. Daily schedule for updation of not confirm seat and
coach no. All master like train master, train schedule, reservation fees,
cancellation fees charges can be modified individually from frontend
and changes reflect in all modules immediately.

Therefore proposed “Railway Reservation System” has been designed


to automate the process of railway for ticket reservation and back
office activities. System can make the daily activities efficient and
providing the fast response.

1.1Advantages

 Complete end to end system for all the activities related to


railway reservation system.
 Supports the full life cycle of ticket reservation, seat allocation,
and ticket cancellation. Reschedule the cancel seat to
unconfirmed passenger.
 It is a scalable system.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 6


RAILWAY RESERVATION SYSTEM

 Has a clearly arranged and user-friendly interface


 Easy to use and minimum data entry, all important details is
mater driven and provide in drop down list to make fast operation
and avoid mistake.
 Automatic fare calculation from stage master, in new updation of
fare in stage master will automatically reflect in all new
reservation.
 All important details can be updated by front end master module
only.
 Retrieval of forgotten passwords.
 Integrated security features.

1.2Problem definition
Existing system
In the existing system the exams are done only manually and proposed
system we have to computerize all the exams using this software.
The whole process of assigning test and evaluating their scores after
the test, was done manually till date. Processing the test paper i.e.
checking and distributing respective scores used to take time when the
software was not installed.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 7


RAILWAY RESERVATION SYSTEM

CHAPTER 2
SYSTEM ANALYSIS
AND
FEASIBILITY STUD
Y

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 8


RAILWAY RESERVATION SYSTEM

SYSTEM ANALYSIS

2.1Introduction to System Analysis


System analysis is a process of gathering and
interpreting facts, diagnosing problems and the information to
recommend improvements on the system. It is a problem solving
activity that requires intensive communication between the system
users and system developers. System analysis or study is an important
phase of any system development process. The system is studied to the
minutest detail and analyzed. The system analyst plays the role of the
interrogator and dwells deep into the working of the present system.
The system is viewed as a whole and the input to the system are
identified. The outputs from the organizations are traced to the various
processes. System analysis is concerned with becoming aware of the
problem, identifying the relevant and decisional variables, analyzing
and synthesizing the various factors and determining an optimal or at
least a satisfactory solution or program of action.
A detailed study of the process must be made by various
techniques like interviews, questionnaires etc. The data collected by
these sources must be scrutinized to arrive to a conclusion. The
conclusion is an understanding of how the system functions. This
system is called the existing system. Now the existing system is
subjected to close study and problem areas are identified. The designer
now functions as a problem solver and tries to sort out the difficulties
that the enterprise faces. The solutions are given as proposals. The
proposal is then weighed with the existing system analytically and the
best one is selected. The proposal is presented to the user for an

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 9


RAILWAY RESERVATION SYSTEM

endorsement by the user. The proposal is reviewed on user request and


suitable changes are made. This is loop that ends as soon as the user is
satisfied with proposal.
Preliminary study is the process of gathering and interpreting
facts, using the information for further studies on the system.
Preliminary study is problem solving activity that requires intensive
communication between the system users and system developers. It
does various feasibility studies. In these studies a rough figure of the
system activities can be obtained, from which the decision about the
strategies to be followed for effective system study and analysis can be
take

2.2FEASIBILITY STUDY
Feasibility study is made to see if the project on completion will
serve the purpose of the organization for the amount of work, effort and the time
that spend on it. Feasibility study lets the developer foresee the future of the
project and the usefulness. A feasibility study of a system proposal is according to
its workability, which is the impact on the organization, ability to meet their user
needs and effective use of resources. Thus when a new application is proposed it
normally goes through a feasibility study before it is approved for
development. The document provide the feasibility of the project that is being
designed and lists various areas that were considered very carefully during the
feasibility study of this project such as Technical, Economic and Operational
feasibilities. The following are its features:

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 10


RAILWAY RESERVATION SYSTEM

2.2.1TECHNICAL FEASIBILITY
The system must be evaluated from the technical point of view first. The
assessment of this feasibility must be based on an outline design of the system
requirement in the terms of input, output, programs and procedures. Having
identified an outline system, the investigation must go on to suggest the type of
equipment, required method developing the system, of running the system once
it has been designed.

Technical issues raised during the investigation are:3

 Does the existing technology sufficient for the suggested one?


 Can the system expand if developed?

The project should be developed such that the necessary functions and
performance are achieved within the constraints. The project is
developed within latest technology. Through the technology may
become obsolete after some period of time, due to the fact that never
version of same software supports older versions, the system may
still be used. So there are minimal constraints involved with this
project. The system has been developed using Java the project is
technically feasible for development.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 11


RAILWAY RESERVATION SYSTEM

2.2.2ECONOMIC FEASIBILITY
The developing system must be justified by cost and benefit. Criteria to
ensure that effort is concentrated on project, which will give best,
return at the earliest. One of the factors, which affect the development
of a new system, is the cost it would require. The following are some of
the important financial questions asked during preliminary
investigation:

 The costs conduct a full system investigation.


 The cost of the hardware and software.
 The benefits in the form of reduced costs or fewer costly errors.

Since the system is developed as part of project work, there is no


manual cost to spend for the proposed system. Also all the
resources are already available, it give an indication of the system
is economically possible for development.

2.2.3BEHAVIORALFEASIBILITY
This includes the following questions:
Is there sufficient support for the users?
Will the proposed system cause harm?

The project would be beneficial because it satisfies the objectives when


developed and installed. All behavioral aspects are considered carefully
and conclude that the project is behaviorally feasible.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 12


RAILWAY RESERVATION SYSTEM

2.3Scope of Proposed system


The aim of proposed system is to develop a system of improved
facilities. The proposed system can overcome all the limitations of the
existing system. The system provides proper security and reduces the
manual work.

 Security of data.
 Ensure data accuracy’s.
 Proper control of the higher officials.
 Minimize manual data entry.
 Minimum time needed for the various processing.
 Greater efficiency.
 Better service.
 User friendliness and interactive.
 Minimum time required.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 13


RAILWAY RESERVATION SYSTEM

CHAPTER 3
System Requirement

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 14


RAILWAY RESERVATION SYSTEM

System Requirement

Hard ware Requirements

Processor: X86 Compatible processor with 1.7 GHz Clock speed

RAM: 512 MB or more

Hard disk: 20 GB or more

Monitor: VGA/SVGA

Keyboard: 104 Keys

Mouse: 2 buttons/ 3 buttons

Software Requirements

Operating System: Windows 2000/XP

Front end: Visual Basic 6.0

Back end: Oracle (Enterprise Edition)

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 15


RAILWAY RESERVATION SYSTEM

FRONT END

3.1Visual Basic 6.0


3.1.1Intoduction to Visual Basic

Visual Basic 6.0 is Microsoft’s latest version of the Visual Basic


Programming language. Although writing programs can be a
tedious chore at time. Visual Basic reduces the effort required on your
part, and makes programming enjoyable. Visual Basic makes
many aspects of programming as simple as dragging graphics objects on
to screen with your mouse. Visual Basic 6.0 is more than just a
programming language; the secret to Visual Basic is in its name
´Visual´. With today’s Windows Operating System, a program must be
able to interact with the screen. Keyboard, mouse and printer
graphically.
The environment provided by Visual Basic is suitable for any type of
applicae33tion. Using this environment, the user can visually design the
objects that your application uses. Visual Basic is not just a languages,
it’s an integrated development environment in which you can develop,
run, test and debug your applications. The impressive array of
programming resources provided by Visual Basic enables to create the
objects extemporaneously which can range from pop-up menu to a
message box.
A form is a major part of Visual Basic application, which allows the user
Vto enter the data as well as view the result. A control is an object that
we draw on a form to enable or enhance user interaction with an

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 16


RAILWAY RESERVATION SYSTEM

application. Hence a Visual Basic application is a combination of object


like forms and controls, procedures that can respond to Events and
other general- purpose procedures.

3.1.2FEATURES
 Data report design
 Visual data tools
 Data object wizard
 Language
 Format objects
 ADO compliant data bond control
 Data environment design
 SQL editor
 Component creation
 Data repeater control

3.1.3ADVANTAGES OF VISUAL BASIC


There is quite a number of reasons for the enormous success of Visual Basic (VB):
 The structure of the Basic programming language is very simple, particularly
as to the executable code.
 Programmers need not write code to display the required component.
 The component can be moved , resized , or even deleted if required
 The interface provided by the visual programming environment has
some inbuilt code.
 VB is not only a language but primarily an integrated, interactive
development environment ("IDE").
 The VB-IDE has been highly optimized to support rapid application
development ("RAD"). It is particularly easy to develop graphical user

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 17


RAILWAY RESERVATION SYSTEM

interfaces and to connect them to handler functions provided by the


application.
 VB provides a comprehensive interactive and context-sensitive online help
system.
 When editing program texts the "intelligence" technology informs you in a
little popup window about the types of constructs that may be entered at
the current cursor location.
 VB is a component integration language which is attuned to Microsoft's
Component Object Model ("COM").

BACK END
CHAPTER 6 3.2ORACLE
3.2.1INTRODUCTION T0 ORACLE
An Oracle database is a collection of data treated as a unit. The purpose
of a database is to store and retrieve related information. A database server is the
key to solving the problems of information management. In general, a server
reliably manages a large amount of data in a multiuser environment so that
thousands of users can concurrently access the same data. All this is accomplished
while delivering high performance. A database server also prevents unauthorized
access and provides efficient solutions for failure recovery.
Oracle Database is the first database designed for enterprise grid computing, the
most flexible and cost effective way to manage information and applications.
Oracle database (commonly referred to as oracle RDBMS or simply as oracle) is a
multi-model database management system produced and marketed by oracle
corporation.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 18


RAILWAY RESERVATION SYSTEM

The dramatic performance and functional improvements in Oracle


Database 11g make the two essential elements for better information
management: the ability to manage, secure, query, and administer information
with the highest levels of performance, and the ability to derive understanding
and knowledge in an open, standard manner from data which had previously
been dependent upon proprietary application or device logic. Over a decade of
development, research, and close collaboration with customers and application
providers have resulted in these unique capabilities found only in Oracle Database
11g.

Oracle DB runs on most major platforms, including Windows, UNIX, Linux and
Mac OS. Different software versions are available, based on requirements and
budget.

3.2.2FEATURES
• Reduce data storage and redundancy.
• It has wide level data manipulation language (SQL).
• Flexibility in data modeling.
• Security and control.
• Easy for accessing data
• Deferred writing at commits to improve transaction performance.
• Professional ORACLE starts the DBMS (Data Base Management System) in
the extended memory, so more main memory is available for other applications.
• Relational model of data management is based on set theory, built-in query
language is designed in the RDBMS, so that it can manipulate sets of data.
• Independent of physical storage and logical data design.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 19


RAILWAY RESERVATION SYSTEM

3.2.3DATA CONNECTIVITY
A Database connection is a facility in computer science that allows client
software to talk to database server software, whether on the same machine or
not. A connection is required to send commands and receive answers, usually in
the form of a result set.
Connections are a key concept in data centric programming. Since some DBMS
engines require considerable time to connect, connection pooling was invented to
improve performance. No command can be performed against a database
without an "open and available" connection to it.
Connections are built by supplying an underlying driver or provider with a
connection string, which is a way of addressing a specific database or server and
instance as well as user authentication credentials
Most of the business applications store large volumes of data, organized in a
format that provides easy access to data. Database management system (DBMS)
provides this mechanism to manipulate data stored in tables, with high level
commands.
By using the database, the programmer can spend more time designing the
interface, rather than worrying about how to save, retrieve and sort the actual
data.
In visual basic, three data access interfaces are available for all:
• Activex data objects(ADO)
• Remote data objects(RDO)
• Data access objects(DAO)
A data access interface is an object model that represents various facts of
accessing data.Using visual basic you can programmatically control the
connection, statements, builders and Return data for use in any application.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 20


RAILWAY RESERVATION SYSTEM

To Create A Data Connection To An Oracle Database


• In the choose Data Source dialog box, select Oracle Database, click OK.
• If the Add connection dialog box opens, and the data source is not oracle
database, click change to open the choose/change data source dialog box.
• Type the name of the server where the database you want to access is
located.
• Type the username and password used to access the database.
• Click OK.
DATA CONTROL PROPERTIE
• ALIGN:- determine where datacontrol is displayed.
• CAPTION:- phrase displayed on the data control
• CONNECTION_STRING:- contains the information used to establish a
connection to a database
• RECORD_SET:- a set of record defined by a data controls connection string
and record source properties
• RECORD_SOURCE:- Determines the table (or virtual table) the data control
is attached to.

ACTIVEX DATA OBJECTS


ActiveX Data Objects (ADO) is an application program interface from
Microsoft that lets a programmer writing Windows applications get access to a
relational or non-relational database from both Microsoft and other database
providers.
For example, if you wanted to write a program that would provide users of your
Web site with data from an IBM DB2database or an Oracle database, you could
include ADO program statements in an HTML file that you then identified as an
Active Server Page. Then, when a user requested the page from the Web site, the
page sent back would include appropriate data from a database, obtained using
ADO code.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 21


RAILWAY RESERVATION SYSTEM

OLE DB is the underlying system service that a programmer using ADO is actually
using. One feature of ADO Remote Data Service, supports "data-aware" activex
controls in Web pages and efficient client-side caches. As part of activex, ADO is
also part of Microsoft's overall Component Object Model (COM), its component-
oriented framework for putting programs together.

DATA ACCESS OBJECTS


DAO (Data Access Objects) is an application program interface (API)
available with Microsoft's Visual Basic that lets a programmer request access to a
Microsoft Access database. DAO was Microsoft's first object-oriented interface
with databases. DAO objects encapsulate Access's Jet functions. Through Jet
functions, it can also access other Structured Query Language (SQL) databases.
To set a property that's defined by the Access database engine, refer to the object
in the DAO hierarchy. The easiest and fastest way to do this is to create object
variables that represent the different objects you need to work with, and refer to
the object variables in subsequent steps in our code

ODBC AND REMOTE DATA OBJECTS


Open Database Connectivity (ODBC) provides a set of application
programming interface (API) functions which make it easier for a developer to
connect to a wide range of database formats. ODBC gives the developer a method
of designing programs that are not specific to database format whether you are
using Oracle, SQL Server, Access, or others. ODBC drivers are DLLs that contain
the functions that let you connect to various databases. Each ODBC driver is
separate for each database format. ODBC drivers take the code from a program
and convert the functions to the specific database format being used. RDO
(Remote Data Objects) is a thin layer of code that acts as an ODBC "wrapper",
enabling the developer to invoke ODBC functionality using familiar object method
and property syntax.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 22


RAILWAY RESERVATION SYSTEM

Chapter4
System Logical Design

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 23


RAILWAY RESERVATION SYSTEM

4.1INTRODUCTION:
System design is the process of defining the elements of a system such
as the architecture, modules and components, the different interfaces
of those components and the data that goes through that system. It is
meant to satisfy specific needs and requirements of a business or
organization through the engineering of a coherent and well-running
system

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 24


RAILWAY RESERVATION SYSTEM

4.2WATERFALL MODEL
We have used waterfall model as software engineering life cycle
process.it is the simplest oldest and most widely used process model
for software development .This model acquires its name from the fact
that classic software life cycle is represented as a sequence of
descending.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 25


RAILWAY RESERVATION SYSTEM

4.3DATA FLOW DIAGRAM


A Data Flow Diagram (DFD) is a diagram that describes
the flow of data and the processes that change or transform
data throughout a system. It’s a structured analysis and design tool that
can be used for flowcharting in place of, or in association with,
information oriented and process oriented system flowcharts. When
analysts prepare the Data Flow Diagram, they specify the user needs at
a level of detail that virtually determines the information flow into and
out of the system and the required data resources. This network is
constructed by using a set of symbols that do not imply a physical
implementation. The Data Flow Diagram reviews the current physical
system, prepares input and output specification, specifies the
implementation plan etc.
Four basic symbols are used to construct data flow
diagrams. They are symbols that represent data source, data flows, and
data transformations and data storage. The points at which data are
transformed are represented by enclosed figures, usually circles, which
are called nodes.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 26


RAILWAY RESERVATION SYSTEM

4.3.1Data Flow Diagram Symbols:-

- Source or Destination of data

- Data Flow

- Process

- Storage

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 27


RAILWAY RESERVATION SYSTEM

4.4STRUCTURE CHART:
A structure chart is a chart which shows the breakdown of a system to its lowest
manageable levels.they are used in structured programming to arrange program
modules into a tree .Each module is represented by a box, which contains the
modules name. the tree structure visualizes the relationship between modules.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 28


RAILWAY RESERVATION SYSTEM

4.5ACTIVITY DIAGRAM

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 29


RAILWAY RESERVATION SYSTEM

4.6USE CASE DIAGRAM:


A use case diagram in the unified modelling language (UML) is type of
behavioral diagram defined and created from use-case analysis. Its
purpose is to present a graphical overview of the functionality provided
by a system in terms of actors,their goals and any dependicies between
those use case

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 30


RAILWAY RESERVATION SYSTEM

4.7Scheme diagram

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 31


RAILWAY RESERVATION SYSTEM

Chapter 5
SYSTEM PHYSICAL
DESIGN

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 32


RAILWAY RESERVATION SYSTEM

5.1SYSTEM DESIGN

Introduction to System Design


Design is the first step into the development phase for any
engineered product or system. Design is a creative process. A good design is the
key to effective system. The term “design” is defined as “the process of
applying various techniques and principles for the purpose of defining a
process or a system in sufficient detail to permit its physical realization”.
It may be defined as a process of applying various techniques and
principles for the purpose of defining a device, a process or a system in
sufficient detail to permit its physical realization. Software design sits at
the technical kernel of the software engineering process and is applied
regardless of the development paradigm that is used. The system design
develops the architectural detail required to build a system or product.
As in the case of any systematic approach, this software too
has undergone the best possible design phase fine tuning all efficiency,
performance and accuracy levels. The design phase is a transition from a
user oriented document to a document to the programmers or database
personnel. System design goes through two phases of development:
Logical and Physical Design.

5.1.1INPUT DESIGN
The design of input focuses on controlling the amount of input required,
controlling the errors, avoiding delay, avoiding extra steps and keeping
the process simple. The input is designed in such a way so that it
provides security and ease of use with retaining the privacy. Input
Design considered the following things:

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 33


RAILWAY RESERVATION SYSTEM

 What data should be given as input?


 How the data should be arranged or coded?
 The dialog to guide the operating personnel in providing
input.
 Methods for preparing input validations and steps to follow
when error occur.

5.1.2OUTPUT DESIGN

A quality output is one, which meets the requirements of the end user
and presents the information clearly. In output design it is determined
how the information is to be displaced for immediate need and also the
hard copy output. It is the most important and direct source information
to the user. Efficient and intelligent output design improves the system’s
relationship to help user decision-making.

Designing computer output should proceed in an organized, well thought


out manner; the right output must be developed while ensuring that each
output element is designed so that people will find the system can use
easily and effectively. When analysis design computer output, they
should:
 Identify the specific output that is needed to meet the
requirements.
 Select methods for presenting information.
 Create document, report, or other formats that contain information
produced by the system.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 34


RAILWAY RESERVATION SYSTEM

5.2DATA BASE DESIGNE


NORMALIZATION
database normaliziation is the process of removing redundant data
from the tables to improve storage efficency , data integrity and
scalibility. in the relational model, methods exists for qualifying how
efficient a databse is.these classifications are called normal forms (NF),
and there are algorthims for converting a given database between
them

FIRST NORMAL FORM (1NF):


It states that the domain of an atribute must include only atomic values
and that are value of any atributes in a tulle must be a single value from
the domain of that attribute. 1NF disallows “releation within
relations”.the only values permitted by 1NF are single atomic values

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 35


RAILWAY RESERVATION SYSTEM

Example 1 – Relation STUDENT in table 1 is not in 1NF because of multi-valued attribute


STUD_PHONE. Its decomposition into 1NF has been shown in table 2.

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 36


RAILWAY RESERVATION SYSTEM

Second Normal Form (2NF)


To be in second normal form, a relation must be in first normal form and relation must
not contain any partial dependency. A relation is in 2NF if it has No Partial
Dependency, i.e., no non-prime attribute (attributes which are not part of any candidate
key) is dependent on any proper subset of any candidate key of the table.
Partial Dependency – If the proper subset of candidate key determines non-prime
attribute, it is called partial dependency.

STUD_NO COURSE_NO COURSE_FEE


1 C1 1000
2 C2 1500
1 C4 2000
4 C3 1000
4 C1 1000
2 C5 2000

Table 1 Table 2
STUD_NO COURSE_NO COURSE_NO COURSE_FEE
1 C1 C1 1000
2 C2 C2 1500
1 C4 C3 1000
4 C3 C4 2000
4 C1 C5 2000

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 37


RAILWAY RESERVATION SYSTEM

Third Normal Form (3NF)


A relation is in third normal form, if there is no transitive dependency for non-prime
attributes as well as it is in second normal form.
A relation is in 3NF if at least one of the following condition holds in every non-trivial
function dependency X –> Y
1. X is a super key.
2. Y is a prime attribute (each element of Y is part of some candidate key).

AL-AMEEN INSTITUTE OF INFORMATION SCIENCES Page 38

You might also like