Introduction to SQL: Mastering the Relational Database Language / Edition 3

Other Format (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 96%)
Other sellers (Other Format)
  • All (17) from $1.99   
  • New (2) from $105.0   
  • Used (15) from $1.99   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$105.00
Seller since Tue Oct 07 09:37:03 EDT 2014

Feedback rating:

(184)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$105.00
Seller since Tue Oct 07 09:37:03 EDT 2014

Feedback rating:

(184)

Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Close
Sort by

Overview

SQL was, is and always will be the database language for relational database systems such as Oracle, DB2, Sybase, Informix and Microsoft SQL Server. Introduction to SQL describes in depth the full capacity of SQL as it is implemented by the commercial databases, without neglecting the most recent changes to the standard, bringing the book up to date and fully compliant with SQL3. Unique in the extent of its coverage, this book takes you from the beginning to the end of SQL, the concepts to the practice, the apprentice to the master. Learn how to:
* Query data
* Update data
* Create tables and views
* Specify primary and foreign keys
* Use indexes
* Secure your data
* Develop stored procedures and triggers
* Develop applications with embedded SQL and ODBC
* Carry out transactions
* Optimize statements
* Deal with object-relational concepts such as subtables, references, sets and user-defined data types. NEW

section devoted to stored procedures and triggers NEW

coverage of object-oriented concepts NEW

information on application development with pre-programmed SQL NEW

chapter on using SQL in combination with ODBC The best way to learn a language is to work with it and the accompanying CD-ROM contains an SQL product called SOLID, chosen because it employs every aspect of SQL covered in the text. Experiment using the exercises in the book.

Fully updated to cover SQL2, this new edition is a complete introduction to SQL and includes a tutorial disk. The disk contains the database example described within the book and a brief version of Quadbase-SQL. Readers will benefit from working with a "real" SQL product and by building their own database with addresses.

Read More Show Less

Editorial Reviews

Booknews
The introductory guide describes the full capacity of SQL3 as it is implemented by commercial databases. The third edition adds sections on stored procedure and triggers, object-oriented concepts, and application development with pre-programmed SQL, and a chapter on using SQL in combination with ODBC. The CD-ROM contains SOLID server and SQL editor for experimenting with exercises in the book. Annotation c. Book News, Inc., Portland, OR (booknews.com)
Read More Show Less

Product Details

  • ISBN-13: 9780201596182
  • Publisher: Addison-Wesley
  • Publication date: 11/12/1999
  • Edition description: Older Edition
  • Edition number: 3
  • Pages: 720
  • Product dimensions: 6.86 (w) x 9.24 (h) x 1.41 (d)

Meet the Author

Rick F. van der Lans is an independent consultant, author, and lecturer specializing in database technology, SQL, and data warehousing. He is managing director of R20/Consultancy. He has been a member of the Dutch ISO committee responsible for developing the SQL standard. For the past 20 years, he has taught SQL classes to thousands of attendees. His popular books, including Introduction to SQL and The SQL Guide to Oracle, have been translated into various languages and have sold more than 100,000 copies.

Rick is an internationally acclaimed lecturer. Throughout has career, he has lectured in many European countries, South America, USA, and Australia. You can contact Rick via email at sql@r20.nl.

Read More Show Less

Read an Excerpt

PrefacePrefaceIntroduction

SQL was, is, and will stay for the foreseeable future the database language for relational database servers such as IBM DB2, Microsoft SQL Server, MySQL, Oracle, Progress, Sybase Adaptive Server, and dozens of others. This book contains a complete and detailed description of SQL (Structured Query Language). It should be seen primarily as a textbook in the active sense. After reading this book, you should be familiar with all the statements, the features, and some idiosyncrasies of SQL, and you should be able to use SQL efficiently and effectively.

SQL supports a small but very powerful set of statements for manipulating, managing, and protecting data stored in a database. This power has resulted in its tremendous popularity. In the early 1980s, there were only 10 to 20 SQL database servers, but today this number is at least multiplied by four. Almost every database server supports SQL or a dialect of the language. Currently, SQL products are available for every kind of computer, from a small handheld computer to a large server, and for every operating system, including Microsoft Windows and many UNIX variations. An official international standard for SQL was introduced in 1987. This has developed into what Michael Stonebraker, an authority in the field of databases, once expressed as intergalactic dataspeak.

Topics

This book is completely devoted to SQL. Every aspect of the language is discussed thoroughly and critically. These aspects, among others, include the following:

  • Querying data (joins, functions, and subqueries)
  • Updating data
  • Creating tables and views
  • Specifying primary and foreign keys and other integrity constraints
  • Using indexes
  • Considering data security
  • Developing stored procedures and triggers
  • Developing programs with embedded SQL and ODBC
  • Working with transactions
  • Optimizing statements
  • Dealing with object relational concepts, such as subtables, references, sets, and user-defined data types
  • Using the catalog
Which SQL Dialect?

Many SQL products are available on the market today. All these implementations of SQL resemble each other closely, but, unfortunately, differences do exist between them. Some do not support all the SQL statements, and others do not have all the features of a specific SQL statement. In some cases, identical statements can even return different results by different products.

The question then becomes, which SQL dialect is described in this book? To make the book as practical as possible, we describe the SQL statements and features supported by most of the dominant SQL products. This increases the practical value of this book. After reading this book, you can work with any SQL product. In other words, the focus is not so much on DB2, Oracle, or MySQL, and not even on the international standards for SQL; instead, it is on common SQL—SQL as implemented by most products.

For Whom Is This Book Intended?

We recommend this SQL book to those who want to use the full power of SQL effectively and efficiently in practice. This book is, therefore, suitable for the following groups of people:

  • Students in higher education, including those in technical colleges, polytechnics, universities, and sixth-form colleges
  • Developers who develop or intend to develop applications with the help of an SQL product
  • Designers, analysts, and consultants who have to deal, directly or indirectly, with SQL or another relational database language and want to know its features and limitations
  • Home students who are interested in SQL in particular or relational databases in general
  • Users who have the authority to use SQL to query the database of the company or institute for which they are working
A Practical Book

This book should be seen primarily as a textbook in the active sense, and less as a reference work. To this end, it contains many examples and exercises (with answers). Do not ignore the exercises. Experience shows that you will learn the language more thoroughly and more quickly by practicing often and doing many exercises.

Practicing with MySQL

One of the best-known SQL database servers is a product called MySQL. In this book, we assume that you will use MySQL to do the examples and the exercises. MySQL has been chosen because of its popularity and because its SQL dialect includes extensive functionality and shows much similarity to the international standard for SQL.

We advise you to install MySQL and practice as many exercises as possible with the help of MySQL. Executing SQL statements and studying the results is still the best way to master this powerful language. Later in this book, we describe how to install the product.

What Is on the CD-ROM?

The CD-ROM included in this book contains MySQL, of course. The version included on the CD-ROM has no functional limitations; it has the same functionality as the commercial version.

The version included is Version 5.0.7 for Windows. You can also download this product free of charge for many other platforms, including Linux, Sun Solaris, FreeBSD, MAC OS, HP-UX, IBM AIX, and Novell NetWare from the Web site http://www.mysql.com. You can even choose which version you would like to use.

A useful tool called WinSQL is also included on the CD-ROM, which makes working with MySQL easier. It is at least worth the effort to try these products.

This Book's Web Site

When you leaf through the book, you will find numerous SQL statements. Sometimes these are examples and sometimes they are answers to questions. After you install MySQL, you can run through these statements to see whether they work and see their effect. You could type in all the statements again like a real Spartan, but you can also make life easy for yourself by downloading all the statements from the Internet. A special Web site for this book, http://www.r20.nl, includes all the SQL statements.

The SQL statements have been placed deliberately on this Web site and not on the CD-ROM included in the book because it is easier to change them, if needed. It also makes it possible to add alternative solutions.

You can use the Web site for other aspects as well:

  • For MySQL, an installation process and instructions are included. When you install MySQL under Windows, you will find useful tips on the Web site. The installation process of the example database is also explained there.
  • If an error is found in the book, a rectification will be placed on the Web site.
  • Reader comments that could be of interest to others will also be placed on the Web site.
  • We even will consider making additional chapters available on the Web site in the future.

Therefore, keep an eye on this Web site.

Prerequisite Knowledge

Some general knowledge of programming languages and database servers is required.

The History of This Book

It was 1984, and the database world was under the spell of a revolution. SQL had started its triumphal procession. Vendors such as IBM and Oracle had introduced the commercial versions of their SQL database servers, and the marketing machine went at full speed. The market reacted positively to this rise of first-generation SQL database servers. Many organizations decided to buy such a database server and gradually phase out their existing products.

My employer at that time had decided to get involved in this tumult as well. It also wanted to make money with this new database language, and the plan was to start organizing SQL courses. Because of my background knowledge, I was charged with this task. That SQL would become such a success and that my agreement to present the courses would have far-reaching consequences, personally as well as professionally, was never in my mind.

After studying SQL closely, I started to develop the material for the course. After teaching SQL for two years with great pleasure, I got an idea to write a book about SQL. It would have to be a book that would be completely dedicated to this language, with its many possibilities and idiosyncrasies.

After producing gallons of blood, sweat, and tears, I completed the first Dutch edition in 1986, entitled Het SQL Leerboek. Barely before the book was published, I was asked to write an English version. That book was published in 1987, and in that language it was the first book completely devoted to SQL. After that, a German and Italian version appeared. Obviously, there was a need for information about SQL. Everyone wanted to learn about SQL, but there was not much information available.

Because SQL was still young, development was fast. Statements were added, extended, and improved. New implementations became available, new application areas were discovered, and new versions of the SQL standard appeared. Soon a new edition of the book had to be written. And there was more to come. The book you have in your hands right now is already the fourth edition of the English version. And it will not be the last because SQL has gloriously won the revolution in the database world, and there is no competition in sight on the horizon.

The Fourth Edition

This book is a completely revised fourth edition of Introduction to SQL. The previous edition was also seriously revised, so why a completely revised edition now? The explanation is simple: Once again, SQL has changed dramatically. However, not many statements have been added this time; the changes are more in the details. The language has been adjusted at several places, so the way in which certain statements are explained had to change.

And Finally . . .

Writing this book was not a solo project. Many people have contributed to this or previous editions of this book. I would like to use this preface to thank them for their help, contribution, ideas, comments on the contents, mental support, and patience.

I am grateful to the MySQL organization for providing the software. I think this product is invaluable for anyone who wants to learn SQL. The best way to learn a language is still to work with it!

It does not matter how many times a writer reads through his own work; editors remain indispensable. A writer does not read what he has written, but what he thinks he has written. In this respect, writing is like programming. That is why I owe a great deal to the following people for making critical comments and giving very helpful advice: Marc van Cappellen, Ian Cargill, Corine Cools, Richard van Dijk, Rose Endres, Wim Frederiks, Andrea Gray, Ed Jedeloo, Josien van der Laan, Oda van der Lans, Deborah Leendertse, Onno de Maar, Andrea Maurino, Sandor Nieuwenhuijs, Henk Schreij, Dave Slayton, Aad Speksnijder, Nok van Veen, and David van der Waaij. They all have read this manuscript (or parts of it), or the manuscript of a previous edition, a translation of it, or an adjusted version.

I would also like to thank the thousands of students across the world whom I have taught SQL over the past years. Their comments and recommendations have been invaluable in revising this book. In addition, a large number of readers of the previous edition responded to my request to send comments and suggestions. I want to thank them for the trouble they took to put these in writing.

For the first and second editions, Diane Cools did much of the typing and corrected many errors. I am still grateful for that because working with WordStar Version 1 on a PC/XT without a hard disk looked like a luxury then. I would like to thank her again for her work on this new edition. As an editor, she made this book readable to others. For a writer, it is also reassuring to know that there is someone who, especially in difficult times, keeps stimulating and motivating you. Thanks, Diane!

Finally, again I would like to ask readers to send comments, opinions, ideas, and suggestions concerning the contents of the book to sql@r20.nl stating "Introduction to SQL." Many thanks in anticipation of your cooperation.

Rick F. van der Lans Den Haag, The Netherlands, June 2006

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Table of Contents

Preface
I Introduction
1 Introduction to SQL 1 3
2 The tennis club sample database 28
3 Working with SOLID 37
4 SQL in a nutshell 52
II Querying and updating data
5 SELECT statement: common elements 71
6 Clauses of the SELECT statement 100
7 The SELECT statement: the FROM clause 111
8 SELECT statement the WHERE clause 126
9 SELECT statement: the SELECT clause and functions 177
10 SELECT statement: GROUP BY and HAVING 200
11 SELECT statement: the ORDER BY clause 218
12 Combining SELECT statements 227
13 The subquary 249
14 The FROM clause extended 275
15 Updating tables 309
III Creating database objects
16 Creating tables 325
17 Specifying constraints 346
18 Designing tables 365
19 Using indexes 378
20 Views 405
21 Users and data security 425
22 Catalog tables 441
IV Programming with SQL
23 Introduction to embedded SQL 451
24 Transactions and multi-user usage 487
25 Introduction to ODBC 507
26 Optimization of statements 544
V Procedural database objects
27 Stored procedures 563
28 Triggers 583
VI Object relational concepts
29 User-defined data types, functions and operators 599
30 Inheritance, references and collections 617
31 The future of SQL 638
App. A Syntax of SQL 641
App. B Scalar functions 667
App. C Bibliography 681
Index 683
Read More Show Less

Preface

Preface

SQL was, is and always will be the database language for relational database systems such as Oracle, DB2, Sybase, Informix and Microsoft SQL Server. This book contains a complete description of the database language SQL (Structured Query Language). It should be seen primarily as a textbook in the active sense. After reading this book you should be able to use SQL efficiently and effectively.

SQL supports a small, but very powerful, set of statements for manipulating, managing, and protecting data stored in a database. This power has resulted in its tremendous popularity. In the early eighties there were only ten to twenty SQL products, but today there are at least twice as many. Almost every database product supports SQL or a dialect of the language. Currently, SQL products are available for every kind of computer, from microcomputer to mainframe, and for every operating system, including DOS, Microsoft Windows and UNIX. Since 1987 there has been an official international standard for SQL. This has developed into what Michael Stonebraker, an authority in the field of databases, once expressed as intergalactic dataspeak.

Topics

In this book every aspect of SQL will be discussed thoroughly and critically. The aspects of SQL that are covered include:
• querying data (joins, functions and subqueries)
• updating data
• creating tables and views
• specifying primary and foreign keys and other constraints
• using indexes
• data security
• developing stored procedures and triggers
• application developmentwith embedded SQL and ODBC
• transactions
• optimization of statements
• dealing with object relational concepts, such as subtables, references, sets and user-defined data types in the catalog.

For whom is this book intended?

We recommended this book to those who want to use the full power of SQL effectively and efficiently in practice. This book is therefore suitable for the following groups of people:
• students in higher education, including those in technical colleges, polytechnics, universities and sixth-form colleges;
• programmers who develop or intend to develop applications with the help of an SQL product;
• designers, analysts and consultants who need to deal, directly or indirectly, with SQL or another relational database language and want to know its features and limitations;
• owners of microcomputers who want to learn SQL with the help of SOLID;
• home students who are interested in SQL in particular or in relational databases in general;
• users who have the authority to use SQL to query the database of the company or establishment where they work.

A practical book

This book should be seen primarily as a textbook in the active sense, and less as a reference work. To this end, it contains many examples and exercises (with answers). Do not ignore the exercises. Experience shows that you will learn the language more completely and more quickly by practising often and doing many exercises.

Practising with SOLID

This book includes an SQL product called SOLID. This is a complete SQL pro-duct, which is available for almost every microcomputer on which Windows 95, 98 or NT has been installed. We advise you to install this product and do as many exercises as possible with the help of SOLID.

Prerequisite knowledge

Some general knowledge of programming languages and database management systems is required.

The third edition

This book is a completely revised third edition of Introduction to SQL, which was first published in 1988. The second edition (van der Lans, 1992) was also a complete revised edition. However, in recent years SQL has evolved considerably. The number of products supporting SQL is still growing, the third version of the international SQL standard will probably appear within the foreseeable future and the functionality of some SQL products has increased considerably. These seemed good enough reasons to revise Introduction to SQL completely.

For teachers who use Introduction to SQL in their classes, the major differences are summarized below:
• the sequence of the chapters has been changed somewhat; on one hand, this was done so that the new subjects could be added in logical places and, on the other hand, so that the book could be split into separate sections;
• a new section is devoted to stored procedures and triggers; these concepts have been implemented by many vendors and this has made it necessary to consider them in this book;
• another new section is devoted to concepts coming from the object-oriented world; there are not at present many products that support object orientation, but it is to be expected that many products will do so in the not too distant future;
• the chapter that describes how SOLID must be installed and used is, of course, completely new; in the previous edition we used a different product called Quadbase;
• the chapter on application development with pre-programmed SQL has been extended considerably; we devote a whole section to this subject and have included an additional chapter on using SQL in combination with ODBC;
• in each chapter the same database is used for most of the examples and exercises; we have made some changes to this because of the new topics; the naming of some tables and columns has also been changed to make it possible to implement the database with SOLID;
• the chapter on developing reports has been removed; this is because SOLID itself does not offer reporting facilities; furthermore, report generation is not part of SQL.

And finally ...

I would like to use this preface to thank a number of people and companies for their contributions to this book.

I am grateful to Solid Information Technology for providing the software for inclusion with the book. I think that this product is invaluable for anyone who wants to learn SQL. The best way to learn a language is still to work with it!

It does not matter how many times a writer reads through his own work; editors remain indispensable. A writer does not read what he has written, but what he thinks he has written. In this respect writing is like programming. That is why I owe a great deal to the following people for reviewing the manuscript or parts of it, for making critical comments and giving very helpful advice: Nok van Veen, Aad Speksnijder, Ed Jedeloo, Corine Cools, Andrea Gray, Josien van der Laan, Richard van Dijk, Onno de Maar, Sandor Nieuwenhuijs, Wim Frederiks, Ian Cargill and Marc van Cappellen.

I would also like to thank the hundreds of students who have studied SQL with me over the past few years. Their comments and recommendations have been invaluable in revising this book. In addition, a large number of readers of the previous edition responded to my request to send comments and suggestions. I want to thank them for the trouble they took to put these in writing.

For the first and second editions Diane Cools did much of the typing and corrected many errors. I am still grateful for that, because working with WordStar version 1 on a PC/XT without a hard disk looked like a luxury then. I would like to thank her again for her work on this new edition, but in another way. For a writer it is reassuring to know that there is someone who, especially in difficult times, keeps stimulating and motivating you. Thanks, Diane!

Finally, I would again like to ask readers to send comments, opinions, ideas and suggestions concerning the contents of the book to the publisher: Addison-Wesley at Pearson Education, 128 Long Acre, London, WC2E 9AN, England, marked for the attention of Rick F. van der Lans, 'Introduction to SQL'. Many thanks, in anticipation, of your cooperation.

Rick F. van der Lans
The Hague, March 1999



Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted Fri Sep 28 00:00:00 EDT 2001

    Very Helpful and Easy to Understand

    I am very new to SQL and this book was very helpful. This was the second book I purchased and it helped alot. The first book was also a 'Practical' or 'Introduction to SQL' but it didn't break down the basics like this one did. I would recommend this to all new beginners. The CD also helped alot.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)