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

  • 6h 46m
  • Anthony DeBarros
  • No Starch Press
  • 2018

Practical SQL is an approachable and fast-paced guide to SQL (Structured Query Language), the standard programming language for defining, organizing, and exploring data in relational databases. The book focuses on using SQL to find the story your data tells, with the popular open-source database PostgreSQL and the pgAdmin interface as its primary tools.

You’ll first cover the fundamentals of databases and the SQL language, then build skills by analyzing data from the U.S. Census and other federal and state government agencies. With exercises and real-world examples in each chapter, this book will teach even those who have never programmed before all the tools necessary to build powerful databases and access information quickly and efficiently.

You’ll learn how to:

  • Create databases and related tables using your own data
  • Define the right data types for your information
  • Aggregate, sort, and filter data to find patterns
  • Use basic math and advanced statistical functions
  • Identify errors in data and clean them up
  • Import and export data using delimited text files
  • Write queries for geographic information systems (GIS)
  • Create advanced queries and automate tasks

Learning SQL doesn’t have to be dry and complicated. Practical SQL delivers clear examples with an easy-to-follow approach to teach you the tools you need to build and manage your own databases.

This book uses PostgreSQL, but the SQL syntax is applicable to many database applications, including Microsoft SQL Server and MySQL.

About the Author

Anthony DeBarros is an award-winning journalist who's combined avid interests in data analysis, coding, software product development, and storytelling for much of his career. He's currently a data news editor for the Wall Street Journal, focusing on topics including the economy, trade, the U.S. Census, and politics. He previously held positions with USA TODAY, the Poughkeepsie Journal, and the DocumentCloud project for Investigative Reporters and Editors.

In this Book

  • Creating Your First Database and Table
  • Beginning Data Exploration With Select
  • Understanding Data Types
  • Importing and Exporting Data
  • Basic Math and Stats With SQL
  • Joining Tables in a Relational Database
  • Table Design that Works For You
  • Extracting Information by Grouping and Summarizing
  • Inspecting and Modifying Data
  • Statistical Functions in SQL
  • Working With Dates and Times
  • Advanced Query Techniques
  • Mining Text to Find Meaningful Data
  • Analyzing Spatial Data With PostGIS
  • Saving Time With Views, Functions, And Triggers
  • Using PostgreSQL From the Command Line
  • Maintaining Your Database
  • Identifying and Telling the Story Behind Your Data
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE