SQL Fiddle

Welcome to SQL Fiddle, an online SQL compiler that lets you write, edit, and execute any SQL query.

Choose which SQL language you would like to practice today:


Who's Maintaining SQL Fiddle?

This is me! I'm Jonathan Magnan, the owner of ZZZ Projects. SQL Fiddle is part of our mission: A Business Devoted to Adding Value to the .NET Community.

Maintaining this site is one of my hobbies.

I'm currently travelling the world while juggling way too many projects, but if you spot me, don’t be shy—come say hi!

And hey, don't forget to follow me on Instagram


AI Chat

SQL Fiddle is now enhanced by an AI chat powered by ChatGPT. The chat is located in the sidebar section of the website.

Feel free to ask any kind of SQL-related question to help you during your exercises, learning, and training.

You currently need to be logged in to use AI features.


AI SQL Generator

SQL Fiddle is now enhanced by an AI SQL query generator. You can now generate SQL queries for inserting or editing data directly from the SQL editor.

The SQL query generator is located in the sidebar section of the website. You can either generate new code or right-click to open the context menu to choose the code you would like to edit.

You currently need to be logged in to use AI features.


What is the purpose of SQL Fiddle?

We created SQL Fiddle to provide an online SQL playground to let people learn and improve their SQL skills.

SQL Fiddle is more than just an online SQL editor; it's a comprehensive platform designed to support your journey in mastering SQL. Whether you're a beginner looking to grasp the basics or an experienced professional refining your skills, SQL Fiddle provides the tools and resources you need to succeed.

You can use this website as:

  • Your personal sandbox to practice online SQL
  • A platform to share SQL queries with your colleagues
  • An online SQL editor to ask or answer SQL questions on Stack Overflow

SQL Fiddle is dedicated to fostering a supportive and dynamic learning environment, empowering you to achieve your SQL goals and excel in your database endeavors.


Features and Benefits

SQL Fiddle offers a range of features designed to enhance your SQL learning and development experience:

  • Multiple Database Support: Practice with different SQL language to improve your knowledge.
  • Real-time Code Execution: Test your SQL queries instantly and see the results in real time.
  • Collaboration: Share your SQL fiddles with others, making it easier to collaborate on database problems or demonstrate SQL concepts.
  • AI-Powered Assistance: Get help from AI chat and SQL query generator to understand complex queries and generate code efficiently.
  • Accessible Anywhere: As a web-based platform, SQL Fiddle is accessible from any device with an internet connection, allowing you to practice SQL anytime, anywhere.

Where can I report an issue?

You can report any bugs you find on our GitHub issue tracker.


Where can I suggest a feature?

You can suggest any feature or idea you would like us to implement on our GitHub issue tracker.


Where can I find the old version of SQL Fiddle?

The previous version of SQL Fiddle was shut down at the end of 2023. You can still access and view the original code on GitHub - sqlfiddle3.


Legal