Data Analyst and Team Lead

Data Analyst and Team Lead Interview Questions and Answers

Updated 21 May 2024

Q1. 1. Types of joins : i) Scenario of 2 tables and output rows of those cases

Ans.

Types of joins in SQL include inner join, left join, right join, and full outer join.

  • Inner join: Returns rows when there is a match in both tables.

  • Left join: Returns all rows from the left table and the matched rows from the right table.

  • Right join: Returns all rows from the right table and the matched rows from the left table.

  • Full outer join: Returns rows when there is a match in either table.

  • Example: Inner join - SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.i...read more

Q2. 2. How to delete duplicate rows in SQL

Ans.

Use the DELETE statement with a self-join to remove duplicate rows in SQL.

  • Use a self-join to identify duplicate rows based on a unique identifier column

  • Use the DELETE statement with the self-join condition to remove the duplicates

  • Example: DELETE FROM table_name WHERE id NOT IN (SELECT MIN(id) FROM table_name GROUP BY column1, column2)

Q3. 3. Window functions difference?

Ans.

Window functions are used to perform calculations across a set of table rows related to the current row.

  • Window functions operate on a set of rows related to the current row

  • They can be used to calculate running totals, moving averages, rank, etc.

  • Examples include ROW_NUMBER(), RANK(), LAG(), LEAD()

Data Analyst and Team Lead Jobs

Data Analyst Team Lead 7-9 years
Cloud Counselage Pvt. Ltd.
4.2
Mumbai
Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.3
 • 760 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Data Analyst and Team Lead Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter