SQL Queries for Mere Mortals

A Hands-On Guide to Data Manipulation in SQL

Paperback Engels 2018 4e druk 9780134858333
€ 63,55
Levertijd ± 8 werkdagen
Gratis verzonden

Samenvatting

The #1 Easy, Common-Sense Guide to SQL Queries—Updated with More Advanced Techniques and Solutions

Foreword by Keith W. Hare, Vice Chair, USA SQL Standards Committee

'SQL Queries for Mere Mortals' has earned worldwide praise as the clearest, simplest tutorial on writing effective queries with the latest SQL standards and database applications. Now, author John L. Viescas has updated this hands-on classic with even more advanced and valuable techniques.

Step by step, Viescas guides you through creating reliable queries for virtually any current SQL-based database. He demystifies all aspects of SQL query writing, from simple data selection and filtering to joining multiple tables and modifying sets of data.

Building on the basics, Viescas shows how to solve challenging real-world problems, including applying multiple complex conditions on one table, performing sophisticated logical evaluations, and using unlinked tables to think “outside the box.”

In two brand-new chapters, you learn how to perform complex calculations on groups for sophisticated reporting, and how to partition data into windows for more flexible aggregation.

Practice all you want with downloadable sample databases for today’s versions of Microsoft Office Access, Microsoft SQL Server, and the open source MySQL and PostgreSQL databases. Whether you’re a DBA, developer, user, or student, there’s no better way to master SQL.

Coverage includes:
-Getting started: understanding what relational databases are, and ensuring that your database structures are sound
-SQL basics: using SELECT statements, creating expressions, sorting information with ORDER BY, and filtering data using WHERE
-Summarizing and grouping data with GROUP BY and HAVING clauses
-Drawing data from multiple tables: using INNER JOIN, OUTER JOIN, and UNION operators, and working with subqueries
-Modifying data sets with UPDATE, INSERT, and DELETE statements
-Advanced queries: complex NOT and AND, conditions, if-then-else using CASE, unlinked tables, driver tables, and more
-NEW! Using advanced GROUP BY keywords to create subtotals, roll-ups, and more
-NEW! Applying window functions to answer more sophisticated questions, and gain deeper insight into your data

Software-Independent Approach!
If you work with database software such as Access, MS SQL Server, Oracle, DB2, MySQL, Ingres, or any other SQL-based program, this book could save you hours of time and aggravation—before you write a single query!

Specificaties

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Foreword xxi
Preface xxii
Acknowledgments xxiv
About the Author xxv
Introduction 1
Are You a Mere Mortal? 1
About This Book 2
What This Book Is Not 4
How to Use This Book 4
Reading the Diagrams Used in This Book 5
Sample Databases Used in This Book 9
“Follow the Yellow Brick Road” 12

PART I: RELATIONAL DATABASES AND SQL 13
Chapter 1: What Is Relational? 15
Types of Databases 15
A Brief History of the Relational Model 16
In the Beginning . . . 16
Relational Database Systems 17
Anatomy of a Relational Database 19
Tables 20
Columns 21
Rows 21
Keys 22
Views 23
Relationships 25
What’s in It for You? 29
Where Do You Go from Here? 30
Summary 31

Chapter 2: Ensuring Your Database Structure Is Sound 33
Why Is this Chapter Here? 34
Why Worry about Sound Structures? 34
Fine-Tuning Columns 35
What’s in a Name? (Part One) 35
Smoothing Out the Rough Edges 38
Resolving Multipart Columns 40
Resolving Multivalued Columns 43
Fine-Tuning Tables 46
What’s in a Name? (Part Two) 46
Ensuring a Sound Structure 48
Resolving Unnecessary Duplicate Columns 50
Identification Is the Key 56
Establishing Solid Relationships 60
Establishing a Deletion Rule 63
Setting the Type of Participation 64
Setting the Degree of Participation 66
Is That All? 69
Summary 69

Chapter 3: A Concise History of SQL 71
The Origins of SQL 72
Early Vendor Implementations 73
“. . . And Then There Was a Standard” 75
Evolution of the ANSI/ISO Standard 76
Other SQL Standards 79
Commercial Implementations 83
What the Future Holds 83
Why Should You Learn SQL? 84
Which Version of SQL Does this Book Cover? 84
Summary 85
Afgekapt op 61 regels

Managementboek Top 100

€ 63,55
Levertijd ongeveer 8 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          SQL Queries for Mere Mortals