Holiday Homework XII
Holiday Homework XII
Program File
Class XII
2) Write SQL commands for the following queries (i) to (v) based on the
relations TRAINER & COURSE given below:
i) Create table Trainer and Course.
ii) Insert 10 Records in the table.
iii) Display all details of Trainers who are living in city CHENNAI.
iv) Display the Trainer Name, City & Salary in descending order of
their Hiredate.
v) Count & Display the number of Trainers in each city.
vi) Display the Course details which have Fees more than 12000 and
name ends with ‘A’.
vii) Display the Trainer Name & Course Name from both tables where
Course Fees is less than 10000.
3) Write SQL commands for the following queries based on the relations
Bank and CUSTOMER.
Bank
Acc_no Cname Bname Amount Dateofopen T_Transaction
1 Karan Bank of baroda 15000 12-jan 1998 10
2 Puneet State bank 25000 01-feb-1997 09
3 Anirban Oriental bank 17000 15-jul1999 05
4 Yatin Standard 38000 10-feb-1999 11
charted
5 Sunny State bank 47000 06-feb-1998 15
6 Jayant Uco bank 34000 10-aug- 07
1998
7 Nikhil Bank of baroda 56000 02-jan-1999 12
8 Tarun Oriental bank 22000 04-apr-1999 08
9 Jisha Uco bank 34500 05-jan-1998 11
CUSTOMER
C_no Tname Tbank
1 Yatin Standard charted
2 Sunny State bank
3 Puneet Uco bank
4 Nikhil Bank of baroda
5 Varun Oriental bank
Note:
• Font Size- 16
• Font Style- Calibri (Body)
BAL BHARTI SCHOOL,
BAHADURGARH
PRACTICAL FILE
CLASS XII