Tata Consultancy Services Interview Questions

Tata Consultancy Services Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(76)
SQL
(60)
Machine Learning
(54)
Probability
(30)
Statistics
(22)

Tata Consultancy Services Interview Questions

Practice for the Tata Consultancy Services 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
SQL
Easy
SQL
Easy
Loading pricing options

View all Tata Consultancy Services questions

Challenge

Check your skills...
How prepared are you for working at Tata Consultancy Services?

Tata Consultancy Services Salaries by Position

$129K
$197K
Product Manager
Median: $165K
Mean (Average): $163K
Data points: 3
$80K
$134K
Business Analyst
Median: $101K
Mean (Average): $106K
Data points: 3
$61K
$115K
Software Engineer
Median: $74K
Mean (Average): $81K
Data points: 73
$64K
$79K
Data Engineer
Median: $74K
Mean (Average): $72K
Data points: 7

Most data science positions fall under different position titles depending on the actual role.

From the graph we can see that on average the Product Manager role pays the most with a $163,333 base salary while the Data Engineer role on average pays the least with a $72,448 base salary.

Discussion & Interview Experiences

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