P Railway Reservation

download P Railway Reservation

of 22

Transcript of P Railway Reservation

  • 8/6/2019 P Railway Reservation

    1/22

    PRESENTATION

    OF

    RAILWAY RESERVATION SYSTEM

  • 8/6/2019 P Railway Reservation

    2/22

    OVERVIE W AND INTRODUCTION

    DATABASE INITIAL STUDY

    CONSTRAINTS

    OBJECTIVES

    SCOPE AND BOUNDARIES

    ENTITY RELATIONSHIP DIAGRAM

    SQL COMMANDS

    SQL QUERIES

  • 8/6/2019 P Railway Reservation

    3/22

    In this we are discussing that how the reservation is done.

    What are the rules and regulations and procedure for

    reservation.

    In this project we are going to cover the following things:-Employee

    Customer

    Station

    Train

    Forms

  • 8/6/2019 P Railway Reservation

    4/22

    Class

    Time

    Fare

    Ticket

    Train

    Forms

  • 8/6/2019 P Railway Reservation

    5/22

    Analyze the company situation:-

    a) Operating enviornment

    b) Organisational Structure

  • 8/6/2019 P Railway Reservation

    6/22

    Reservation clerk

    CRS(chief reservation supervision )

    Senior suprident

    Main suprident

    Headquarters(Delhi)

  • 8/6/2019 P Railway Reservation

    7/22

    TCR

    Booking clerk

    Senior booking clerk

  • 8/6/2019 P Railway Reservation

    8/22

    Constraints:-

    There should be limited number of seats for each class.

    The number of tickets is limited.

    Constraints on reservation:-

    When we buy the ticket in waiting then due to condition the

    seats are not vacant and the passenger cannot travel in the

    train, then the money is refund.

  • 8/6/2019 P Railway Reservation

    9/22

    There are some terms and conditions on refund of money.

    When the money is refunded, there is 10% service charges

    deducted according to the class.

  • 8/6/2019 P Railway Reservation

    10/22

    In objectives we cover that how to solve the problems:-

    All the manual work should be converted into computerized sothat the load of employees should decrease.

    The database should be stored in computer rather then is

    register/manually.

    To provide an avenue for customers to obtain their tickets in amore convenient manners.

  • 8/6/2019 P Railway Reservation

    11/22

    There are many other departments of railway who maintainsthe database like:-

    Accounts department

    Trains department

    Engineering department

    Maintenance department

    Reservation department

    Out of all these, we are covering the railway reservationsystem.

  • 8/6/2019 P Railway Reservation

    12/22

    Database design:-

    Creates the conceptual design

    Data analysis and requirements

    Focus on:-

    Information needs

    Information users

    Information sources

    Data sources

  • 8/6/2019 P Railway Reservation

    13/22

    Business rule are the rule which are not common/restricted to

    one person. On the basis of this constraints are decided:-

    There should be payment through credit cards while onlinebooking

    There are limited number of seats in each class.

    Time is limited for reserved tickets. It not used in that period oftime, it is cancelled.

  • 8/6/2019 P Railway Reservation

    14/22

    EMPLOYEES

    Emp_name

    Emp_id

    Address

    Gender

    Phone no

    Date joined

    Salary

    Designation

    Duty_shift

  • 8/6/2019 P Railway Reservation

    15/22

    CUSTOMER

    Customer_name

    Customer_id

    Address

    Gender

    Phone no

    TRAIN

    Train_name

    Train_num

  • 8/6/2019 P Railway Reservation

    16/22

    TICKET

    Ticket_num

    Source and destination

    C

    lassFare

    Train_id

    Seat_id

    Quota

    FORM

    Form_name

    Form_id

  • 8/6/2019 P Railway Reservation

    17/22

    FARE

    Source

    Destination

    Class

    CLASS

    Date

    Sleeper

    Trn_noNo.of seats

  • 8/6/2019 P Railway Reservation

    18/22

    TIME

    Dep_time

    Arrival_time

    Train_id

    STATION

    Station_name

    No.of lines

    Station_idNo.of platforms

  • 8/6/2019 P Railway Reservation

    19/22

    CREATE:-

    create table employee

    (

    emp_id number primary key,

    emp_name text,Address varchar,

    Gender text,

    phn_no number,

    date_joined date,

    designaion text,duty_shift text

    );

  • 8/6/2019 P Railway Reservation

    20/22

    INSERT

    INSERT INTO employee ( emp_name, emp_id, address, gender, phn_no,

    date_joined, salary, designation, duty_shift )

    VALUES (' Ram', 1, 'Ludhiana', 'Male', 9836735527, 12/2/99, 250000, 'Clerk','9:00am');

  • 8/6/2019 P Railway Reservation

    21/22

    SELECT * FROM Employee

    SELECT emp_id ,emp_name,phn_no

    From employee

    SELECT emp_name, addressFROM employee

    WHERE salary= 25000;

    ALTER

    ALTER table employee

    Add emp-age number

    Update

    UPDATE employee SET phn_no = 9814706962

    WHERE emp_id=2;

  • 8/6/2019 P Railway Reservation

    22/22

    > Delete

    Delete from employee

    Where emp_id =4

    Delete from employee ;