Globaldata Interview Questions

Globaldata Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(48)
Machine Learning
(40)
SQL
(20)
Probability
(18)
Statistics
(10)

Globaldata Interview Questions

Practice for the Globaldata interview with these recently asked interview questions.

QuestionTopicDifficulty
SQL
Medium

Given the employees and departments table, write a query to get the top 3 highest employee salaries by department. If the department contains less that 3 employees, the top 2 or the top 1 highest salaries should be listed (assume that each department has at least 1 employee). 

Note: The output should include the full name of the employee in one column, the department name, and the salary. The output should be sorted by department name in ascending order and salary in descending order. 

Example:

Input:

employees table

Column Type
id INTEGER
first_name VARCHAR
last_name VARCHAR
salary INTEGER
department_id INTEGER

departments table

Column Type
id INTEGER
name VARCHAR

Output:

Column Type
employee_name VARCHAR
department_name VARCHAR
salary INTEGER
Statistics
Easy
SQL
Easy
Loading pricing options

View all Globaldata questions

Challenge

Check your skills...
How prepared are you for working at Globaldata?

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.

Discussion & Interview Experiences

There are no comments yet. Start the conversation by leaving a comment.

Jump to Discussion