Professional Documents
Culture Documents
This Study Resource Was: WEEK-4
This Study Resource Was: WEEK-4
This Study Resource Was: WEEK-4
WEEK-4
1. Find the passengers whose date of journey is one month from today.
m
er as
co
5. Translate all the LC in class column (Train_fare) to POT and display.
eH w
6. Display the fare details of all trains, if any value is ZERO, print as NULL value.
o.
rs e
7. Display the pnrno and transaction id, if transaction id is null, print 'not generated'.
ou urc
8. Print the date_of_jounrney in the format '27th November 2010'.
o
11. Find the maximum length of station name available in the database.
ed d
High Level:
15. Update values to arrival time and depart time using conversion functions.
sh
16. Display the arrival time, depart time in the format HH:MI (24 hours and minutes).
This study source was downloaded by 100000811859161 from CourseHero.com on 10-15-2021 11:18:21 GMT -05:00
https://www.coursehero.com/file/33371341/VL2018191005155-AST02-4pdf/
WEEK-5
1. Find the train numbers for which reservation have not yet been made.
2. Find the train names that donot have a first AC class coach.
m
2. Find the train names that are superfast and the service tax is zero.
er as
co
3. Find the Passenger name who have booked for the train that starts from 'chennai'.
eH w
4. Find the trains names that have all the AC coaches and the base fare is less than
o.
3000 for each case.
rs e
ou urc
Use Join Query
2. Find the train names that are superfast and the service tax is zero.
vi y re
3. Find the Passenger name (and train name) who have booked for the train that starts
from 'chennai'.
ed d
4. Display the trains names , each type of class and the total fare for each type of class.
ar stu
5. Display all the train details and the ticket details(if booked any).
7. Write a query for full outer join using any of the tables above.
Th
sh
This study source was downloaded by 100000811859161 from CourseHero.com on 10-15-2021 11:18:21 GMT -05:00
https://www.coursehero.com/file/33371341/VL2018191005155-AST02-4pdf/
Powered by TCPDF (www.tcpdf.org)