All Projects → anthonydb → Practical Sql

anthonydb / Practical Sql

Licence: other
Code and Data for the book "Practical SQL" by Anthony DeBarros, published by No Starch Press (2018).

Projects that are alternatives of or similar to Practical Sql

Sql Battleships
Play Battleships on PostgreSQL
Stars: ✭ 174 (-55.61%)
Mutual labels:  sql, plpgsql, postgresql
Squeal
Squeal, a deep embedding of SQL in Haskell
Stars: ✭ 308 (-21.43%)
Mutual labels:  sql, postgresql
Loukoum
A simple SQL Query Builder
Stars: ✭ 305 (-22.19%)
Mutual labels:  sql, postgresql
Ansible Role Postgresql
Ansible Role - PostgreSQL
Stars: ✭ 310 (-20.92%)
Mutual labels:  sql, postgresql
Jsqlparser
JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
Stars: ✭ 3,405 (+768.62%)
Mutual labels:  sql, postgresql
Sqlc
Generate type-safe code from SQL
Stars: ✭ 4,564 (+1064.29%)
Mutual labels:  sql, postgresql
Jet
Type safe SQL builder with code generation and automatic query result data mapping
Stars: ✭ 373 (-4.85%)
Mutual labels:  sql, postgresql
Swifql
💎 A Swift DSL for type-safe, extensible, and transformable SQL queries.
Stars: ✭ 250 (-36.22%)
Mutual labels:  sql, postgresql
Rel
💎 Modern Database Access Layer for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API
Stars: ✭ 317 (-19.13%)
Mutual labels:  sql, postgresql
Plpgsql check
plpgsql_check is linter tool for language PL/pgSQL (native language for PostgreSQL store procedures).
Stars: ✭ 322 (-17.86%)
Mutual labels:  plpgsql, postgresql
Zombodb
Making Postgres and Elasticsearch work together like it's 2021
Stars: ✭ 3,781 (+864.54%)
Mutual labels:  sql, postgresql
Pgmemento
Audit trail with schema versioning for PostgreSQL using transaction-based logging
Stars: ✭ 260 (-33.67%)
Mutual labels:  plpgsql, postgresql
Bedquilt Core
A JSON document store on PostgreSQL
Stars: ✭ 256 (-34.69%)
Mutual labels:  sql, plpgsql
Dbeaver
Free universal database tool and SQL client
Stars: ✭ 23,752 (+5959.18%)
Mutual labels:  sql, postgresql
Xo
Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server
Stars: ✭ 2,974 (+658.67%)
Mutual labels:  sql, postgresql
Sqlx
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL.
Stars: ✭ 5,039 (+1185.46%)
Mutual labels:  sql, postgresql
Franchise
🍟 a notebook sql client. what you get when have a lot of sequels.
Stars: ✭ 3,823 (+875.26%)
Mutual labels:  sql, postgresql
Sql Lint
An SQL linter
Stars: ✭ 243 (-38.01%)
Mutual labels:  sql, postgresql
E Commerce Db
Database schema for e-commerce (webstores) sites.
Stars: ✭ 245 (-37.5%)
Mutual labels:  sql, postgresql
Sqlbench
sqlbench measures and compares the execution time of one or more SQL queries.
Stars: ✭ 319 (-18.62%)
Mutual labels:  sql, postgresql

Practical SQL: A Beginner's Guide to Storytelling with Data

Practical SQL from No Starch Press is a beginner-friendly guide to the database programming language SQL. Journalist and data analyst Anthony DeBarros begins with SQL basics, using the free open-source database PostgreSQL and interface pgAdmin, and walks through intermediate and advanced topics including statistics, aggregation, cleaning data, GIS and automating tasks. Along the way, you'll use real-world data from the U.S. Census and other government agencies and learn the fundamentals of good database design. This book is ideal for beginners as well as those who know some SQL and want to go deeper.

Practical SQL is available in PDF, .mobi, .epub, and classic print formats.

Questions? Please email [email protected]

What's Here

Code: All the SQL statements and command-line listings used in each chapter, organized by chapter folders.

Data: CSV files and GIS shapefiles for you to import, also organized by chapter. NOTE! See the warning below about opening CSV files with Excel or text editors in the section on Getting the Code and Data.

Exercises: The "Try It Yourself" questions and answers for each chapter, listed separately. Try working through the questions before peeking at the answers!

FAQ, Updates, and Errata: Answers to frequently asked questions, updates, and corrections are noted at faq-updates-errata.md.

Resources: Updates to the book's Appendix on Additional PostgreSQL Resources at resources.md.

Chapters

  • Chapter 1: Creating Your First Database and Table
  • Chapter 2: Beginning Data Exploration with SELECT
  • Chapter 3: Understanding Data Types
  • Chapter 4: Importing and Exporting Data
  • Chapter 5: Basic Math and Stats with SQL
  • Chapter 6: Joining Tables in a Relational Database
  • Chapter 7: Table Design That Works for You
  • Chapter 8: Extracting Information by Grouping and Summarizing
  • Chapter 9: Inspecting and Modifying Data
  • Chapter 10: Statistical Functions In SQL
  • Chapter 11: Working With Dates and Times
  • Chapter 12: Advanced Query Techniques
  • Chapter 13: Mining Text to Find Meaningful Data
  • Chapter 14: Analyzing Spatial Data with PostGIS
  • Chapter 15: Saving Time with Views, Functions, and Triggers
  • Chapter 16: Using PostgreSQL from the Command Line
  • Chapter 17: Maintaining Your Database
  • Chapter 18: Identifying and Telling the Story Behind Your Data
  • Appendix: Additional PostgreSQL Resources

Getting the Code and Data on Your Computer

Non-GitHub Users

You can obtain all the code and data at once by downloading this repository as a .zip file. To do that:

  • Click the Code button at top right.
  • Click Download ZIP
  • Unzip the file on your computer. Place it in a directory that's easy to remember so you can reference it during the exercises that include importing data to PostgreSQL.

Warning about CSV files!: Opening CSV files with Excel could lead to data loss. Excel will remove leading zeros from numbers that are intended to be stored as text, such as zip codes. If you wish to view the contents of a CSV file, only do so with a plain-text editor and be careful not to save the file in an encoding other than UTF-8 (e.g., Notepad.exe on Windows defaults to ANSI).

GitHub Users

GitHub users may want to clone the repository locally and occasionally perform a git pull to receive any updates.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].