What Do I Need to Run SQL?

I get it. You’re trying to learn SQL, but they won’t even tell you the most fundamental part – what you need to run SQL!

You’ve got the SQL code… but where do you actually run it? What software program do you need before you can run your SQL query against a database?

If that’s you, all is about to be revealed!

Basic Requirements

If you’re following along with the examples in a SQL tutorial or book, you’ll need to have somewhere to enter the queries.

Like this, for example:

Screenshot of Azure Data Studio
Screenshot of a database management tool (Azure Data Studio) connected to a Relational Database Management System (RDBMS).

If you’re going to run SQL queries, you’ll need:

If you don’t have these installed, below are some links that will help get you up and running.

Installation

Below are links to the official download pages of some of the most popular RDBMSs, as well as the most commonly used tools for running SQL queries against each one.

MySQL

To install MySQL:

Also check out my MySQL tutorial over at Quackit.

PostgreSQL

To install PostgreSQL:

Also, here are some tutorials in case you need help:

SQL Server

To run SQL queries against SQL Server, install SQL Server, then install a database tool.

1. Install SQL Server

To install SQL Server, download it from the official SQL Server download page.

For a free edition, choose either the Developer edition or the Express edition. If you need help, see my tutorial How to Install SQL Server (covers Windows, Linux, and MacOS).

2. Install a Database Management Tool

Here are links to help you download and install a tool that will enable you to run SQL queries against SQL Server.

You only need to install one (although you safely install them all if you prefer).

Once you’ve installed SQL Server and at least one database management tool, you can go ahead and run SQL queries.

Also see my SQL Server tutorial over at Quackit.

Oracle Express

To install Oracle Express:

SQLite

To install SQLite:

In SQLite, creating a database uses a different process to most other DBMSs. If you’re stuck because a tutorial isn’t teaching you the SQLite method, see How to Create a Database in SQLite. From there you can write normal SQL queries against your database.

Also check out my SQLite tutorial over at Quackit.