SQL questions from Goldman Sachs data engineering interviews.
These sql questions are sourced from Goldman Sachs data engineering interviews. Each includes an expert-level answer.
Describe a scenario where partitioning and bucketing would improve query performance.
When would you choose a Snowflake schema over a Star schema?
Implement a query to find the top 5 customers by total sales amount.
Write an SQL query to find duplicate emails in a users table.
Compare OLTP and OLAP systems in the context of financial transactions.
Describe a challenging project where you optimized a complex ETL process.
Describe a scenario where you would use a CROSS JOIN vs. an INNER JOIN.
Explain indexing and its impact on database performance.
Explain your approach to optimizing a slow-running query on a table with billions of rows.
Given a complex nested query, how would you refactor it for better readability and efficiency?
How would you decide between using a CTE and a temporary table for a complex query?
Identify and remove duplicate records from a table, keeping the most recent record based on a timestamp column.
Share an example where you had to communicate technical concepts to a non-technical audience.
Simulate a producer-consumer model using multithreading.
What are the trade-offs between relational databases and NoSQL for financial data?
Write a query to find the median salary of employees in a table.
Download the complete interview prep bundle with expert answers. Study offline, on your commute, anywhere.