SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL (Paperback)
Michael J. Hernandez, John L. Viescas
- 出版商: Addison Wesley
- 出版日期: 2000-08-31
- 定價: $1,980
- 售價: 2.0 折 $399
- 語言: 英文
- 頁數: 528
- 裝訂: Paperback
- ISBN: 0201433362
- ISBN-13: 9780201433364
-
相關分類:
SQL
立即出貨(限量) (庫存=9)
買這商品的人也買了...
-
$680$578 -
$650$553 -
$990$495 -
$299$254 -
$480$408 -
$880$695 -
$560$476 -
$1,050$998 -
$450$351 -
$420$328 -
$750$638 -
$580$458 -
$650$553 -
$580$493 -
$760$600 -
$590$466 -
$280$238 -
$620$527 -
$480$374 -
$690$538 -
$990CCNA Certification Library (CCNA Self-Study, exam #640-801), 6/e
-
$199CCNA ICND Exam Certification Guide (CCNA Self-Study, 640-811, 640-801) (Hardcover)
-
$750$638 -
$560$476 -
$480$379
商品描述
Description
The practical, hands-on, plain-English guide to getting results with SQL!
- No unnecessary jargon: just real help and useful examples!
- Covers every SQL skill business database users need most: drawing data from multiple tables, grouping, totaling, summaries, and much more.
- CD-ROM contains five real-world sample databases for use with the book's example queries.
Michael J. Hernandez is a well-known relational database consultant, top-rated Microsoft Access instructor, and owner of DataTex Consulting Group in Seattle, WA. He is author of the best-selling Database Design for Mere Mortals, 0-201-69471-9. John L. Viescas is President of Viescas Consulting, Inc., a respected provider of database consulting services. He is the author of Running Microsoft Access 97 and Quick Reference Guide to SQL, which has been hailed as "the Strunk and White of SQL."
Table Of Contents
Foreword.Preface and Acknowledgments.
About the Authors.
Introduction.
About This Book.
How to Use This Book.
Reading the Diagrams Used in This Book.
Sample Databases Used in This Book.
"Follow the Yellow Brick Road".
I. RELATIONAL DATABASES AND SQL.
1. What Is "Relational?"
Types of Databases.
A Brief History of the Relational Model.
Relational Database Software.
Anatomy of a Relational Database.
Fields.
Records.
Keys.
Views.
Relationships.
What's in It for Me?
2. Ensuring Your Database Structure Is Sound.
Why Is This Chapter Here?
Why Worry about Sound Structures?
Fine-tuning Fields.
Smoothing Out the Rough Edges.
Resolving Multipart Fields.
Resolving Multivalued Fields.
Fine-tuning Tables.
Ensuring a Sound Structure.
Resolving Unnecessary Duplicate Fields.
Identification Is the Key.
Establishing Solid Relationships.
Setting the TYpe of Participation.
Setting the Degree of Participation.
Is That All?
3. A Concise History of SQL.
The Origins of SQL.
Early Vendor Implementation.
". . . And Then There Was a Standard".
Evolution of the ANSI/ISO Standard.
Commercial Implementations.
What the Future Holds.
Why Should You Learn SQL?
II. SQL BASICS.
4. Creating a Simple Query.
Introducing SELECT.
The SELECT Statement.
A Quick Aside: Data vs. Information.
Translating Your Request into SQL.
Eliminating Duplicate Rows.
Sorting Information.
Let's Now Come to Order.
Saving Your Work.
Sample Statements.
Problems for You to Solve.
5. Getting More Than Simple Columns.
The SELECT Clause: Take Two.
Moving Beyond Basic Information.
What Is an Expression?
What Are You Trying to Express?
Types of Expressions.
Mathematical.
Date And Time Arithmetic.
Using Expressions in a SELECT Clause.
That "Nothing" Value--NULL.
Sample Statements.
Problems for You to Solve.
6. Filtering Your Data.
Refining What You See Using WHERE.
Using A WHERE Clause.
Defining Search Conditions.
Range.
Set Membership.
Pattern Match.
Null.
Excluding Rows with NOT.
Using Multiple Conditions.
Excluding Rows: Take Two.
Order of Precedence.
Nulls Revisited: A Cautionary Note.
Expressing Conditions in Different Ways.
Sample Statements.
Problems for You to Solve.
III. WORKING WITH MULTIPLE TABLES.
7. Thinking in Sets.
What Is a Set, Anyway?
Operations on Sets.
Intersection.
Intersection between Result Sets.
Problems You Can Solve with INTERSECT.
Difference.
Difference Between Result Sets.
Problems You Can Solve with DIFFERENCE.
Union.
Combining Result Sets Using UNION.
Problems You Can Solve with UNION.
SQL Set Operations.
Finding Common Values--INTERSECT.
Finding Missing Values--EXCEPT (Difference).
Combining Sets--UNION.
8. INNER JOINs.
What Is a JOIN?
The INNER JOIN.
Syntax.
Check Those Relationships!
Uses for INNER JOINs.
Find Matching Values.
Sample Statements.
More Than Two Tables.
Looking for Matching Values.
Problems for You to Solve.
9. OUTER JOINs.
What is an OUTER JOIN?
The Left/Right OUTER JOIN.
The FULL OUTER JOIN.
FULL OUTER JOIN on Non-Key Values.
UNION JOIN.
Uses for OUTER JOINS.
Find Partially Matched Information.
Sample Statements.
Problems for You to Solve.
10. UNIONs.
What Is a Union?
Writing Requests with UNION.
Combining Complex SELECT Statements.
Using UNION More Than Once.
Sorting a UNION.
Uses for UNION.
Sample Statements.
Problems for You to Solve.
11. Subqueries.
What Is a Subquery?
Table Subqueries.
Scalar Subqueries.
Subqueries as Column Expressions.
An Introduction to Aggregate Functions--COUNT and MAX.
Subqueries as Filters.
Special Predicate Keywords for Subqueries.
Uses for Subqueries.
Filters.
Sample Statements.
Subqueries in Filters.
Problems for You to Solve.
IV. SUMMARIZING AND GROUPING DATA.
12. Summarizing Data.
Aggregate functions.
Computing a Total with SUM.
Calculating a Mean Value with AVG.
Finding the Largest Value with MAX.
Finding the Smallest Value with MIN.
Using More Than One Function.
Using Aggregate Functions in Filters.
Sample Statements.
Problems for You to Solve.
13. Grouping Data.
Why Group Data?
The GROUP BY Clause.
Mixing Columns and Expressions.
Using GROUP BY in a Subquery in a WHERE Clause.
Simulating a SELECT DISTINCT Statement.
"Some Restrictions Apply".
Grouping on Expressions.
Uses for GROUP BY.
Sample Statements.
Problems for You to Solve.
14. Filtering Grouped Data.
A New Meaning of "Focus Groups".
When You Filter Makes A Difference.
Avoiding the HAVING COUNT Trap.
Uses for HAVING.
Sample Statements.
Problems for You to Solve.
In Closing.
APPENDICES.
A. SQL Standard Diagrams.B. Schema for the Sample Databases.
C. Recommended Reading References.
Index. 0201433362T04062001
