dbms Assign
dbms Assign
Part-I
[1]
[2]
b.Insert about 10 rows as are appropriate to solve the following
queries.
[3]
Output:-
[4]
Output:-
[5]
Output :-
[6]
Output:-
[7]
Output:-
d.List the names and cities of all staffs working in your college.
[8]
e. List the names and cities of all staffs working in your college who earn
more than 15000.
f. Find the staffs whose names start with ‘K’ or ‘R’ and ends with ‘A’
and/or 7 characters long.
[9]
h. Modify the database so that staff N1 now works in C2 college.
[10]
PART-II
a. Find the Colleges who have most number off staffs.
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 salary of
C2.
[11]
e. Find the colleges where the total salary is greater than the average
salary of all colleges.
[12]
PART III
a. List the names of the teachers, departments teachings in more than
one department.
[13]
d.Give all Principals a 10% rise in salary unless their salary becomes
greater than 20,000 in such case give 5% rise.
e.Find all staffs that do not work in same cities as the colleges they
work.
or all colleges.
[14]
Part-IV
a. Create a view having fields sname ,cname , dept , DOJ, and post.
b. Create a view consisting of cname, average salary and total salary of all
staff in that college.
[15]
c. List the staff names of a department using above views.
DATE:- 01-10-2021
PATH :-C:\ORACLE\SQL\ASSING1
[16]
ASSIGNMENT NO -02
Part-I
a. Create the above tables with the given specifications
and constraints.
[17]
[18]
b. Insert about 10 rows as are appropriate to solve the
following queries.
Output:-
[19]
Output:-
[20]
Output:-
[21]
Output:-
[22]
[23]
Output:-
c. Get full detail of all students who took admission this year
class wise.
[24]
e. Calculate the total amount of fees collected in this session:
i) By your college
[25]
ii) By each college
PART-II
a. List the students who have not payed full fee:-
i) in your college
[26]
b. List the number of admissions in your class in every year.
c. List the students in the session who are not in the colleges in
the same city as they live in.
d. List the students in colleges in your city and also live in your
city.
DATE:-07-10-2021
PATH :-C:\ORACLE\SQL\ASSING2
[27]
ASSIGNMENT NO - 03
[28]
b. Insert about 10 rows as are appropriate to solve the
following queries.
[29]
Output:-
[30]
Output:-
[31]
Output:-
[32]
Output:-
[33]
d. List all roll numbers who have passed in first division.
[34]
f .List the highest score, average and minimum score in
BCA-II in your college.
DATE:- 11-10-2021
PATH :-C:\ORACLE\SQL\ASSING3
[35]
ASSIGNMENT NO - 04
[36]
[37]
b. Insert about 10 rows as are appropriate to solve the
following queries.
[38]
Output:-
[39]
Output:-
[40]
Output:-
[41]
Output:-
[42]
Output:-
[43]
e. List the names and cities of all staff working in your
college who earn more than 15,000.
DATE:- 13-10-2021
PATH :-C:\ORACLE\SQL\ASSING4
ASSIGNMENT NO - 05
a.Find the staffs whose name start with ‘K’ or ‘R’ and ends
with ‘A’ and/or 7 characters long.
[44]
b. Find the staffs whose date of joining is 2005.
[45]
AUTHOR NAME:- SURYKANT DEWANGAN
DATE:- 18-10-2021
PATH:-C:\ORACLE\SQL\ASSING5
ASSIGNMENT NO - 06
[46]
b. Find the college who have most number of staffs.
e.
e. Find the college that has the smallest payroll.
[47]
f. Find the colleges where the total salary is greater
than the average salary of all colleges.
[48]
AUTHOR NAME:- SURYKANT DEWANGAN
DATE:- 21-10-2021
PATH :-C:\ORACLE\SQL\ASSING6
ASSIGNMENT NO - 07
[49]
b. List the names of the teachers , departments teaching
in more than on departments.
[50]
d. Give all principals a 10% rise in salary unless their
salary becomes greater than 20,000 in such case give
5% rise.
[51]
g. List name of employees in ascending order
according to salary who are working in your college
or all colleges.
DATE:- 25-10-2021
PATH :- C:\ORACLE\SQL\ASSING7
ASSIGNMENT NO.-08
[52]
SQL statements for the following:-
[53]
D.Create a view consisting of cname, average salary
and total salary of all staffs in that college.
DATE:- 28-10-2021
PATH :-C:\ORACLE\SQL\ASSING8
ASSIGNMENT NO - 09
[55]
Q.9. Create the following database:-
[56]
[57]
b. Insert about 10 rows as are appropriate to solve
the following queries.
Output:-
[58]
Output:-
[59]
Output:-
[60]
Output:-
[61]
Output:-
[62]
d. Get detail of students who took admission in Bhilai
colleges.
i) By your college
[63]
iii) By all colleges
DATE:- 08-11-2021
PATH :-C:\ORACLE\SQL\ASSING9
[64]
ASSIGNMENT NO - 10
[65]
b. List the number of admissions in your class in every
year.
[66]
e. list the students in colleges in your city and also
live in your city.
PATH :-C:\ORACLE\SQL\ASSING10
ASSIGNMENT NO - 11
[68]
b. Insert about 10 rows as are appropriate to solve the
following queries.
[69]
Output:-
[70]
Output:-
[71]
Output:-
[72]
Output:-
[73]
e. List all students in MCA-II who have scored higher
than average :-
i) in your college.
[74]
ii) in every college
DATE:- 16-11-2021
PATH :-C:\ORACLE\SQL\ASSINGQ11
[75]