Similar to Snowflake, Amazon Redshift is a cloud based data warehouse and is a component of Amazon web services (AWS). Amazon Redshift supports both ODBC and JDBC connection. There are many companies released a tool that uses Redshift ODBC or JDBC driver to connect Redshift. In this article, we will check some of best Amazon Redshift query tools or SQL editor that you can use.
Best Amazon Redshift Query Tools – SQL Editors
Many SQL developers are comfortable with the tools to execute queries and play around data. There are many free and paid Redshift SQL editors are available. However, free tools are more than enough to complete your day to day tasks.
Following are some of free SQL editor that you can use to connect to Amazon Redshift.
Now, let us check these tools in brief.
Redshift Query Editor
Amazon Redshift console now supports writing, running and saving queries.
Using the query editor is the easiest way to run queries on databases hosted by your Amazon Redshift cluster. After creating your cluster, you can immediately run queries by using the query editor on the Amazon Redshift console.
This option is one of the easiest ways to get started with Redshift. You can write and run all SQL queries. However, please note that you cannot create a procedure using Redshift query editor.
SQL Workbench/J
SQL Workbench/J is a Java based SQL query tool that runs on any operating system with a Java Runtime Environment (JRE). You can use this tool to connect many databases such as Oracle, Teradata, Snowflake, etc. This tool can execute queries in interactive or batch mode. Also, its export and import functionality allows you to import data from flat file and export data to flat file.
Many Redshift tutorials use SQL Workbench/J for demo.
Aginity Pro (Free and Paid) SQL Editor
Aginity Pro is a new SQL analysis tool. It has a free and paid version. It is an easy-to-use application that enhances your performance when you are working with your Amazon Redshift data warehouse. Aginity pro uses JDBC drivers to connect to databases such as Redshift, Netezza, Snowflake, Greenplum, etc.
The Aginity Pro is packed with many features that helps developers and administrator to manage the Amazon Redshift easily.
Related Article
Psql Command-Line Tool
This tool is native to PostgreSQL. As Amazon uses PostgreSQL 8.x, you can use psql command line tool to connect Redshift.
However, note that Redshift does not support all features of the latest PostgreSQL versions. Thus, you might encounter an error while using the tool with your Amazon Redshift database. Tools such as DB dumps will not work with Amazon Redshift.
However, if you are using psql on windows, you may encounter encoding issue.
Execute following command on the command prompt before using psql.
set PGCLIENTENCODING=UTF8
Related Articles,
Squirrel SQL
The Squirrel SQL is another Java-based program similar to the SQL Workbench/J. It is also a cross-platform tool and works across almost all JDBC-compliant databases. Using Squirrel, you can view the structure of your Amazon Redshift database graphically, browse existing data in its tables, and run SQL queries against your data.
Related Article,
Hope this helps 🙂