We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
CSE2004: Database Management System
Laboratory Digital Assignments-III
Railway Reservation System -(Redesigning IRCTC database)
Train(train Number, name, source, destination, start_time, reach_time, traveltime, distance, days, type) Ticket( PNRNo,Transaction_id, from_station, To_station, date_of_journey, class, date_of_booking, total_ticket_fare,train number) Passenger(PNR No, Passenger_id, Name, Age, Reservation_status) Train_Route(Train_No, route_no, station_code, name, arrival_time, depart_time, distance,day) Train_Ticket_fare(Train_No, class, base_fare, reservation_charge, superfast_charge, other_charge, tatkal_charge, service_tax) 1. Write a simple PL/SQL block to solve the following 1. Add two number. 2. Find odd even. 3. Reverse the number. 4. Write a function to print the Fibonacci series. 5. Write a procedure to print the Factorial of a given number. Write a cursor for the following. 1. Display the train name and type. 2. Display the passenger name whose reservation status is confirmed. 3. Write a cursor to check whether the passenger information is stored or not. If data is not stored then print “Your information is not given”, otherwise displays the information. 2. Write a simple PL/SQL procedure to 1. List the name of passenger who has booked the ticket for Bangalore from Katpadi. 2. PNR number of given source and destination. Write a PL/SQL function to 1. Get the PNR number and return total number of passenger. 2. Get the train number and return the source and destination.