{"id":18998867,"url":"https://github.com/anthonydb/postgresql-intro-nicar-2019","last_synced_at":"2025-07-23T15:04:29.739Z","repository":{"id":142308678,"uuid":"173623973","full_name":"anthonydb/postgresql-intro-nicar-2019","owner":"anthonydb","description":"Materials for the PostgreSQL hands-on class at NICAR 2019 in Newport Beach, Calif.","archived":false,"fork":false,"pushed_at":"2019-03-03T21:58:21.000Z","size":74861,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T12:47:10.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"SQLPL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonydb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-03T20:07:10.000Z","updated_at":"2023-08-04T14:36:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"d41dda33-53f0-4624-80cc-6fa9a0faa89e","html_url":"https://github.com/anthonydb/postgresql-intro-nicar-2019","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anthonydb/postgresql-intro-nicar-2019","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar-2019","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar-2019/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar-2019/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar-2019/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonydb","download_url":"https://codeload.github.com/anthonydb/postgresql-intro-nicar-2019/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonydb%2Fpostgresql-intro-nicar-2019/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266699565,"owners_count":23970514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T17:48:12.417Z","updated_at":"2025-07-23T15:04:29.720Z","avatar_url":"https://github.com/anthonydb.png","language":"SQLPL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Hands-On · NICAR 2019 Newport Beach, Calif.\n\n## Description\nThis session will introduce you to PostgreSQL, a free, open source relational database system similar to MySQL and Microsoft SQL Server. We’ll cover the PostgreSQL ecosystem, from the database itself to management tools such as pgAdmin and psql. We’ll also dig into some of PostgreSQL’s unique and super-handy features, including the PostGIS spatial database extension, full-text search, and statistical functions.\n\nThis repo includes data, sample queries, and a [PDF of slides](https://github.com/anthonydb/postgresql-intro-nicar-2019/blob/master/NICAR-2019-PostgreSQL.pdf). The material is drawn from the more advanced chapters of this author's book [Practical SQL](https://www.nostarch.com/practicalsql). You can find all the code examples and data for the book [here](https://github.com/anthonydb/practical-sql).\n\n## Topics\n* A few basic queries\n* Creating a function\n* Spatial queries with PostGIS\n* Full-text search\n* Statistical functions\n\n\n## Setup\nIf you're trying this at home, here's how to get rolling (you will need to have PostgreSQL installed, along with the PostGIS extension).\n\n* Download this repo to your computer.\n* To create tables and load data, execute the queries in the file [pg_create_import.sql](https://github.com/anthonydb/postgresql-intro-nicar-2019/blob/master/pg_create_import.sql) using pgAdmin, the psql command-line tool, or another GUI. Note that you will need to load a Census shapefile using a command-line utility noted at the end of the file.\n* You can then run the queries in [pg_demo_queries.sql](https://github.com/anthonydb/postgresql-intro-nicar-2019/blob/master/pg_demo_queries.sql)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonydb%2Fpostgresql-intro-nicar-2019","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonydb%2Fpostgresql-intro-nicar-2019","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonydb%2Fpostgresql-intro-nicar-2019/lists"}