0% found this document useful (0 votes)
9 views7 pages

DBMS5 1

The document outlines a series of problem statements related to employee data retrieval, focusing on various queries such as finding employees in specific departments, determining salary rankings, and identifying employees based on joining dates. Each problem statement includes an objective and a corresponding query, but the outputs are not provided. The document serves as a framework for database queries related to employee management.

Uploaded by

jokerkkr80000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views7 pages

DBMS5 1

The document outlines a series of problem statements related to employee data retrieval, focusing on various queries such as finding employees in specific departments, determining salary rankings, and identifying employees based on joining dates. Each problem statement includes an objective and a corresponding query, but the outputs are not provided. The document serves as a framework for database queries related to employee management.

Uploaded by

jokerkkr80000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

PAWAN KUMAR MCA-B Roll no -47

Problem Statement 5.1: Find employees who work in the 'IT' department.
Objective: Retrieve the details of all employees who are working in the 'IT'
department.
Query:

OUTPUT:

Problem Statement 5.2: Find the highest salary in the company.


Objective: Identify the highest salary that any employee is earning in the
company.
Query:

OUTPUT:
PAWAN KUMAR MCA-B Roll no -47

Problem Statement 5.3: Find the second-highest salary in the company.


Objective: Determine the second-highest salary in the company.
Query:

OUTPUT:

Problem Statement 5.4: Find employees who joined before the most recent
joining date.
Objective: List the employees who joined the company before the most recent
joining date.
Query:

OUTPUT:
PAWAN KUMAR MCA-B Roll no -47

Problem Statement 5.5: Find employees who do not belong to any department.
Objective: Retrieve the details of employees who are not assigned to any
department.
Query:

OUTPUT:

Problem Statement 5.6: Find the department name of the employee with the
highest salary.
Objective: Find the name of the department where the employee with the
highest salary works.
Query:

OUTPUT:
PAWAN KUMAR MCA-B Roll no -47

Problem Statement 5.7: Find employees who belong to the department with
the highest number of employees.
Objective: Retrieve the employees who belong to the department with the
highest number of employees.
Query:

OUTPUT:

Problem Statement 5.8: Find employees whose salary is higher than any
employee in the HR department.
Objective: Identify employees whose salary is higher than at least one
employee in the HR department.
Query:

OUTPUT:
PAWAN KUMAR MCA-B Roll no -47

Problem Statement 5.9: Find departments where all employees earn above
50,000.
Objective: List the departments where all employees earn more than 50,000.
Query:

OUTPUT:

Problem Statement 5.10: Find employees who earn more than at least one
employee in the IT department.
Objective: Identify employees whose salary is higher than at least one
employee in the IT department.
Query:

OUTPUT:
PAWAN KUMAR MCA-B Roll no -47

Problem Statement 5.11: Find employees who belong to departments where


the total salary exceeds 100,000.
Objective: List the employees who belong to departments where the total salary
of all employees in that department exceeds 100,000.
Query:

OUTPUT:

Problem Statement 5.12: Find employees who joined before any employee in
the Finance department.
Objective: Identify employees who joined before the earliest employee in the
Finance department.
Query:

OUTPUT:
PAWAN KUMAR MCA-B Roll no -47

Problem Statement 5.13: Find employees who earn more than all employees in
the HR department using multi-row sub-queries.
Objective: Find employees who earn more than every employee in the HR
department, using multi-row subqueries.
Query:

OUTPUT:

You might also like