DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPacksBlog
ProLogin

Interview Questions

Real questions from top companies in SQL · easy

700+ Easy450+ Medium650+ Hard
All CategoriesBehavioralSpark/Big DataSQLPython/CodingSystem Design/ArchitectureCloud/ToolsGeneral/Othereasymediumhard
121

Write SQL query to find names starting with 'R' and ending with 't', sorted by first_name descending

SQLeasysql0.2 min read
Presidio
→
122

Write SQL query to replace specific patterns in a string column.

SQLeasybigquerysql0.2 min read
Incedo
→
123

Write a Merge Statement for SCD Type 2.

SQLeasysnowflakesql0.4 min read
EY
→
124

Write a SQL query to find distinct IDs from a table where the count is more than 1 and greater than 200.

SQLeasysql0.3 min read
Dunnhumby
→
125

Write a query for second-highest salary using LIMIT, OFFSET, or ROW_NUMBER()

SQLeasy0.3 min read
Nihilent
→
126

Write a query that identifies numbers appearing at least three times consecutively without interruption

SQLeasy0.3 min read
JP Morgan
→
127

Write a query to find minimum age.

SQLeasy0.1 min read
Altimetrik
→
128

Write a query to find the first number repeating consecutively three times in a sequence.

SQLeasy0.3 min read
American Express
→
129

Write a query to find the median salary of employees in a table.

SQLeasybigquery0.2 min read
Goldman Sachs
→
130

Write a query to switch values in the Gender column (M to F and F to M).

SQLeasy0.3 min read
Fossil Group
→

Reading isn't practice. Get AI feedback on your answers.

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.

Try AI Answer Coach — FreeStart a Mock Interview
Previous1...567
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsTop Python QuestionsTop System DesignSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerInterview PacksPricing
Company
About UsContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer