KOE 067 - Assignment 3
KOE 067 - Assignment 3
Communication Engineering
NBA Accredited
BASICS OF DATA BASE
MANAGEMENT SYSTEM Semester/Section:
EC VIth (A+B)
(KOE-067)
MODULE-3 (EVEN)
Assignment Given Date: 28-04-2022 Maximum Marks: 100
Assignment Submission Date: 02-05-2022
Faculty Name: Mr. Manish Kumar Faculty Mail Id: [email protected]
Note: Write answer of each question in clear handwriting.
BLOOM’S
Q.N. Question Statement Marks CO KNOWLED
GE LEVEL
4 Elaborate all the aggregate functions with the help of SQL 10 CO3 K3
query.
7 Give all the SQL queries for creating, updating and deleting 10 CO3 K2
view.
9 Give SQL queries for creating, dropping and updating index. 10 CO3 K2
10 Consider the following relational DATABASE. Give an 10 CO3 K3
expression in SQL for each following queries. Underline records
are primary key.
Employee(person_name, street, city)
Work(person_name, Company_name, salary)
Company(Company_name, city)
Manages(person_name, manager_name)
a) Finds the names of all employees who works for the
ABC bank.
b) Finds the names of all employees who lives in the same
city and on the same street as do their managers.
c) Find the name street address and citie of residence of all
employees who work for ABC bank and earn more than
7,000 per annum.
d) Find the name of all employee who earn more than every
employee of XYZ.
e) Delete all tuple in the work relation for employee of
ABC.
f) Find the name of all employees in this DATABAE who
live in the same city as the company for which they
work.