Sunteți pe pagina 1din 2

1. Understand DDL /DML / DCL/ TCL in oracle 2. Learn connecting to Oracle using UNIX box. 3.

Create tables for ABC Corporation. Naming convention for tables and constrains : <LG>_<emp_id>_<name> Tables: tour_package (tour_package_idpk, tour_package_name, source_station, destination_station, mode_of_transport, Number_of_days, adult_amount, child_amount, service_tax) customer_info(customer_idpk customer_name, customer_age, customer_mobile, customer_address) customer_booking(booking_idpk, customer_id, tour_package_id, date_of_journey, number_of_adults, number_of_child, total_fare) Packages: 1001 1B_kodai 1002 1T_kodai 1003 2B_kodai 1004 2T_kodai 1005 Chn_Kolkatta 1006 Mumbai_Delhi 1007 Manali_Pkg 1008 2F_Cochin Customer: 2001 2002 2003 2004 2005 2006 2007 2008

Chennai Chennai Chennai Chennai Chennai Mumbai Chennai Chennai

Kodaikannal Kodaikannal Kodaikannal Kodaikannal Koklatta Delhi Manali Cochin

Bus Train Bus Train Flight Flight Flight Flight

2 2 3 3 5 5 7 4

6000 5000 8000 7000 60000 50000 80000 10000

2000 1500 3000 2500 20000 15000 30000 7500

500 500 750 750 2000 2000 3000 2500

Vidhya Ramya Ramesh Suresh Karthik Swetha Abirami Dhivya

25 35 34 23 30 45 26 28

9888888888 9777777777 9888888889 9666666879 8237238989 8423847234 9873482384 9675767688

aaa bbb ccc ddd eee fff ggg hhh

Bookings 3001 3002 3003 3004 3005

2001 2002 2003 2004 2005

1001 1002 1001 1005 1002

03/23/13 03/28/13 03/24/13 03/21/13 04/24/13

2 2 3 2 2

2 2 3 1 1

20000 30000 40000 35000 34000

3006 3007 3008 3009 3010

2006 2007 2008 2008 2001

1005 1005 1005 1005 1002

04/04/13 04/04/13 04/14/13 04/15/13 04/10/13

3 2 1 2 2

1 2 1 2 2

23000 20000 10000 37000 34000

4. Alter the tables to add reference key constrains for customer_id and tour_package_id of customer_booking table. 5. Populate data into your tables using some insert statements. (Learn simple Insert statements and also learn execution of anonymous block ) 6. Update the Tour_Package table to have its package_amt for both adults and child increased to 10% 7. Delete the tour_packages that have the mode of transportation as bus. 8. Revert back the data that you deleted now. 9. Create an archival table for booking table. 10. Move all the booking details that are older than 30 days (date_of_journey) to archival table. Learning different SELECT options: ***************************** 11. List full details of all the tour packages 12. List full details of all the tour packages available from India to London. 13. List the Name and address of all the customer with their names in alphabetical order. 14. List all the booking information in reverse order of their booking date. (latest bookings first) 15. List the customer_name, source_station, destination_station, date_of_journey, mode_of_transport, total_number_of_persons_traveling who has travel plan in March 2013. 16. List the customers details who have booked for a trip to London from India next month. Learning AGGREGATE functions: ************************ 17. How many tour packages are available with ABC company 18. What is the average price of all the tour packages 19. What is the total revenue for ABC company during March 2013 Learning GROUP BY and HAVING CLAUSE: ************************************** 20. How many number of bookings were made on each tour_package 21. What is the tour_package that is not opted by any customer at all. 22. What is the tour package that is most opted by the customers. 23. What is the peak earning month for ABC company 24. Learn about cursor, procedure, function and package.

S-ar putea să vă placă și