Skip to content
brickster.ai
All videos
communityRaja's Data Engineering·October 3, 2023

118. Databricks | PySpark| SQL Coding Interview: Employees Earning More than Managers

Description

Azure Databricks Learning: Coding Interview Exercise: Pyspark and Spark SQL ================================================================================= Coding exercises are very common in most of the Bigdata interviews. It is important to develop coding skills before appearing for Spark/Databricks interviews. In this video, I have explained a coding scenario to find the employees who are earning more than their managers. This is Leet Code SQL Exercise number 1783. This is also one of common coding exercise asked in MAANG/FAANG/GAMAM companies such as Google,Apple, Microsoft, Amazon, Meta etc., +----+-------+--------+-----------+ | Id | Name | Salary | ManagerId | +----+-------+--------+-----------+ | 1 | Joe | 70000 | 3 | | 2 | Henry | 80000 | 4 | | 3 | Sam | 60000 | NULL | | 4 | Max | 90000 | NULL | +----+-------+--------+-----------+ Given the Employee table, write a SQL query to find employees who earn more than their managers. In the above table, Joe is the only employee who earns more than his manager. Your query should return the following result: +-------+ | Name | +-------+ | Joe | +-------+ To get more unders

Description from YouTube. Full content on the video page.