SQL SELECT and Filtering Interview Questions
Screening rounds often start here: selecting the right columns, filtering the right rows and handling NULLs and dates correctly.
These questions are short, but each one hides a detail interviewers check, like NULLs that a plain comparison silently skips.
Patterns to know
- Filtering with WHERE, IN, BETWEEN and LIKE
- Handling NULL with IS NULL and COALESCE
- Conditional labels with CASE WHEN
- Date math and string functions
Easy questions
- Easy Employees Hired in the Last 90 Days New Hire Onboarding List Free
- Easy Combine Two Tables With UNION Merge Active and Inactive Users Free
- Easy Completion Rate as a Percentage Course Completion Percentage Free
- Easy Employees Without a Manager Employees Without Managers Free
- Easy Search by Name Pattern With LIKE Search Products by Name Pattern Free
- Easy Days Between Two Dates Calculate Account Age in Days Free
- Easy Convert Seconds to Minutes Convert Track Duration to Minutes Free
- Easy Salaries Over $100,000 Six-Figure Earners Free
- Easy Filter a Price Range With BETWEEN Mid-Range Product Filter Free
- Easy Replace NULL With COALESCE Handle Missing Data with COALESCE Free
- Easy Salary Bands With CASE WHEN Classify Employees by Salary Tier Free