SQL for Beginners
$27.99
Buy on Amazon View on Apple BooksPrefer it in print? See every format on Amazon →
Price on Apple Books. Amazon’s price may differ.
- Published
Description
A spreadsheet stores everything on one sheet and lets you click. A relational database stores facts in related tables and makes you ask in words. Once you have ten thousand customers, one sentence of SQL can answer a question that clicking never could. This book teaches you to write that sentence.
You build a small bookshop database on your own computer in the first chapter, using only Python and a text editor, and then every query you read is a query you can run and compare with the printed result. There are 80 exercises, and each has a worked answer.
Inside you will find:
• A complete setup for a practice database that runs offline
• Reading data with SELECT and WHERE, sorting, limits, expressions and NULL
• Summaries with aggregates and GROUP BY
• Joins that combine tables, subqueries and common table expressions
• Changing data safely with inserts, updates and deletes
• Designing tables, keys and constraints
• Views, indexes and how to read a query plan
• Window functions and working with dates
• A capstone of eight report tasks and a quick reference
It is written for complete beginners, analysts, students and career changers who want a clear, practical start with databases.
Written as general information and practice material. Examples use an invented dataset, and small differences exist between database systems, so check the documentation of the one you use at work.