SQL questions from Incedo data engineering interviews.
These sql questions are sourced from Incedo data engineering interviews. Each includes an expert-level answer.
Write an SQL query to find the second-highest salary from an employee table.
Explain Fact and Dimension Tables with examples.
How do you remove duplicate rows in BigQuery?
Difference Between Internal and External Tables in BigQuery
Explain Common Table Expressions (CTEs) and their benefits.
Explain SQL Window Functions with examples.
Explain the use of the MERGE statement in SQL.
How do you handle NULL values in SQL? Mention functions like COALESCE and ISNULL.
How do you optimize a long-running SQL query?
How would you handle duplicate records in an SQL table?
Write a SQL query to find top 3 earners in each department.
Count the number of nulls in each column of a table.
Explain the difference between partition count and query performance in Spark.
Find employees who earn the third-highest salary.
Identify consecutive numbers in a column (at least 3 consecutive).
Scenario: Query optimization for a large dataset.
Write SQL query to replace specific patterns in a string column.
Write SQL to identify employees whose salary is higher than their manager's.
Write a SQL query to find departments with more than 10 employees.
Write a SQL query to remove duplicates from a table.
Write a query to find employees in the same department as 'John'.
Download the complete interview prep bundle with expert answers. Study offline, on your commute, anywhere.