SQL Workshop#

Overview#

SQL Workshop allows you to run SQL againts your QGIS data sources.

PostGIS, GeoPackage, Shapefile, and ESRI Geodatabase are supported.

../../_images/qcarta-reports-31.png

SQL Workshop offers a choice of SQL Terminal and a Visual Query Builder.

SQL Terminal#

Click on the Workshop you wish to use

../../_images/qcarta-reports-31.png

Select your target data source from the dropdown.

../../_images/qcarta-sql-2.png

Enter your SQL

../../_images/qcarta-sql-3.png

Test your Query

../../_images/qcarta-sql-4.png

Visual Query Builder#

Click the Visual Query Builder tab.

../../_images/qcarta-sql-5.png

Select the Table(s) you wish to add.

When joining tables, you’ll be given Join options.

../../_images/qcarta-sql-6.png

Click the Generate SQL button

../../_images/qcarta-sql-7.png

Click the Copy to SQL Terminal button

../../_images/qcarta-sql-8.png

Execute SQL to view results.

../../_images/qcarta-sql-9.png