Sunteți pe pagina 1din 2

INDEX

No. ASSIGNMENT-I Page Remark


No.
1 Create the tables with given specifications and constraints and
insert about ten rows.
1-10
PART-I
A. List the names of the teachers teaching computer subject. 11
B. .List the names and cities of all staff working in your college.
C. List the names and cities of all staff working in your college who earn
more than 15,000. 12
D. Find the staffs whose names start with ‘M ‘or ‘R’ and ends with ‘A ‘
and/or 7 characters long.
E. Find the staffs whose date of joining is 2005. 13
F. Modify the database so that staff N1 now works in C2 College. 14

2 PART-II
A. Find the colleges who have most number of staffs. 15
B. Find the staffs that earn a higher salary who earn greater than
average salary of their college.
C. Find the colleges whose average salary is more than average 16
salary of C2.
D. Find the college that has the smallest payroll.
E. Find the colleges where the total salary is greater than the 16-17
average salary of all colleges.
F. List maximum, average, minimum salary of each college. 17

3 PART-III
A. List the names of the teachers, departments teaching in more 18
than one department.
B. Acquire details of staffs by name in a college .
C. Acquire details of staffs by name each college. 18-19
D. Find the names of staff that earn more than each staff of C2 20
College.

4 PART-IV
A. Create a view having fields sname, cname, dept, doj, and post 21
INDEX

B. Create a view consisting of cname, average salary and total


salary of all staff in that college. 22
C. List the staff names of a department using above views.

ASSIGNMENT-II Page Remark


NO.
5 Create the tables with given specifications and constraints and 23-32
insert about ten rows.

PART-I 33
A. Get full detail of all students who took admission this year class
wise. 34
B. Get detail of students who took admission in Raipur Colleges.
C. Calculate the total amount of fees collected in this session. 35-36
1. By Your College. 2. By Each College. 3. By all Colleges.

6 PART-II
A. List the students who have not payed full fee in your college . 37
B. List the students in colleges in your city and also live in your city.

ASSIGNMENT-III Page Remark


NO.
Create the tables with given specifications and constraints and
7 insert about ten rows. 38-40

PART-I 41
A. List the students who were present in a paper.
B. List all number who have passed in first division.
C. List all students in PGDCA-II who have scored higher than
average in your college. 42
D.List all students in PGDCA-II who have scored higher than
average in every college.
E. List the Highest Score, average and minimum score in PGDCA-
II in your college.
F. List the Highest Score, average , minimum and maximum score 43
in PGDCA-II in every college.