• Practice
  • Flashcards
  • Cheat Sheet
  • Pricing
  • Login
  • Sign Up

SQL Practice Questions

Sharpen your SQL proficiency and elevate your confidence for that upcoming interview or project. Explore a diverse mix of SQL problems that cover a spectrum of complexities. Each question is designed to expand your knowledge and reinforce your understanding of SQL concepts. Explore, learn, and conquer SQL complexities one question at a time!
  • To-Do
    53 Questions
  • Done
    2 Questions
  • Start Over
    Reset All Questions
Question H146
Output the last name of users whose last name is greater than 6 characters long.
Solve
Question M811
Perform a SELF JOIN of the payments table onto itself and return all columns.
Solve
Question M651
Select the last row from the founder table without using the LIMIT clause.
Solve
Upgrade to View
Question H930
Based on dob of a founder, display year, month, day in 3 separate columns.
Solve
Upgrade to View
Question M262
Perform a SELF JOIN of the users table onto itself and return all columns.
Solve
Upgrade to View
Question M883
Get the values and counts of purchase types that appear 20 or more times.
Solve
Upgrade to View
Question H679
Get the second largest transaction amount from the payments table.
Solve
Upgrade to View
Question M569
Get the transaction history of the user name 'Carole Drummond'.
Solve
Upgrade to View
Question H795
Return the 2 companies that were founded in the same year.
Solve
Upgrade to View
Question H530
What percent of users are older than 45 years of age?
Solve
Show more
  • © 2025 SQLinterview. Empowering careers through mastering SQL.
  • Articles
  • Contact
  • Sitemap
  • Terms
  • Privacy
Welcome back
Create your account
Don't have an account?
Already have an account?
Forgot password?
Continue with Google Continue with Google

Reset your password

Enter the email address you used to register with.

Please confirm your email to start using SQLinterview.com