- Shopping Bag ( 0 items )
This latest edition of the best-selling implementation guide to the Structured Query Language teaches SQL fundamentals while providing practical solutions for critical business applications. The Practical SQL Handbook, Fourth Edition now includes expanded platform SQL coverage and extensive real-world examples based on feedback from actual SQL users.
The Practical SQL Handbook begins with a step-by-step introduction to SQL basics and examines the issues involved in designing SQL-based database applications. It fully explores SQL's most popular implementations from industry leaders, Oracle, Microsoft, Sybase, and Informix.
A bonus CD-ROM contains a time-limited, full-feature version of the Sybase® Adaptive Server Anywhere™ software as well as the sample database, scripts, and examples included in the book.
The Practical SQL Handbook is the most complete reference available for day-to-day SQL implementations.
Because SELECT is so important, five chapters focus on it:
SQL select address from publishers where pub_id ='0877' address ======================================== 2 2nd Ave. [1 row ]
SELECT select_list FROM table_list WHERE search_conditions
Select_list and Search_condition Expressions Both the SELECT and WHERE clauses (in the select_list or search_conditions) can include
Combining SELECT, FROM, and WHERE Artful combinations of the SELECT, FROM, and WHERE clauses produce meaningful answers to your questions and keep you from drowning in a sea of data. Think of the SELECT and WHERE clauses as horizontal and vertical axes on a matrix. (Figure 4.1 illustrates the query you saw at the beginning of the chapter.) The data you get from the SELECT statement is at the intersection of the SELECT (column) and WHERE (row) clauses.
Let's look at a SELECT statement with another bookbiz table, authors . The authors table stores information about authors: ID numbers, names, addresses, and phone numbers. If you want to know just the names of authors who live in California (not their addresses and phone numbers), use the SELECT clause and the WHERE clause to limit the data that the SELECT statement returns.
Here's a query that uses the SELECT clause's select_list to limit the columns you see. It lists just the names for the authors, ignoring their ID numbers, addresses, and phone numbers....
|List of Figures|
|Foreword to the Fourth Edition|
|Ch. 1||SQL and Relational Database Management||1|
|Ch. 2||Designing Databases||21|
|Ch. 3||Creating and Filling a Database||51|
|Ch. 4||Selecting Data from the Database||95|
|Ch. 5||Sorting Data and Other Selection Techniques||143|
|Ch. 6||Grouping Data and Reporting from It||175|
|Ch. 7||Joining Tables for Comprehensive Data Analysis||205|
|Ch. 8||Structuring Queries with Subqueries||243|
|Ch. 9||Creating and Using Views||283|
|Ch. 10||Security, Transactions, Performance, and Integrity||315|
|Ch. 11||Solving Business Problems||345|
|App. A: Syntax Summary for the SQL Used in This Book||379|
|App. B: Industry SQL Equivalents||381|
|App. C: Glossary||387|
|App. D: The bookbiz Sample Database||403|
|App. E: Resources||451|
When we wrote the first edition of The Practical SQL Handbook, the American National Standards Institute (ANSI) had already approved the 1986 SQL standard. The International Standards Organization (ISO) adopted it in 1987. Both ANSI and ISO helped create the 1989 version. The 1986 standards were skimpy, lacking features that most commercial vendors offered. The 1989 standards were more complete but still left many important elements undefined.
For the first edition, we felt we should focus on industry practice: As always, each vendor was keeping a wary eye on what the others were doing and making core offerings similar enough to attract both customers migrating from competitors, as well as new users looking for database systems they could build on. Because of this, we left both the not-quite-jelled ANSI standards and particular vendor implementations to the experts in those fields and concentrated on the common ground: generic or "industry-practice" SQL. Our goal was to offer the intelligent amateur practical information on how to use the actually available SQL of that time.
The 1992 ANSI standard (often called SQL-2 or SQL-92) represented a new stage in SQL development. This standard was more comprehensive than the 1989 standard: In written form it contained more than four times as many pages as the earlier version. Database vendors have adopted large parts of the 1992 standard. With the widespread adoption of the SQL-92 standard, the industry practice and the ANSI/ISO standards began to converge.
Despite vendor-specific differences, there is a general, industrywide core of SQL commands that all users need to understand. Adopting standards doesn't happen overnight; it is a long process. At any point, vendors will have varying levels of conformance and will continue to produce vendor-specific variations. This book aims to give SQL users a mastery of the fundamentals of the language, with a side glance at the specifics of particular implementations.
The Sybase Adaptive Server Anywhere software on the CD is a 60-day full-feature version that allows you to create objects as well as to query existing objects. ASA is built with an updated version of the bookbiz database: For the fourth edition, we increased book prices and made dates more recent. Also included on the CD are scripts to create the database on ASA (in case you damage the original) and on the other systems discussed in the book.
For the fourth edition, we would like to acknowledge Mike Radencich of iAnywhere Solutions (a Sybase Company), for providing the software and permissions for the Adaptive Server Anywhere CD; Lance Batten of Tilden Park Software and Sanford Jacobs of Paragon Software for comments and corrections; our reviewers, on whom we rely for timely and detailed feedback: Vijayanandan Venkatachalam, curriculum director of Oracle Corporation; David McGoveran of Alternative Technologies; Roger Snowden; Amy Sticksel of Sticksel Data Systems; Paul Irvine of Emerald Solutions; and Karl Batten-Bowman.
Posted April 28, 2003
I am brand new to dealing with an Oracle database and SQL. This book gave me many simple examples to try some simple queries. Explanations of the actual command (select, insert, group by, etc.) were brief and to the point. Good for the novice and those who only need to extract simple output. I can't speak for more experienced users, but I think the book is focused on beginners or those who don't need to get into great detail with SQL.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.