Book description
"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."
Table of contents
- Cover Page
- Title Page
- Copyright Page
- About the Author
- About the Technical Reviewer
- Brief Contents
- Contents in Detail
- Foreword by Sarah Frostenson
- Acknowledgments
- Introduction
- 1. Creating Your First Database and Table
- 2. Beginning Data Exploration with SELECT
- 3. Understanding Data Types
- 4. Importing and Exporting Data
- 5. Basic Math and Stats With SQL
-
6. Joining Tables in a Relational Database
- Linking Tables Using JOIN
- Relating Tables with Key Columns
- Querying Multiple Tables Using JOIN
- JOIN Types
- Using NULL to Find Rows with Missing Values
- Three Types of Table Relationships
- Selecting Specific Columns in a Join
- Simplifying JOIN Syntax with Table Aliases
- Joining Multiple Tables
- Performing Math on Joined Table Columns
- Wrapping Up
- Try It Yourself
- 7. Table Design That Works for You
- 8. Extracting Information by Grouping and Summarizing
- 9. Inspecting and Modifying Data
- 10. Statistical Functions in SQL
- 11. Working with Dates and Times
- 12. Advanced Query Techniques
- 13. Mining Text to Find Meaningful Data
- 14. Analyzing Spatial Data with PostGIS
- 15. Saving Time with Views, Functions, and Triggers
- 16. Using PostgreSQL from the Command Line
- 17. Maintaining Your Database
- 18. Identifying and Telling the Story Behind Your Data
- Appendix: Additional PostgreSQL Resources
- Index
Product information
- Title: Practical SQL
- Author(s):
- Release date: May 2018
- Publisher(s): No Starch Press
- ISBN: 9781593278274
You might also like
book
Practical SQL, 2nd Edition
Practical SQL is an approachable and fast-paced guide to SQL (Structured Query Language), the standard programming …
video
Learning SQL
Almost 3 Hours of Video Instruction Your complete SQL video course: Master hands-on, real-world skills for …
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …
book
SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL, 4th Edition
The #1 Easy, Common-Sense Guide to SQL Queries—Updated with More Advanced Techniques and Solutions Foreword by …