Vignan's Foundation For Science, Technology and Research (Deemed To Be University)
Vignan's Foundation For Science, Technology and Research (Deemed To Be University)
Batch No: 01
Subject: DBMS
Subject Code: 22CS201
Target 3 Report Submission
Submitted to:
Dr. MD. OQAIL AHAMAD
Assistant Professor
Department of CSE
VFSTR
Submitted by
A. Develop SQL query for each of the ii. Find companies whose employees earn a
following statements: higher salary, on average, than the
average salary at First Bank Corporation:
i. Find the names, street address, and cities
of residence of all employees who work SELECT W1.Company_Name
for First Bank Corporation and earn more FROM WORKS W1
than Rs. 10,000.
GROUP BY W1.Company_Name
ii. Find those companies whose employees
earn a higher salary, on average, than the HAVING AVG(W1.Salary) > (
average salary at First Bank Corporation. SELECT AVG(W2.Salary)
B. Create EmployeeManagerView:
CREATE VIEW EmployeeManagerView AS
SELECT Employee_Name, Manager_Name
FROM MANAGES;