Retrieve the name of the manager who supervises the most employees

SQL Interview question Black Rock Data Analyst

Company: BlackRock CTC: 26LPA Source: Linked Post Q. Retrieve the name of the manager who supervises the most employees. Solution: Explanation: Here, we want to find out the manager who supervises the most employees. To achieve this, the query works in the following steps: Key Logic: Summary: The query counts how many employees each manager supervises, … Read more

Write a query to calculate the median salary of employees in a table.

Company: BlackRock CTC: 26LPA Source: Linked Post Q: Write a query to calculate the median salary of employees in a table. Solution: Explanation: Here we need to find out the median salary from the employees table. To calculate the median salary, we need some essential information, like the total number of employees in the table. … Read more

Identify products that were sold in all regions.

Query: SELECT product_id FROM sales GROUP BY product_id HAVING COUNT(DISTINCT region_id) = (SELECT COUNT(*) FROM regions); Explanation: We need to find products that have been sold in all regions. This involves comparing the distinct regions a product appears in with the total number of regions available. Here’s how the query works step-by-step: Key Points: Example: … Read more

SOF Imo Results 2024-25 Declared | Check Now!!

SOF Imo Results 2024-25 Declared : Discover the latest updates on the SOF IMO Results 2024-25, now declared for students from classes 1 to 12. The results for the International Mathematics Olympiad were released on December 27, 2024. Students can check their scores and performance by visiting the official SOF website. Stay informed about upcoming results, including … Read more

How to Freeze Columns or Rows in Excel: A Complete Guide

How to Freeze Columns and Rows in Excel: Freeze Panes option in Excel makes it easy to navigate through large data. It allows you to pin rows or columns in place while scrolling. Whether you are a newbie or an experienced Excel user, this article will show you how to freeze a column, freeze a … Read more

Exit mobile version