Daewoo reservation and transport system database

25
Department of Computer Science &Information Technology PROJECT Daewoo Reservation and Transport system Submitted To: Sir Hafiz Faisal Submitted By: NAME Roll NO Efrah Shakir BITF13E113 Iqra Rafiq BITF13E096 Syeda Stara Hassan BITF13E071 Sonia Akhtar BITF13E107 Class: BSIT 4 th SS2 1

Transcript of Daewoo reservation and transport system database

Page 1: Daewoo reservation and transport system database

Department of Computer Science &Information

Technology

PROJECTDaewoo Reservation and Transport system

Submitted To:

Sir Hafiz Faisal

Submitted By:

NAME Roll NO

Efrah Shakir BITF13E113

Iqra Rafiq BITF13E096

Syeda Stara Hassan BITF13E071

Sonia Akhtar BITF13E107

Class: BSIT 4th SS2

1

Page 2: Daewoo reservation and transport system database

ContentsContents..................................................................................................................2

1. ABSTRACT............................................................................................................3

2. INTRODUCTION...................................................................................................3

3. PROBLEM SPECIFICATION...................................................................................4

3.1. Existing system...............................................................................................5

3.2. Proposed system............................................................................................5

4. SOFTWARE REQUIREMENT SPECIFICATION........................................................6

4.1. Hard ware Requirement Specification:..........................................................6

4.2. Software Requirement Specification:.............................................................6

5. NORMALIZATION OF TABLES..............................................................................7

5.1 Database normalization..................................................................................7

5.1.1 First Normalization form...........................................................................7

5.1.2 2nd Normalization form.............................................................................7

5.1.3 3rd Normalization form............................................................................7

6. Normalization All Tables In Database.................................................................8

6.1 normalized Form:............................................................................................8

7. Architecture of tables in SQL Server 2008 And Records...................................11

7.1First Table in Class........................................................................................11

7.2 DATABASE DIAGRAM IN SQL SERVER............................................................19

8. Entity Relation Diagram In Microsoft VISIO......................................................20

9. Relational Model of ERD...................................................................................21

10. Conclusion………………………………………………………………………………………………..22

2

Page 3: Daewoo reservation and transport system database

1. ABSTRACT

Traveling is a large growing business across all countries. Daewoo reservation /transport system deals with maintenance of records of details of each passenger who had reserved a seat for a journey. It also includes maintenance of information like schedule and details of each bus. We observed the working of the Bus reservation system and after going through it, we get to know that there are many operations, which they have to do manually. It takes a lot of time and causes many errors. Due to this, sometimes a lot of problems occur and they were facing many disputes with customers. To solve the above problem, and further maintaining records of items, seat availability for customers, price of per seat, bill generation and other things, we are offering this proposal of reservation system. By using this software, we can reserve tickets from any part of the world, through telephone lines, via internet. Customer can check availability of bus and reserve selective seats. The project provides and checks all sorts of constraints so that user does give only useful data and thus validation is done in an effective way

2. INTRODUCTION

The focus of the project is to computerize traveling company to manage data, so that all the transactions become fast and there should not be any error in transaction like calculation mistake, bill generation and other things. It replaces all the paper work. It keeps records of all bills also, giving to ensure 100% successful implementation of the computerized Bus reservation system.

This reservation system has three modules. First module helps the customer to enquire the availability of seats in a particular bus at particular date. Second module helps him to reserve a ticket. Using third module he can cancel a reserved ticket.

First module retrieves data from tables required for enquire. Second module inserts values into the tables on reservation. Third module deletes values into from the table on cancellation of tickets.

As the database is hosted using Oracle Server onto internet, the application can access data from any part of the world, by many number of people concurrently.

3

Page 4: Daewoo reservation and transport system database

3. PROBLEM SPECIFICATION

Bus Reservation Systems that were suggested till now, are not up to the desired level. There is no single system which automates all the process. In order to build the system, all the processes in the business should be studied, System study helps us under the problem and needs of the application. System study aims at establishing requests for the system to be acquired, development and installed. It involves studying and analyzing the ways of an organization currently processing the data to produce information. Analyzing the problem thoroughly forms the vital part of the system study. In system analysis, prevailing situation of problem is carefully examined by breaking them into sub problems. Problematic areas are identified and information is collected. Data gathering is essential to any analysis of requests. It is necessary that this analysis familiarizes the designer with objectives, activities and the function of the organization in which the system is to be implemented.

4

Page 5: Daewoo reservation and transport system database

3.1. Existing system

Existing system is totally on book and thus a great amount of manual work has to be done. The amount of manual work increases exponentially with increase in bus services.

Needs a lot of working staff and extra attention on all the records In existing system, there are various problems like keeping records of items, seats

available, prices of per/seat and fixing bill generation on each bill Finding out details regarding any information is very difficult, as the user has to go

through all the books manually. Major problem was lack of security

3.2. Proposed system

The system is very simple in design and to implement. The system requires very low system resources and the system will work in almost all configurations. It has got following features:

5

Page 6: Daewoo reservation and transport system database

Ensure data accuracy Records are efficiently maintained by DBMS DBMS also provides security for the information Any person across the world, having internet can access this service Availability of seats can be enquired very easily. Passengers can also cancel their tickets easily. Minimum time needed for the various processing Better Service Minimum time required This would help the corporation prepare and organize its schedules more efficiently on

the basis of traffic demand.

4. SOFTWARE REQUIREMENT SPECIFICATION

4.1. Hard ware Requirement Specification:

Processor: 2.2 GHz or higher CPU Hard disk: 2GB or above Ram: 256 MB or more Internet: 54 Kbps and more

4.2. Software Requirement Specification:

Operating system: Windows 8

Microsoft Visio 2007

SQL 2008

5. NORMALIZATION OF TABLES

8.1 Why Normalization:

6

Page 7: Daewoo reservation and transport system database

5.1 Database normalization

5.1.1 First Normalization form Order to improve storage efficiency, data integrity, and scalability. Normalization generally involves re-joined or linked each time

8.2 First Normal FormGiven table is converted to its 1NF as follows. STEP NUMBER 1: elimination of duplicative columns from table 1.•Step number 2: create separate table for each group of related data and identify each row with unique column (primary key).

5.1.2 2nd Normalization form8.3 2nd Normal FormA table is in first normal form and each non key

Now we'll take the table above and design new tables that will eliminate the in the non-key fields.

To decide what fields belong together in a table, think about which field determines the values in other fields. Create a table for those fields and enter the sample data.

Think about what the primary key for each table would be and about the relationship between the tables.

Mark the primary key for each table and make sure non-key fields.

5.1.3 3rd Normalization form.4 3rd Normal Form Third normal form (3NF) requires that there are no functional dependencies of non

attributes on something other than a candidate key. A table is in 3NF if all of the non There should not be transitive d

8.5 Normalization of Tables

6. Normalization All Tables In Database

7

Page 8: Daewoo reservation and transport system database

In passenger table there is repeating group.

After normalization

Passeger_Id Manager_Id Ticket_ID Route_ID Buss_NoDriver_ID

Hostest_ID

P001 M001 T1 R001 B0111 D111 Ho1

Poo1 M001 T1 R002 B0112 D111 Ho2

Poo1 Moo1 T1 R002 B0112 D111 Ho3

There is no repeating group.

Second normalized Form:

In the following Passenger relation all attributes are dependent on the primaryKey passenger ID.

Passenger_Id Passenger_Name P_Phone_NO Date Seate_No FareT_No_of_Passengers

P001 Ali Hassan 92334121214 01_02_2015 1 400 1

We can create two other relations from passenger table one is ticket because all attributes fully depend on primary key Ticket_Id.

8

Passeger_Id

Manager_Id

Ticket_ID

Route_ID Buss_No

Driver_ID

Hostest_ID

P001 M001 T1R001,Roo2

B0111,Bo112 D111

Ho1,H02,Ho3

Page 9: Daewoo reservation and transport system database

Passenger_Id Date Seate_No FareT_No_of_Passengers

P001 01_02_2015 1 400 1

When we talk about the ticket we should know about the Passenger Id, date, seat and fare.

Manager before third normalization form

Manager_ID

Manager_Name Gender Adress City State Phone_no

M001 Farooq Ahmad maleA/Block Iqbal town Sargodha Pakistan 3334546765

M002Muhammad Haris male

H_no 3 Farooq colony Sargodha Pakistan 3005123411

M003 Usama Yaseen male 46-PAF base Sargodha Pakistan 3209899178M004 Zoraiz Amin male 23 PAF Base Sargodha Pakistan 3235789235

M005 Hassan Abbas male

H_no18 street1 frichicks Sargodha Pakistan 3461926272

After normalization

Manager_ Table

Manager_Id Manager_Name Gender

9

Page 10: Daewoo reservation and transport system database

Manager_Id Address City State Phone_no

ARCHITECTURERECORDS10.1 First table is CLASSES

7. Architecture of tables in SQL Server 2008 And Records

First Table in Class

Design View

10

Page 11: Daewoo reservation and transport system database

Records in Table:

Design View

11

Page 12: Daewoo reservation and transport system database

Records in Table:

Design View

12

Page 13: Daewoo reservation and transport system database

Records in Table:

Design View

13

Page 14: Daewoo reservation and transport system database

Records in Table:

Design View

14

Page 15: Daewoo reservation and transport system database

Records in Table:

Records in Table:

15

Page 16: Daewoo reservation and transport system database

Design View

Records in Table:

16

Page 17: Daewoo reservation and transport system database

Design View

17

Page 18: Daewoo reservation and transport system database

7.2 DATABASE DIAGRAM IN SQL SERVER

18

Page 19: Daewoo reservation and transport system database

8. Entity Relation Diagram In Microsoft VISIO

19

Page 20: Daewoo reservation and transport system database

9. Relational Model of ERD

Passenger

Reservation

Reservation_Id Passenger_Id Manager_Id Ticket_Id

Manager

Manager_Id Manager_Name Manager_City State

Ticket

Ticket_Id No_Of_Passenger Seat_No Fare

Route

Route_Id Dest_Addres Source_Addres Ticket_Id

Buss

Buss_No Route_Id Item

20

Passenger_Id Passenger_Name Phone_no

Page 21: Daewoo reservation and transport system database

Driver

Driver_Id Name Buss_Id

Hostes

Hostest_Id Name Buss_Id

Refershment

Passenger_Id Hostest_Id Item

Conclusion

We have tried our information effectively, yet, there can be further enhancement in the Application.Like the things this project also has some limitations and can further be enhances by certain drawbacks that do not permit the system to be 100% accurate.PROJECT

21