Question Bank
Filter real, curated interview questions by topic, difficulty, and type. Open any question to practice and rate your confidence.
Filter by company and topic1 active
RecentMost viewed
8 questionsFree4Locked4
- Find the top three highest-paid employees in each department (including ties on salary).IntermediateSql· sql query₹99 (Interview Prep or Pro plan required)Reported frequent at Snowflake
- In Snowflake SQL, how do you compute a 7-day rolling average of sales for each day, including days with no sales?IntermediateSql· sql query₹99 (Interview Prep or Pro plan required)Reported frequent at Snowflake
- Given a table of user login dates, find each user's longest streak of consecutive login days (a gaps-and-islands problem).AdvancedSql· sql query₹499 (Pro plan required)Reported frequent at Snowflake
- You have a column of semi-structured JSON (a VARIANT) containing an array of order line items. Write a query to extract each line item as its own row with typed columns.IntermediateSql· sql query₹99 (Interview Prep or Pro plan required)Reported frequent at Snowflake
- Write a SQL query to find the Nth highest salary from an Employee table (handling ties), in MySQL, PostgreSQL and SQL Server.IntermediateSql· sql queryFreeReported frequent at TCS
- Explain the different types of SQL JOINs and write a query to find employees who earn more than the average salary of their department.IntermediateSql· sql queryFreeReported frequent at Wipro
- Write a SQL query to find the second highest salary from an Employee table, and explain your approach.IntermediateSql· sql queryFreeReported frequent at Cognizant+1
- SQL: From an Orders table (order_id, customer_id, amount, order_date), write a query to find the top 3 customers by total spend.IntermediateSql· sql queryFreeReported frequent at Deloitte