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 topic2 active
RecentMost viewed
5 questionsFree1Locked4
- 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 second highest salary from an Employee table, and explain your approach.IntermediateSql· sql queryFreeReported frequent at Cognizant+1