Interview questions · medium
Discuss differences between ROW_NUMBER(), RANK(), and DENSE_RANK(), and provide examples from your projects.
Describe a time when you had to optimize a slow SQL query. What steps did you take?
Explain the order in which SQL clauses are executed.
How do you find duplicates in a table based on one or two columns?
Two tables: Table 1 has 8 records, Table 2 has 2 records, common column id. How many records would result with Inner Join, Left Join, Right Join, Full Outer Join?
Why is HAVING clause used only after GROUP BY?
Write a query to retain only the latest record and delete others in case of duplicates.
Write a query to select the latest record based on a time_of_insertion column.
Type or paste your answer to any of these questions and our AI Coach scores it, highlights gaps, and rewrites it at FAANG quality. Free to try.