
For this lecture, students will download and install SQL Server and SQL Server Management Studio
This lecture will allow show you how to load the Annapolis.bak file into SQL Server. Make sure to download the file annapolis.zip, and unzip it. The video will step you through the steps to restore the database.
This lecture will present some of the arguments people use to discourage the use of SQL. It will also begin to answer why SQL is actually a preferable language for managing data.
This lecture will continue to build the case for why SQL is superior to other methods of manipulating data. Further, it will present the argument that SQL is actually far superior than traditional GIS processes.
Apply boolean operations in SQL Server to filter spatial data by greater than, less than, and equal to, using and, or, and not on parcels and land use.
Learn date and time operations in SQL Server to convert strings to dates, compute differences, extract day, month, year, and use date from parts and date name for transaction analysis.
Master spatial functions in SQL Server using geometry data types, including buffering, containment, and intersects. Work with parcels, parks, flood maps, and critical areas to compute intersections.
Master the select statement to retrieve data from tables with star or specific columns, using where clauses and conditions, and join tables on account id, total value, and land use.
Explore spatial type functions in SQL Server, including geometry operations like buffer, contains, intersects, distance, and adjacency, applied to parcel and state data for geospatial analysis.
Explore spatial analysis with SQL Server by applying distance functions to geographic data, build a nearest neighbor index, and compute average nearest neighbor distances between cities.
The Huff model for retail gravitation estimates a customer’s probability of visiting a store by combining store attractiveness with inverse distance weighting, enabling SQL-based market cannibalization and sales projections.
Explore a variogram of the last spring frost date across 76 cities to quantify spatial autocorrelation as distance grows, using 50‑mile bands and semi-variance.
Are you a database user who wants to learn about spatial data analytics? Are you a GIS professional stuck in a rut of only knowing how to use a GIS GUI? Do you want to learn how to automate tasks, but are afraid of computer programming. If so, SQL is the most powerful tool you can learn to help you perform complex GIS tasks. This course is designed to teach you how to write SQL to replicate many database and GIS tasks using Microsoft's SQL Server. We will start at a very basic overview, and then proceed to more advanced topics related to GIS.
Through a series of lectures, I will work side-by-side with you to develop SQL queries in SQL Server that perform advanced GIS tasks, some of which might be impossible to perform in the GUI. Once my students learn GIS, they very rarely want to return back to using the GUI.
By writing SQL code alongside me, you will see how solving GIS tasks in SQL is like a second nature. This is a very comprehensive course that should take multiple days to complete - but don't worry about that - you will be having a lot of fun learning how powerful SQL can be, and continually ask yourself "why didn't I start using SQL sooner!"