pradeep dbms

Upload: karuna1240

Post on 08-Apr-2018

240 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/7/2019 pradeep dbms

    1/26

    Term paper of database management systemTerm paper of database management system

    Topic :- Bus reservation systemTopic :- Bus reservation system

    Submitted By:-

    Pradeep Kumar Bhatt

    Section D1804

    Roll.No.-B54

    Reg.no. 10803085

    Acknowledgement :-

  • 8/7/2019 pradeep dbms

    2/26

    I am extremely happy to present this term paper. I have divided the topics in small ways so that the topics can bearranged & understood properly .the object of this term papers is to bring out the subject matter in a most concise ,compact ,8 lucid manner.

    We are thankful to the following colleagues for their adequate guidance and encouragement during the preparation of themanuscript of this term paper like DBMS

    Some websites as google.com, yahoo.com, bing.com, Wikipedia.com, etc.

    ideas about to thinking for making the term papers & tell about the pattern of my topic.

    I m also thankful to my room partner.

  • 8/7/2019 pradeep dbms

    3/26

    Table of contents

    1. Introduction(Bus reservation system)

    2. About functioning of topic

    3. Bus services (passengers,description)

    4. Bus budget & finances

    5. E R Diagram

    6. Command

    7. Snap shot

    8. Own view

  • 8/7/2019 pradeep dbms

    4/26

    9. Conclusion

    10. ns

    **********************************************************************************************************

    INTRODUCTION

    Traveling is a large growing business in India and other countries also. It becomes very difficult to keep records for large no.

    of items, customers and calculating bills. This project is very useful in the Bus reservation system.

    I observed the working of the Bus reservation system and after going through it, I get to know that there are many operations,

    which they have to do manually. It takes a lot of time and cause 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, I am offering this proposal of Bus reservation System.

  • 8/7/2019 pradeep dbms

    5/26

    SYSTEM ANALYSIS

    System analysis and design refers to the process of examining a business situation with the intent of improving it through better

    procedures and methods. System development can generally be thought of as having two major components: System Analysis and

    System Design.

    1. IDENTIFICATION OF NEEDS :

    Drawbacks of current system:

    Existing system is totally on book and thus a great amount of manual work has to be done. With the increase of manual work

    in Bus services and information needs, automation was necessary.

    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, seat available, prices of per/seat and fixing bill

    generation on each bill.

    Finding out the details regarding any information was very difficult, as the user has to go through all the books thoroughly.

    Major problem was the lack of security check that was must to be applied.

    2. STUDY METHODOLOGY :

    System design is the process of planning a new system or replace or complement an existing system. But before this planning

    can be done, we must thoroughly understand the existing system and determine how computers can best be used to make its operation

  • 8/7/2019 pradeep dbms

    6/26

    more effective. To obtain information about the current system and determine the requirements of the new system, study of the current

    system has been carried out. System analysis, then, is the process of gathering and interpreting facts, diagnosing problems and using

    the information to recommend improvement to the system. In brief, we can say that analysis specifies what the system should do.

    Design specifies how the system should do.

    3. SOFTWARE ENGINEERING PARADIGM :

    To develop a software, software engineer must incorporate a development strategy that encompasses the processes, methods,

    tools and generic phases etc. This strategy is often referred to as a Process Model or Software Engineering Paradigm.

    Actually a paradigm specifies some activities that should be performed and the order in which they should be performed. ASoftware Development Paradigm is chosen based on the nature of the project and application, methods and tools to be used and the

    controls and deliverables that are required.

    i.) Business modeling :

    In this phase, all the information about the business functioning of the Restaurant is collected, how the data and information is

    flow from one end to another end using the following questions:

    What information drives the department process?

    What information is generated?

    Who generates it?

    Where does the information go? Who process it?

  • 8/7/2019 pradeep dbms

    7/26

    The goal of business process engineering is to define architectures that will enable a business to use information effectively.

    In this project, I have determined three different architecture of business objectives and goals :

    a. Data architecture.

    b. Application architecture.

    c. Technology architecture.

    ii.) Data modeling :

    In this phase, the information collected in business modeling phase is refined into a set of data objects that are needed to

    support the project. The attributes of each object are identified and the relationships between these objects defined.iii.) Process modeling : In this phase, processing descriptions and functions like adding, modifying, deleting customer records,

    opening of new account, closing account, withdraw amount deposit amount, printing reports, providing information, file handling etc.

    are created.

    iv.) Application generation :

    The fourth generation techniques are used to generate application, like reusing the predefined functions or creating reusable

    components.

    v.) Testing :

    Most of the functions are already tested, as they are predefined functions. However, new components or functions are also

    tested after application generation.

  • 8/7/2019 pradeep dbms

    8/26

    In the project process emphasizes reuse, many of the program components must be tested and all interfaces must be fully

    exercised.

    4. FEASIBILITY STUDY :

    Feasibility is the determination of whether or not a project is worth doing the process followed and making this determination

    is called feasibility study. This determines whether a project can and should be taken. Once it has been determined that a project is

    feasible, the analyst can go ahead and prepare the project specification which finalizes project requirements. Generally, feasibility

    studies are undertaken within right time constraints and normally culminate in a written and oral feasibility report. The contents and

    recommendations of such a study will be used as a sound basis for deciding whether to proceed, postpone or cancel the project. Thus,

    since the feasibility study may lead to the commitment of large resources, it becomes necessary that it should be conducted

    competently and that no fundamental errors of judgment are made.

    There are following types of inter-related feasibility :

    i.) Technical feasibility :

    This is concerned with specifying equipment, software and hardware that will successfully satisfy the user requirement. The

    technical needs of the system may vary considerably, but might include:

    The facility to produce output in a given time.

  • 8/7/2019 pradeep dbms

    9/26

    Response time under certain conditions.

    Ability to process a certain volume of transactions at a particular speed.

    Facility to communicate data to distant location.

    In examining technical feasibility, configuration of the system is given more importance than the actual make of hardware. The

    configuration should give the complete picture about the system requirements. What speeds of input and output should be achieved at

    particular quality of printing.

    According to the definition of technical feasibility the compatibility between front-end and back-end is very important. In our

    project the compatibility of both is very good. The degree of compatibility of visual basic and PL/SQL is very good. The speed of

    output is very good when we enter the data and click button then the response time is very fast and give result very quickset. I never

    find difficulty when we use complex query or heavy transaction. The speed of transaction is always smooth and constant. This

    software provides facility to communicate data to distant location.

    The designing of front-end of a project is very important. So I have selected visual basic as front-end due to the following

    reasons :

    Easy implementation of code.

    Well defined interface with database.

    Well defined hand shaking with PL/SQL .

  • 8/7/2019 pradeep dbms

    10/26

    Easy Compiling and Running.

    At present scenario, a number of back-end tools are available, but I have selected PL/SQL because of the following

    reasons :

    Able to handle large amount of data.

    Security.

    Robust RDBMS.

    Backup & recovery.

    With the help of above support we remove defect of existing software. In future, we can easily switch over any platform to

    ensure that system does not halt in case of undesired situation or events. Problem affected of any module does not affect any other

    module of the system.

    ii.) Operational Feasibility :

    It is mainly related to human organizational and political aspects. The points to be considered are :

    What changes will be brought with the system?

    What organization structures are disturbed?

    What new skills will be required? Do the existing staff members have these skills?

  • 8/7/2019 pradeep dbms

    11/26

  • 8/7/2019 pradeep dbms

    12/26

    This software is working with its employee very easy.it has facility to save data in its software.only write the command the data willsave automatically.we can save record in the daily basic work that a daily basic employee and monthly basic employee,purchage of goods and parts.

    This software is work on query that is perform by the user and perform by the administrator.it is easy to query for database.

    E R Diagram of BUS RESERVATION SYSTEM :-

    Relation between Owner and Bus:-

    Relation between owner and government:-

    ownership

    BUS OWNER

    Busno.

    Routename

    Body no.nno.

    nameaddress

    mobile

    Bus no.

    Linc

    ences

    government OWNER

    Ownerno.

    Ownername

    Owneraddress

    Tax no.

    Deptname

    Ownerno.

  • 8/7/2019 pradeep dbms

    13/26

    Relation between Bus and passange:-

    Relation between Agent and Owner:-

    Travel

    BusPasseng

    p-no.

    p-address

    p-name

    Bus Routename

    Bus Routename

    Bus no.

    A-address A-no.

  • 8/7/2019 pradeep dbms

    14/26

    Database Structure :

    FIVE tables have been used in this project :

    1. PASSANGER : Keeps record of bills.

    S. No. Field Name Datatype Description1. PNO : VARCHAR2(15 IT SHOW THAT NO OF PASSANGER 2. PNAME : Varchar(30) It shows NAME OF PASSANGERl3. PADDRESS : Varchar2(20) It shows address of passanger 4. routenmae : Varchar(20) It shows the items name

    2. owner : Keeps record of owner of record.

    S. No. Field Name Datatype Description1. ownername : number(10) Name of owner 2. Ownerno : Varchar(20) Number of owner 3. Ownerphno : Number(10) Phone number of owner

    Collection

    OwnerAgent

    O-phoneno.O-no.

    O-name O-address A-nameA-phoneno.

  • 8/7/2019 pradeep dbms

    15/26

    4. Owneraddress : Varchar(34) Address of owner 5 Bus no : Varchar2(7) Bus no that has owner

    3.government: Keep record of username or passward

    s.no. Field name Datatype Description1 Dept no. Varchar2(15) Show the dept no.2 Ownerno Varchar2(30) Show No. of owner 3 Tax no Varchar2(40) Show the taxno

    4.BUS : Keeps record of username or password.

    S. No. Field Name Datatype Description1. Busno : varchar(7) No. of bus2. busroutename : Varchar(20) Route of the bus

    5.AGENT: : Keeps record of username or password.

    Sno Field name Datatype Description1 Aname Varchar2(15) Agent name2 Aaddress Varchar2(30) Address of agent

    3 Ano Varchar2(20) No of agent

    Table creation :-

    Bus table

    create table bus(Bus no. varchar2(10),body no. varchar2(8),route name varchar2(20));

  • 8/7/2019 pradeep dbms

    16/26

    Passanger table

    create table passanger(pno varchar2(15),Pname varchar2(30),Paddess varchar2(30),routename varchar2(23));

  • 8/7/2019 pradeep dbms

    17/26

    agent table

    create table agent(Aname varchar2(15),Aaddess varchar2(30),Ano varchar2(40));

  • 8/7/2019 pradeep dbms

    18/26

  • 8/7/2019 pradeep dbms

    19/26

    Government table

    create table government(deptname varchar2(15),ownerno varchar2(30),taxno varchar2(40));

    Owner table

    create table owner(ownerno varchar2(11),name varchar2(30),address varchar2(40),mobileno number(20),busnovarchar2(10));

  • 8/7/2019 pradeep dbms

    20/26

    View structure of the database:

    Query:

    Desc bus;

    Desc passanger;

    Desc owner;

    Desc agent;

  • 8/7/2019 pradeep dbms

    21/26

    Desc government;

    TABLE:BUS:

    NAME TYPEBusno VARCHAR2(10)Bodyno VARCHAR2(8)Routename Varchar2(20)

    TABLE: passanger:

    NAME TYPEPno VARCHAR2(15)Pname Varchar2(30)ADDRESS VARCHAR2(30)Routename Varchar2(23)

    TABLE: owner:

    NAME TYPEOwnerno Varchar2(11)

    NAME VARCHAR2(30)Address VARCHAR2(40)

    Mobileno number(10)Busno VARCHAR2(10)

    TABLE: agent:

  • 8/7/2019 pradeep dbms

    22/26

    NAME TYPEAname Varchar2(15)Aaddress VARCHAR2(30)Ano VARCHAR2(40)

    TABLE:government

    NAME TYPE

    Deptname Varchar2(15)

    Ownerno Varchar2(30)

    Taxno Varchar2(40)

    Insert record into table: BUS:

    Query:

    Insert into bus values (pb21 1234, br2315,jala to ldh);

    Output:

    1 row created.

  • 8/7/2019 pradeep dbms

    23/26

    Insert record into table: passanger:

    Query:

    Insert into passanger values (an1234, mohit, 12,sector-2,jal, jal to ldh);

    Output:

    1 row created.

    Insert record into table: owner:

    Query:

    Insert into owner values (10802432, Anand shankar jha, 17/2 noida, 9988776655,pb211234);

    Insert into owner values (10810085,Sakshi sharma,12/3 jal,9977886655,pb211234);

    Insert into owner values (10802343, Nitish Bhardwaj, 12/2 mohali,9988221133, pb211234);

    Insert into owner values (108968, Sandip, 19/2 nalwa road jalandhar cantt, 9977646321,pb211234); Insert into owner values (10812344, Vipul behal, 12,main road abohar, 9878456721,pb211234);

    Owner no NAME ADDRESS mobilenoT busno10802432 ANAND

    SHANKAR JHA

    17/2 noida 9988776655 Pb211234

    10810085 SAKSHISHARMA

    12/3, JALA 9977886655 PB211234

    10802343 NITISHBHARD

    12/2 mohali 9988221133 PB211234

  • 8/7/2019 pradeep dbms

    24/26

    WAJ108968 SANDIP 19.2 NALWA

    ROADJALANDHAR

    CANTT

    9977646321 PB211234

    10812344 VIPULBEHAL

    12, MAINROADABOHAR

    9779045078 PB211234

    10802636 GAURAVGUPTA

    34, JAWAHAR COLONY,JALANDHAR

    9888067078 PB211234

    10806968 SARABJIT

    THAKUR

    23, RAMAMANDI,

    JALANDHAR,PUJAB

    9326067578 PB211234

    Insert into passanger values (10802636, Gaurav gupta,34, jawahar colony, jaladhar, ldh to jal);

    Insert into passanger values (10806968, sarabjit thakur, 23, rama mandi, jalandhar, pujab, jal to phw);

    Insert into passanger values (10808968, Animesh Tiwari, 169, 45/3, sikandarpur,Bhagalpur,Bihar,ldh to amrit);

    Output:

    1 row created.

    1 row created.

    1 row created.

  • 8/7/2019 pradeep dbms

    25/26

    1 row created.

    Insert record into table: agent:

    Query:

    Insert into agent values (nitish kumar, 12/2,jal, 998877662);

    Insert into agent values (mohit kumar, 15/3 phw, 9876543215);

    Output:

    1 row created.

    CONCLUSION

    This project is designed to meet the requirements of a Bus reservation system. It has been developed in visual basic and the database

    has been built in PL/SQL only, keeping in mind the specifications of the system. Apart from MS-Access we could have alsoimplemented other database software like Oracle or SQL.

    For designing the system we have used simple data flow diagrams and E/R diagrams.

  • 8/7/2019 pradeep dbms

    26/26

    Overall the project teaches us the essential skills like:

    1. Using system analysis and design techniques like data flow diagram and E/R diagram in designing the system.

    2. Understanding programming logic and language along with utilities like reports, forms, queries etc. in Visual Basic and

    PL/SQL.

    ********************************************************************************************************