Find pairs with same salary in same department

SQL Hard 4 views
Back to Questions

Problem Description

List employee pairs in the same department who have exactly the same salary (show both emp names).

Input Format

SQL query

Output Format

Result set

Sample Test Case

Input:
Employees(emp_id, name, dept_id, salary)
Output:
Pairs

Constraints

Self join with id ordering

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev