Real questions from top companies in SQL · easy
Write SQL query to find names starting with 'R' and ending with 't', sorted by first_name descending
Write SQL query to replace specific patterns in a string column.
Write a Merge Statement for SCD Type 2.
Write a SQL query to find distinct IDs from a table where the count is more than 1 and greater than 200.
Write a query for second-highest salary using LIMIT, OFFSET, or ROW_NUMBER()
Write a query that identifies numbers appearing at least three times consecutively without interruption
Write a query to find minimum age.
Write a query to find the first number repeating consecutively three times in a sequence.
Write a query to find the median salary of employees in a table.
Write a query to switch values in the Gender column (M to F and F to M).
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.