How many cities does each department operate in? List the top 3 departments in terms of the most number of cities. In case of a tie, order by dept_id.
Python/Codingmedium
2
List every combination of dept_name, employee_name, and city such that the employee belongs to the department and the same city in which the department is located.
Python/Codingmedium
3
Add a column to the Employees table that shows the name of the employee with the next higher employee_id.
SQLmedium
4
Find the third-highest salary for each department.
SQLmedium
5
Write a PySpark job to find the top 3 employees of each department, where Age < 30 and Salary > department average salary.
SQLmedium
6
Write a PySpark script to read a CSV file, filter rows where the age column is less than 18, and write the result to a new CSV file.
Spark/Big Datamedium
+6 More Questions with Expert Answers
Get the complete 1,800+ question library with detailed, expert-level answers covering SQL, Spark, System Design, Python, Cloud, and Behavioral topics.