Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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.
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_na me
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
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
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
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
Value
10,2
DATA DICTIONARY
PASSENGER
BUS
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
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