Vous êtes sur la page 1sur 5

***INDEX***

P.N. OBJECT NAME P.N.


*QUESTION – 1*
A. Create the tables with the given specifications and constraints 1
1. Create Table Colleges(cname , city , address, phone, afdate)
2. Create Table staffs ( sid , sname , saddress , contacts )

3. Create Table Subjects (paperid , subjects, paperno, papername)


4. Create Table Teachings (sid, class, papered, fsession, tsession)

5. Create Table Staffjoins


Insert about 10 rows as are appropriate to solve the following queries 1-6
B .
1. Insert rows into collage
2. Insert rows into staffs
3. Insert rows into staffs joins
4. Insert rows into subject
5. Insert rows into teachings
C. List the names of the teachers teaching computer subject 6
D. List all the names and cities of all staff worling in your college 6
E. List the name of the cities of all staffs working in your colleges who earn more Than 7
15000
F. Find the staffs whose names starts with ‘m’ or ‘r’ ends with ‘a’ and / or 7 Characters 7
long
G. Find the staffs whose date of joining is 2005 7

H. Modify the data base so that staffs n1 now works in c2 college 8


I. List the name of subject which t1 teaches in this session or all session 8
J. 1. Find the class that t1 do not teaches at present session
2. Find the colleges who have most no of staffs 9-11
3. Find the staffs that earn a higher salary who earn greater than average salary Of their
college
4. Find the colleges whose average salary is more than average salary of c2
5. Find the colleges that has the smallest payroll
6. Find the colleges where the total salary is greater than the average salary of All
colleges
K. 1. List the maximum, minimum, average salary of each colleges 11-15
2. List the name of the teachers department teaching in more than 1 department
3. Find the names of the staff that earn more than each staff of C2 college
4. Find the staff that do not work in same cities as the college they work
5. List the names of the employees inascending order according to salary becomes
greater who work in your college or all college
6. Create a view having fields sname, dept, doj and post
7. Create a view consisting of cname average salary and total salary of all staff in that
colleges
8. List the staff names of a department using above views

* QUESTION -2*
A. Create the tables with the given specifications and constraints 16
1. Create table Enrollment

2. Create table Fees structure table


3. Create table college
4. Create table admission
5. Create table payment
B. Insert about 10 rows as are appropriate to solve the following queries 17-21
1. Insert rows into enrollment
2. Insert rows into fee structure
3. Insert rows into college
4. Insert rows into admission
5. Insert rows into payment
C. Get full detail of students who took admission in Bhilai college 22
D. Calculate the total amount of fees collected in this session 22
E. Calculate the total amount of fees collected in this session 23
F. 1. List the student who have not pay full fee 23-24
2. List the names of the student in the session who are not in the college in the same city
as the live in
3. List the names of the student in your college and city and also live in your city

*QUESTION -3*
A. Create the tables with the given specifications and constraints 25
1. Create table subject
2. Create table test
3. Create table Score
4. Create table students
B. Insert about 10 rows as are appropriate to solve the following queries 25-29
1. Insert rows in subject
2. Insert rows into test
3. Insert rows into score
4. Insert rows into students
C. List the students who were present in a paper of a subject 29
D. List all the roll numbers who have passed in first division 30
E. List all the students in BCA II who have scored higher then the average in your 30
college
F. List the highest score, average and minimum score in BCA II in your college 30-31

* QUESTION-4*
A. Create the tables with the given specifications and constraints 32
1. Create Table Colleges(cname , city , address, phone, afdate)
2. Create Table staffs ( sid , sname , saddress , contacts )

3. Create Table Subjects (3apered , subjects, paperno, papername)


4. Create Table Teachings (sid, class, papered, fsession, tsession)
5. Create Table Staffjoins
B. Insert about 10 rows as are appropriate to solve the following queries 32 -37
1. Insert rows into colleges
2. Insert rows into staffs

3. Insert rows into staffs joins


4. Insert rows into subjects
5. Insert rows into teachings
C. List the names of the teachers teaching computer subject 37
D. List all the names os and cities of all staff working in your college 37
E. List the name of the cities of all staffs working in your colleges who earn more than 38
15000
*QUESTION - 5*
A. Find the staffs whose names starts with ‘m’ or ‘r’ ends with ‘a’ and / or 7 characters 39
long
B. Find the staffs whose date of joining is 2005 39
C. Modify the data base so that staffs n1 now works in c2 college 39
D. Modify the data base so that staffs n1 now works in c2 college 40
*QUESTION -6*
A. Find the class that t1 do not teaches at present session 41
B. Find the colleges who have most no of staffs 41
C. Find the staffs that earn a higher salary who earn greater than average salary of their 42
college
D. Find the colleges whose average salary is more than average salary of c2 42
E. Find the colleges that has the smallest payroll 43
F. Find the colleges where the total salary is greater than the average salary of all 43
colleges
G. List the maximum, minimum, average salary of each colleges 44

*QUESTION -7*
A. Find the class that t1 do not teaches at present session 45
B. List the name of the teachers department teaching in more than 1 department 45
C. Acquire details of staffs by name in a colleges or each college 45- 46
D. Find the names of the staff that earn more than each staff of C2 college 46-47
E. Find the staff that do not work in same cities as the college they work 47
F. List the names of the employees in ascending order according to salary becomes 47
greater who work in your college or all college
*QUESTION – 8*
A. Find the class that t1 do not teaches at present session 48
B. Create a view having fields sname, dept, doj and post 48-49
C. Create a view consisting of cname average salary and total salary of all staff in that 49
colleges
D. List the staff names of a department using above views 49-50

*QUESTION -9*
A. Create the tables with the given specifications and constraints 51
1. Create table Enrollment

2. Create table Fees structure table


3. Create table college
4. Create table admission
5. Create table payment
B. Insert about 10 rows as are appropriate to solve the following queries 51 - 56
1. Insert rows into enrollment
2. Insert rows into fee structure
3. Insert rows into college
4. Insert rows into admission
5. Insert rows into payment
C. Get full detail of all students who took admission this year class wise 56
D. Get full detail of students who took admission in Bhilai college 57
E. Calculate the total amount of fees collected in this session 57

*QUESTION -10*
A. List the student who have not pay full fee 58

B. List the names of the student in the session who are not in the college in the same city 58-59
as they live in
C. List the names of the student in your college and city and also live in your city 59

*QUESTION -11*
A. Create the tables with the given specifications and constraints 60
1. Create table Subject
2. Create table Test
3. Create table Score
4. Create table Students
B. Insert about 10 rows as are appropriate to solve the following queries 60 - 64
1. Insert rows into subject
2. Insert rows into test
3. Insert rows into score
4. Insert rows into students
C. List the students who were present in a paper of a subject 64
D. List all the roll numbers who have passed in first division 64-65
E. List all the students in BCA II who have scored higher then the average in your 65
college
F. List the highest score, average and minimum score in BCA II in your college 65

Vous aimerez peut-être aussi