Professional Documents
Culture Documents
SQL Queries - Vendors Database Aim:: Ex No
SQL Queries - Vendors Database Aim:: Ex No
DATE : 15-03-2021
AIM:
Find the dept_id and the total number of vendors in individual departments.
Find the minimum and maximum salary paid to individual vendors of individual
departments.
Find the average salary of all the departments having a minimum salary paid at
least 25000.
Find the total number of vendors working in individual departments having a
salary of at least 21000. Consider only those vendors whose street is available
to the organization.
Find the maximum salary of all the departments having more than two
vendors.
Find the average salary of all the departments having more than two vendors.
Retrieve sum of salaries of all vendors working in the department having dept
id=A03.
Display the total no. of vendors in each department having a salary of more
than 26000.
List the cities and the number of vendors in each city. The result should be in
the descending order of the number of vendors.
Write a SQL statement to display vendor details (ID and salary) who’s IDs are
within the range 02 and 07 and the highest salary is more than 1000.
PROCEDURE:
R.SNEKHA, IT-D