Chapter 1: Creating Your First Database and Table (AVAILABLE NOW)
Chapter 2: Beginning Data Exploration with SELECT (AVAILABLE NOW)
Chapter 3: Understanding Data Types (AVAILABLE NOW)
Chapter 4: Importing and Exporting Data (AVAILABLE NOW)
Chapter 5: Basic Math and Stats with SQL (AVAILABLE NOW)
Chapter 6: Table Joins in a Relational Database (AVAILABLE NOW)
Chapter 7: Table Design that Works for You (AVAILABLE NOW)
Chapter 8: Extracting Information by Grouping and Summarizing (AVAILABLE NOW)
Chapter 9: Inspecting and Modifying Data (AVAILABLE NOW)
Chapter 10: Statistical Functions in SQL (AVAILABLE NOW)
Chapter 11: Working with Dates and Times
Chapter 12: Advanced Query Techniques
Chapter 13: Extracting Data from Text
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
Get 30% off with the coupon code EARLYBIRD
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.