Sei sulla pagina 1di 13

Bus Transport Management System

Requirements
      

All work are done manually Inserting problem Update problem Search problem Merging problem Backup problem Lack of security

   

Deletion problem Accuracy cannot be maintain Loss of money, energy & time Increase in working staff

Solution
1. 2. 3.

By using MS-Excel. MSBy using PL\SQL for maintaining PL\ record. By using other Software Design for Transport management system.

By using PL\SQL PL\


   

All work are done in Database. Update is done more easily. Search for particular record is easy. Merging problem can be solve.

    

Backup can be taken Security can be maintain. To delete particular record is easy. Decrease in working staff. Saving of money, time and energy.

Unnormalized Database
P_NO 01 02 P_name P_Add Ashish Ram Surat Surat P_phon Bus_no e 901 918 8551 8551 RoutRoutname Valsad Valsad NO_seat 2 1

A_id 101 101

A_na me

A_Ph Bill-no Billone 1001 1002

Bill_date 7-05-11 057-05-11 05-

Journey_ date 10-05-11 10-0511-05-11 11-05-

Amount 500 700

Joshu 9113 Joshu 919

1st Normal Form:-It dose not contain Repeating group Form:P_NO (P.K) 01 02 P_na me Ashish Ram P_Add P_pho Bill-no Billne Surat Surat 901 918 1001 1002 Bill_da Journe Amoun te y_date t 7-05-11 057-05-11 0510-0510-0511 500

11-05-11 700 11-05-

P.K = PRIMARY KEY

AGENT BUS
A_id A_na (P.K) me 101 101 A_Ph one Bus_no RoutRoutname (P.K) 8551 8551 Valsad Valsad NO_seat 2 1

Joshu 9113 Joshu 919

2nd Normal Form:- 1st NF + No-non Key attribute depends Form:Noon partially primary key
P.K = PRIMARY KEY F.K = FOREIGN KEY
P_NO (P.K) P_na me (F.K) P_Ad d P_pho Bill-no Billne Bill_da Journe Amoun te y_date t

BUS
Bus_no RoutRoutname (P.K) (F.K) NO_seat

AGENT
A_id A_na (P.K) me (F.K) A_Ph one

DATABASE DESIGN
Field Name Data Type Varchar2 Varchar2 Varchar2 Number Data Type
Varchar2 Varchar2 Varchar2 10 20 5

Value 15 25 30 15 Value

PASSENGER

P_No P_Name P_Address P_Phone

BUS

Field Name
Bus_No Rout_Name Total_Seat

AGENT
Field Name Agent_Id Agent_name Agent_Add Agent_phone Data Type Varchar2 Varchar2 Varchar2 Number 5 15 20 15 Value

Bill_Details
Field Name Bill_no Bill_date Journy_Date No.Of.Seat Amount Data Type Varchar2 Date Date Varchar2 Number 10 --5 (10,2) Value

Travel_details
Field Name P_NO Bus_no No.Of.Seat Journy_date Data Type Varchar2 Varchar2 Varchar2 date 15 10 5 -Value

Taxes_Deatils

Field name Tax_b_no Bus_no Amount

Data Type Varchar2 varchar2 Number 10 10

Value

10,2

DATA DICTIONARY
PASSENGER

Field Name P_No P_Name P_Address P_Phone

Data Type Varchar2(15) Varchar2(25) Varchar2(30) Number(15)

Constraint Primary Key Foreign Key -Not Null

BUS

Field Name Bus_No Rout_Name Total_Seat

Data Type Varchar2(10) Varchar2(20) Varchar2(5)

Constraint Primary key Foreign Key --

AGENT
Field Name Agent_Id Agent_name Agent_Add Agent_phone Data Type Varchar2(5) Varchar2(15) Varchar2(20) Number(15) Constraint Primary Key Foreign key -Not Null

Bill_Details

Field Name Bill_no Bill_date Journy_Date No.Of.Seat Amount

Data Type Varchar2(10) Date Date Varchar2(5) Number(10,2)

Constraint Primary Key Foreign key -Default (1) Not Null

Travel_details
Field Name P_NO Bus_no No.Of.Seat Data Type Varchar2(15) Varchar2(10) Varchar2(5) Constraint References Passenger (P_no) References Bus (Bus_no) References Bill_details (No.Of.Seat) References Bill_details (Journy_date)

Journy_date

date

Taxes_Deatils

Field name Tax_b_no Bus_no Amount

Data Type Varchar2(10) Varchar2(10) Number(10,2)

Constraint Primary key References Bus (Bus_no) Not Null

Potrebbero piacerti anche